Added fpow, fexp2, flog, flog2.

This commit is contained in:
Branimir Karadžić
2015-12-04 22:36:08 -08:00
parent 25401860fd
commit 072f574c02

View File

@@ -104,6 +104,26 @@ namespace bx
return cosf(_a);
}
inline float fpow(float _a, float _b)
{
return powf(_a, _b);
}
inline float fexp2(float _a)
{
return fpow(2.0f, _a);
}
inline float flog(float _a)
{
return logf(_a);
}
inline float flog2(float _a)
{
return flog(_a) * 1.442695041f;
}
inline float fsqrt(float _a)
{
return sqrtf(_a);