]> git.saurik.com Git - apple/javascriptcore.git/blobdiff - wtf/AlwaysInline.h
JavaScriptCore-903.tar.gz
[apple/javascriptcore.git] / wtf / AlwaysInline.h
index 34f8b74b837b9c35ec08201d4d2ab632ac935b09..bacbdd0d5b2fae94310d591f647ae5a984295806 100644 (file)
@@ -41,7 +41,7 @@
 #endif
 
 #ifndef UNLIKELY
-#if COMPILER(GCC)
+#if COMPILER(GCC) || (RVCT_VERSION_AT_LEAST(3, 0, 0, 0) && defined(__GNUC__))
 #define UNLIKELY(x) __builtin_expect((x), 0)
 #else
 #define UNLIKELY(x) (x)
@@ -49,7 +49,7 @@
 #endif
 
 #ifndef LIKELY
-#if COMPILER(GCC)
+#if COMPILER(GCC) || (RVCT_VERSION_AT_LEAST(3, 0, 0, 0) && defined(__GNUC__))
 #define LIKELY(x) __builtin_expect((x), 1)
 #else
 #define LIKELY(x) (x)