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

Improve ccmath signbit and copysign #819

Merged
merged 8 commits into from
Aug 26, 2022

Conversation

mborland
Copy link
Member

Use std::bit_cast or __builtin_bit_cast when available to support signed zeros and NANs.

@mborland
Copy link
Member Author

@jzmaddock and @NAThompson this is good for review. It conditionally solves the issue of not supporting 0s and NANs brought up on the mailing list.

@mborland
Copy link
Member Author

@jzmaddock Would you like another look before I merge? I hit all of your comments in the latest commit.

@mborland mborland merged commit 1ce6dda into boostorg:develop Aug 26, 2022
@mborland mborland deleted the better_copysign branch August 26, 2022 16:28
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