зеркало из https://github.com/github/ruby.git
[ruby/prism] Fix up windows use of __assume
https://github.com/ruby/prism/commit/9fd0c0901e
This commit is contained in:
Родитель
57688cd625
Коммит
bf6109c8cc
|
@ -233,7 +233,7 @@
|
|||
#define PRISM_UNLIKELY(x) __builtin_expect(!!(x), 0)
|
||||
#elif defined(_MSC_VER) && (_MSC_VER >= 1400)
|
||||
/** The compiler should predicate that this branch will be taken. */
|
||||
#define PRISM_LIKELY(x) __assume((x))
|
||||
#define PRISM_LIKELY(x) __assume(!!(x))
|
||||
|
||||
/** The compiler should predicate that this branch will not be taken. */
|
||||
#define PRISM_UNLIKELY(x) __assume(!(x))
|
||||
|
|
Загрузка…
Ссылка в новой задаче