Fixed HMM_PowerF

This commit is contained in:
Zak Strange
2016-11-14 20:05:07 -07:00
parent aed68cc894
commit c89c435e3a

View File

@@ -736,7 +736,7 @@ HMM_Power(float Base, int Exponent)
HINLINE float
HMM_PowerF(float Base, float Exponent)
{
return expf(Exponent * logf(Base));
return HMM_EXPF(Exponent * HMM_LOGF(Base));
}
HINLINE float
@@ -2138,4 +2138,4 @@ operator*=(hmm_mat4 &Left, float Right)
#endif /* HANDMADE_MATH_CPP_MODE */
#endif /* HANDMADE_MATH_IMPLEMENTATION */
#endif /* HANDMADE_MATH_IMPLEMENTATION */