Removing reliance on fmodf and fabsf CRT functions.

This commit is contained in:
Branimir Karadžić
2018-01-04 08:59:17 -08:00
parent 9545b84119
commit fddf8c3303
3 changed files with 24 additions and 10 deletions

View File

@@ -22,11 +22,6 @@ namespace bx
const float kHuge = HUGE_VALF;
#endif // BX_COMPILER_MSVC
float fabs(float _a)
{
return ::fabsf(_a);
}
float fsin(float _a)
{
return ::sinf(_a);
@@ -82,11 +77,6 @@ namespace bx
return ::ceilf(_f);
}
float fmod(float _a, float _b)
{
return ::fmodf(_a, _b);
}
void mtxLookAtImpl(float* _result, const float* _eye, const float* _view, const float* _up)
{
float up[3] = { 0.0f, 1.0f, 0.0f };