Lowercase abs and signum_positive defines

This commit is contained in:
Arceveti
2021-09-29 16:22:34 -07:00
parent 50d180134f
commit 824056390f

View File

@@ -58,6 +58,11 @@ extern f32 gSineTable[];
#define ABSF(x) ((x) > 0.0f ? (x) : -(x))
#define ABSI(x) ((x) > 0 ? (x) : -(x))
#define ABS(x) ABSF((x))
#define absf(x) ABSF((x))
#define absi(x) ABSI((x))
#define abs(x) ABS((x))
#define signum_positive(x) ((x < 0) ? -1 : 1)
#define min(a, b) MIN((a), (b)) // ((a) < (b) ? (a) : (b))
#define max(a, b) MAX((a), (b)) // ((a) > (b) ? (a) : (b))