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
They came up in an algorithm I'm considering for SIMDification (ruffle-rs/h263-rs#49), and perhaps they would came in handy for others as well - they are in f32 at least, after all...
I have zero clue though, whether there are intrinsics for these in any platforms... (At least clamp can be done with min and max of course. EDIT: Come to think of it, signum is also just (x > 0) - (x < 0).)
The text was updated successfully, but these errors were encountered:
They came up in an algorithm I'm considering for SIMDification (ruffle-rs/h263-rs#49), and perhaps they would came in handy for others as well - they are in
f32
at least, after all...I have zero clue though, whether there are intrinsics for these in any platforms... (At least
clamp
can be done withmin
andmax
of course. EDIT: Come to think of it,signum
is also just(x > 0) - (x < 0)
.)The text was updated successfully, but these errors were encountered: