diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-04-21 20:59:39 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-04-21 20:59:39 +0000 |
commit | 7b51049f159b77b22bf1ac0f562e1a68598424e2 (patch) | |
tree | 3b78b9e51f291cf868889bd79676d1a60e028eac /internal.h | |
parent | 2d70240a35fcd425dd2fe812f5ea402079f2374e (diff) | |
download | ruby-7b51049f159b77b22bf1ac0f562e1a68598424e2.tar.gz |
* include/ruby/ruby.h (LIKELY): moved from internal.h.
* include/ruby/ruby.h (UNLIKELY): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54662 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'internal.h')
-rw-r--r-- | internal.h | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/internal.h b/internal.h index f3767110cc..371cb1b83a 100644 --- a/internal.h +++ b/internal.h @@ -23,15 +23,6 @@ extern "C" { #endif #endif -/* 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 */ - #ifndef __has_attribute # define __has_attribute(x) 0 #endif |