use float for math funcs

This commit is contained in:
Recep Aslantas
2016-09-13 11:57:52 +03:00
parent 705a4bb9a0
commit 7ef105bab0
2 changed files with 10 additions and 7 deletions

View File

@@ -10,6 +10,7 @@
#include "cglm.h"
#include "cglm-intrin.h"
#include <math.h>
CGLM_INLINE
void
@@ -56,7 +57,7 @@ glm_vec_cross(vec3 a, vec3 b, vec3 d) {
CGLM_INLINE
float
glm_vec_norm(vec3 vec) {
return sqrt(vec[0] * vec[0] + vec[1] * vec[1] + vec[2] * vec[2]);
return sqrtf(vec[0] * vec[0] + vec[1] * vec[1] + vec[2] * vec[2]);
}
CGLM_INLINE