Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable NAN and INF optimisations on Linux #1281

Merged
merged 1 commit into from
Jun 6, 2022
Merged

Conversation

srcejon
Copy link
Collaborator

@srcejon srcejon commented Jun 6, 2022

This PR disables the NAN and INF optimisations that are enabled by -ffinite-math-only (which is implied by -ffast-math)

This is needed as there are a few bits of code that use NANs (E.g. some code uses NANs to indicate uninitialized variables and then checks with isnan() - however, isnan() doesn't work with -ffinite-math-only) and a few uses of INFINITY too.

I wouldn't expect -ffinite-math-only to make much of a performance difference to the DSP code - but if it does, the option can perhaps be applied more selectively.

@f4exb f4exb merged commit 6b842f0 into f4exb:master Jun 6, 2022
@srcejon srcejon deleted the fast_math branch June 13, 2022 06:57
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