forked from bartvdbraak/blender
Add check for LIKELY/UNLIKELY is CPU only
This commit is contained in:
parent
ff34c2de64
commit
d27eea6dc6
@ -460,7 +460,7 @@ enum InterpolationType {
|
||||
/* macros */
|
||||
|
||||
/* hints for branch pradiction, only use in code that runs a _lot_ */
|
||||
#ifdef __GNUC__
|
||||
#if defined(__GNUC__) && defined(__KERNEL_CPU__)
|
||||
# define LIKELY(x) __builtin_expect(!!(x), 1)
|
||||
# define UNLIKELY(x) __builtin_expect(!!(x), 0)
|
||||
#else
|
||||
|
Loading…
Reference in New Issue
Block a user