Lokathor / wide

A crate to help you go wide. By which I mean use SIMD stuff.
https://docs.rs/wide
zlib License
288 stars 24 forks source link

Add unsigned_abs to i8,i16,i32,i64 to provide well defined behavior for abs #152

Closed mcroomp closed 4 months ago

mcroomp commented 5 months ago

Add equivalent unsigned_abs that will not fail and returns the proper unsigned integer type. It's possible to do something similar with bitmuck and casts but the code looks horrible. Also added abs to i64 although intel doesn't support it, the other platforms do.

Lokathor commented 4 months ago

Published wide v0.7.18