add MIN and MAX macros

because we could use min/max for intergers too. it may not guarantee that MIN and MAX macros will always be defined by compiler
This commit is contained in:
Recep Aslantas
2018-06-26 15:27:53 +03:00
parent eb8e0df6df
commit c216c0cb7e

View File

@@ -21,6 +21,9 @@
#include "common.h"
#include <stdbool.h>
#define GLM_MIN(X, Y) (((X) < (Y)) ? (X) : (Y))
#define GLM_MAX(X, Y) (((X) > (Y)) ? (X) : (Y))
/*!
* @brief get sign of 32 bit integer as +1, -1, 0
*