Skip to content

Enable FPE checking by default - #1538

Closed
dschwoerer wants to merge 1 commit into
nextfrom
sigfpe-defualt-enable
Closed

Enable FPE checking by default#1538
dschwoerer wants to merge 1 commit into
nextfrom
sigfpe-defualt-enable

Conversation

@dschwoerer

Copy link
Copy Markdown
Contributor

As some checks get disabled in #1533 - it may be beneficially to catch floating point exceptions in a different way.

This enables by default SIG_FPE - if the required fenv header is available.

@ZedThree

ZedThree commented Feb 1, 2019

Copy link
Copy Markdown
Member

What's the overhead of signalling FP? I don't think it's free, but maybe it's sufficiently cheap on modern processors.

@dschwoerer

dschwoerer commented Feb 1, 2019

Copy link
Copy Markdown
Contributor Author

I thought that there should be no impact, but I failed to find a source.

I wrote a small test, and I could find no significant bias, whether disabling or enabling is faster.

This still needs work, as parts of the field may not be set, (due to the region flag) and that may cause issues ...

I will close this, until I have a patch ...

the test

@dschwoerer dschwoerer closed this Feb 1, 2019
@dschwoerer
dschwoerer deleted the sigfpe-defualt-enable branch December 11, 2020 09:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants