-
Notifications
You must be signed in to change notification settings - Fork 82
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
Use -0.0 as the neutral additive float #438
Use -0.0 as the neutral additive float #438
Conversation
I assume this resolves #432 |
yep, tests might require a bit of punching first. |
I think you just need to bump rust-toolchain.toml |
-0.0 + 0.0 is 0.0 -0.0 + -0.0 is -0.0 Thus, the float additive-zero is actually -0.0, not its positive cousin. This change aligns with a recent change to the impl of Sum for floats, in rust-lang/rust@4908188 and accordingly we also have to use the latest toolchain for our tests now.
72031b0
to
00c3b6d
Compare
Oh, yep. That does it, thanks! |
Pretty sure the arm failure is unrelated to your changes, looks like std might have added an extra step to is_normal that causes it to flush subnormals? |
Oh yeah those tests are gonna be absolutely busted for thumbv7neon. |
I've simply cfg'd those out for now. |
6d198cf
to
00c3b6d
Compare
oh, that doesn't work at all, heh. |
There. |
02f9f87
to
c080ba5
Compare
It's actually scalars that changed, it seems... |
Yes, probably. |
-0.0 + 0.0 is 0.0
-0.0 + -0.0 is -0.0
Thus, the float additive-zero is -0.0, not its positive cousin. This aligns with a recent change to the impl of Sum for floats, in rust-lang/rust@4908188
Fixes #432