mirror of
https://github.com/bkaradzic/bx.git
synced 2026-02-18 04:53:06 +01:00
Added frsqrt.
This commit is contained in:
@@ -129,6 +129,11 @@ namespace bx
|
||||
return sqrtf(_a);
|
||||
}
|
||||
|
||||
inline float frsqrt(float _a)
|
||||
{
|
||||
return 1.0f/fsqrt(_a);
|
||||
}
|
||||
|
||||
inline float ffract(float _a)
|
||||
{
|
||||
return _a - floorf(_a);
|
||||
|
||||
Reference in New Issue
Block a user