We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hello,
I found that some f32 values are converted differently depending on whether use-intrinsics is enabled or not. I am using the 1.3.0 release version.
f32
use-intrinsics
For example:
use half::f16; let f = 2.9802322e-8f32; let f2 = f16::from_f32(f); println!("{}", f2);
prints 0 when intrinsics are enabled and 0.000000059604645 when intrinsics are not enabled.
0
0.000000059604645
I also found an example that is potentially a rounding direction mismatch:
use half::f16; let f = 520.25f32; let f2 = f16::from_f32(f); println!("{}", f2);
prints 520 when intrinsics are enabled and 520.5 when not enabled.
520
520.5
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Hello,
I found that some
f32
values are converted differently depending on whetheruse-intrinsics
is enabled or not. I am using the 1.3.0 release version.For example:
prints
0
when intrinsics are enabled and0.000000059604645
when intrinsics are not enabled.I also found an example that is potentially a rounding direction mismatch:
prints
520
when intrinsics are enabled and520.5
when not enabled.The text was updated successfully, but these errors were encountered: