New math wrappers

from miami
This commit is contained in:
eray orçunus
2020-07-23 00:31:06 +03:00
parent 98dd771d6c
commit 7e32c603fc
5 changed files with 11 additions and 9 deletions

View File

@ -15,3 +15,5 @@ inline float Sqrt(float x) { return sqrtf(x); }
inline float RecipSqrt(float x, float y) { return x/Sqrt(y); }
inline float RecipSqrt(float x) { return RecipSqrt(1.0f, x); }
inline float Pow(float x, float y) { return powf(x, y); }
inline float Floor(float x) { return floorf(x); }
inline float Ceil(float x) { return ceilf(x); }