mirror of
https://github.com/HandmadeMath/HandmadeMath.git
synced 2025-09-07 10:48:17 +00:00
Fixed HMM_PowerF
This commit is contained in:
@@ -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 */
|
Reference in New Issue
Block a user