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
rsqrt is a widely used math function in game development, and is faster than combining the two functions: recip(sqrt(x)) thanks to x86 SSE instructions RSQRTSS, RSQRTPS, RSQRTSD, and RSQRTPD. Should we consider add rsqrt to Float trait?
x86/x86_64 SSE: _mm_rsqrt_ps (note that RSQRT instruction is approximate, less accurate than SQRT)
This should probably be proposed for the standard library first. So far we don't have any arch-specific code -- I'd rather just have num's impl Float for f64 forward to an optimized/intrinsic call in std.
Uh oh!
There was an error while loading. Please reload this page.
rsqrt
is a widely used math function in game development, and is faster than combining the two functions:recip(sqrt(x))
thanks to x86 SSE instructionsRSQRTSS
,RSQRTPS
,RSQRTSD
, andRSQRTPD
. Should we consider addrsqrt
toFloat
trait?The text was updated successfully, but these errors were encountered: