starkat99 / half-rs

Half-precision floating point types f16 and bf16 for Rust.
https://docs.rs/half/
Other
232 stars 52 forks source link

Use sized slices in conversion functions #65

Closed Shnatsel closed 1 year ago

Shnatsel commented 1 year ago

Removes bounds checks, just like #64. Conflicts with and supersedes #64.

I am interested in this because I'm optimizing the exr crate and it would be nice to use these conversion routines directly instead of going through the slice conversion function.