optimize operations, fix max sign

This commit is contained in:
Recep Aslantas
2018-01-02 10:16:46 +03:00
parent eaf45e489d
commit 3e4f52b3af
2 changed files with 39 additions and 27 deletions

View File

@@ -72,7 +72,7 @@ glm_min(float a, float b) {
CGLM_INLINE
float
glm_max(float a, float b) {
if (a < b)
if (a > b)
return a;
return b;
}