Added frsqrt.

This commit is contained in:
Branimir Karadžić
2015-12-06 20:07:48 -08:00
parent 8df3e7301a
commit 47b7bdce96

View File

@@ -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);