-
-
Notifications
You must be signed in to change notification settings - Fork 27
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
Boolean masks should become their own type #43
Comments
Note: This will break because all existing |
Probably we can just have the "mask" factor be a wrapper type over a SIMD type, with blend / bit functions. pub struct Mask<T>{ inner: T } |
Looks like on i586 and other locations without specific hardware support for bit ops on floats we'll have to store these masks as unsigned arrays so that the bits are preserved properly. Otherwise signaling nan values can get bit modified to become quiet nan values. I wanted to put off any breaks since the request was supposed to be "nice but not needed", but actually this only increases the priority of this particular break. |
some people like the increased type safety.
this is a breaking change so it'd be in 0.6, but otherwise it's not hard.
The text was updated successfully, but these errors were encountered: