You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Rely on defined saturation behavior for f32 to u8 casts
This is a backport of a change from Raph made in the CPU
sparse strips experiment.
When converting from `f32` to `u8`, the code was clamping to
be sure that the values were within range. This was necessary
in the past, but hasn't been needed for some years now, since
<rust-lang/rust#10184>. This clamping
is not necessary and the compiler is not optimizing it away
as of Rust 1.83 on Apple Silicon.
0 commit comments