diff options
Diffstat (limited to 'Runtime/Math/MathHelper.h')
-rw-r--r-- | Runtime/Math/MathHelper.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Runtime/Math/MathHelper.h b/Runtime/Math/MathHelper.h index 3f8754a..c41eec9 100644 --- a/Runtime/Math/MathHelper.h +++ b/Runtime/Math/MathHelper.h @@ -9,3 +9,6 @@ #define clamp(v, lo, hi)\ max((lo), min((v), (hi))) +// ÆæÊý·µ»Ø1£¬·ñÔò0 +#define odd(n) \ +(((n)&1)?1:0) |