Open
Description
From @davll on November 9, 2017 8:48
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)
- ARM Neon VRSQRTE
- PowerPC Altivec: vec_rsqrte
Copied from original issue: rust-num/num#343