diff options
Diffstat (limited to 'include/macros.h')
| -rw-r--r-- | include/macros.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/macros.h b/include/macros.h index b855eb3..05c5990 100644 --- a/include/macros.h +++ b/include/macros.h @@ -22,6 +22,7 @@ #define SEGMENTED_TO_K0(addr) (void*)((gSegments[SEGMENT_NUMBER(addr)] + K0BASE) + SEGMENT_OFFSET(addr)) #define ABS(x) (((x) >= 0) ? (x): -(x)) +#define ABS_F(x) ((x) >= 0.0f) ? (x) : -(x) #define CLAMP(x, min, max) ((x) < (min) ? (min) : (x) > (max) ? (max) : (x)) #define CLAMP_MAX(x, max) ((x) > (max) ? (max) : (x)) |
