Add check for LIKELY/UNLIKELY is CPU only

This commit is contained in:
Campbell Barton 2014-05-05 07:26:49 +10:00
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