mirror of
https://github.com/bkaradzic/bx.git
synced 2026-02-17 20:52:37 +01:00
Added fpow, fexp2, flog, flog2.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user