-
Notifications
You must be signed in to change notification settings - Fork 87
Rounding and Type Change methods #23
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Comments
Any idea what the type converting functions should be called? There doesn't seem to be an equivalent for |
in wide i call them basically https://doc.rust-lang.org/core/arch/x86_64/fn._mm_cvtps_epi32.html |
Probably relevant: https://doc.rust-lang.org/std/intrinsics/fn.float_to_int_unchecked.html There actually is an equivalent in std but I missed it. This intrinsic should actually work on vectors as well. |
I think that cvtps_epi32 returns a value for any value, even if the value is not the same number. I think that nans produce i32::MIN or something like that. I'd hate to add more ways to get undef, but i suppose it could be done if that's what the people clamor for. |
Well, on a failure it raises a fp exception still (NEON's |
Before we can begin implementing a few of the more advanced functions, we'll need a few more of the basic utility functions for manipulating values.
For floats:
For signed ints:
The text was updated successfully, but these errors were encountered: