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 FP exceptions in a portable way #4888

Merged
merged 1 commit into from
Mar 10, 2024

Conversation

xry111
Copy link
Contributor

@xry111 xry111 commented Mar 10, 2024

As we are requiring ISO C++11 where std::feholdexcept is available for disabling FP exceptions, use it instead of platform-specific hacks.

Prompted by #4475. It's really not a good idea to expand the #if line forever when a portable interface is available.

As we are requiring ISO C++11 where `std::feholdexcept` is available for disabling FP exceptions, use it instead of platform-specific hacks.
@donmor
Copy link
Contributor

donmor commented Mar 11, 2024

图片
Failed to build with this patch as there are more references to FPU_SyncCW in this file.
P.S.: I wonder how does it pass the CI XD

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.

None yet

3 participants