diff options
| author | inspectredc <78732756+inspectredc@users.noreply.github.com> | 2024-04-16 00:19:43 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-04-15 16:19:43 -0700 |
| commit | 7f426967efd07046bfbe791ed4e64808ae5a26e2 (patch) | |
| tree | 51014dee003a4e30ac6db96c640c66db13dc6d3f /include/macros.h | |
| parent | 4ab3a1d9dcb76d80fe745dcbe79f3e925b8fac7e (diff) | |
ac_ball OK and documented (#173)
* ac_ball OK
* hopefully format
* address warnings
* Apply suggestions from code review
Co-authored-by: emilybrooks <emilybrooksemilybrooks@gmail.com>
* suggestions pt2
---------
Co-authored-by: emilybrooks <emilybrooksemilybrooks@gmail.com>
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)) |
