Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2014-05-05 01:26:49 +0400
committerCampbell Barton <ideasman42@gmail.com>2014-05-05 01:26:49 +0400
commitd27eea6dc6886ff900d62d77863e432d724d4de1 (patch)
treeaf9579f3aa7da843e85e4de5e385649c88b17bc6 /intern/cycles/util/util_types.h
parentff34c2de64df696317a2dc88fdcce3eb991065b4 (diff)
Add check for LIKELY/UNLIKELY is CPU only
Diffstat (limited to 'intern/cycles/util/util_types.h')
-rw-r--r--intern/cycles/util/util_types.h2
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