summaryrefslogtreecommitdiff
path: root/vm_core.h
diff options
context:
space:
mode:
authoryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-01-05 05:59:23 +0000
committeryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-01-05 05:59:23 +0000
commit295bc2fe2577336807db6e2c30bd642bdb6482bc (patch)
treee8af2c0334772bc31cc943c68fd2a884605830cc /vm_core.h
parent623a79c376fec2f76cc33819807f1903b40c3dea (diff)
removes the dtrace support. reverts r26239, r26238 and r26235.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26243 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm_core.h')
-rw-r--r--vm_core.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/vm_core.h b/vm_core.h
index 0dd93f3332..b9b584ad69 100644
--- a/vm_core.h
+++ b/vm_core.h
@@ -97,6 +97,15 @@
#endif /* OPT_STACK_CACHING */
#endif /* OPT_CALL_THREADED_CODE */
+/* likely */
+#if __GNUC__ >= 3
+#define LIKELY(x) (__builtin_expect((x), 1))
+#define UNLIKELY(x) (__builtin_expect((x), 0))
+#else /* __GNUC__ >= 3 */
+#define LIKELY(x) (x)
+#define UNLIKELY(x) (x)
+#endif /* __GNUC__ >= 3 */
+
typedef unsigned long rb_num_t;
/* iseq data type */