mirror of
https://git.coom.tech/drummyfish/raycastlib.git
synced 2024-11-22 20:39:57 +01:00
Add parentheses
This commit is contained in:
parent
733992056a
commit
c813602947
1 changed files with 2 additions and 2 deletions
|
@ -154,8 +154,8 @@
|
||||||
|
|
||||||
#define RCL_min(a,b) ((a) < (b) ? (a) : (b))
|
#define RCL_min(a,b) ((a) < (b) ? (a) : (b))
|
||||||
#define RCL_max(a,b) ((a) > (b) ? (a) : (b))
|
#define RCL_max(a,b) ((a) > (b) ? (a) : (b))
|
||||||
#define RCL_nonZero(v) (v + (v == 0)) ///< To prevent zero divisions.
|
#define RCL_nonZero(v) ((v) + ((v) == 0)) ///< To prevent zero divisions.
|
||||||
#define RCL_zeroClamp(x) (x * (x >= 0))
|
#define RCL_zeroClamp(x) ((x) * ((x) >= 0))
|
||||||
#define RCL_likely(cond) __builtin_expect(!!(cond),1)
|
#define RCL_likely(cond) __builtin_expect(!!(cond),1)
|
||||||
#define RCL_unlikely(cond) __builtin_expect(!!(cond),0)
|
#define RCL_unlikely(cond) __builtin_expect(!!(cond),0)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue