diff options
author | Campbell Barton <ideasman42@gmail.com> | 2014-05-05 01:26:49 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2014-05-05 01:26:49 +0400 |
commit | d27eea6dc6886ff900d62d77863e432d724d4de1 (patch) | |
tree | af9579f3aa7da843e85e4de5e385649c88b17bc6 | |
parent | ff34c2de64df696317a2dc88fdcce3eb991065b4 (diff) |
Add check for LIKELY/UNLIKELY is CPU only
-rw-r--r-- | intern/cycles/util/util_types.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/intern/cycles/util/util_types.h b/intern/cycles/util/util_types.h index eeb472ef175..38eb85a16d0 100644 --- a/intern/cycles/util/util_types.h +++ b/intern/cycles/util/util_types.h @@ -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 |