-
Notifications
You must be signed in to change notification settings - Fork 148
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add rsqrt method to Float trait #343
Comments
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 |
I agree; it makes sense to offer this in libstd. |
Reasonable, I'll propose it in |
This issue was moved to rust-num/num-traits#1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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: