aboutsummaryrefslogtreecommitdiffstats
path: root/win32/Makefile.sub
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-07-22 11:27:46 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-07-22 11:27:46 +0000
commit4c4d0389f53d9dbda6959e28c61a12c6e4f509cc (patch)
tree585f4d19c3a2e31384d17dfd9bf388c1855f9d48 /win32/Makefile.sub
parentc44360f62316f629441af47213a6c22ae1c3606b (diff)
downloadruby-4c4d0389f53d9dbda6959e28c61a12c6e4f509cc.tar.gz
ruby.h: ASSUME
* include/ruby/ruby.h (ASSUME): hint for optimization, the expression is assumed to be true always. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51342 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'win32/Makefile.sub')
-rw-r--r--win32/Makefile.sub1
1 files changed, 1 insertions, 0 deletions
diff --git a/win32/Makefile.sub b/win32/Makefile.sub
index e07ed93b60..afcb29cd44 100644
--- a/win32/Makefile.sub
+++ b/win32/Makefile.sub
@@ -587,6 +587,7 @@ $(CONFIG_H): $(MKFILES) $(srcdir)/win32/Makefile.sub $(win_srcdir)/Makefile.sub
#define NOINLINE(x) __declspec(noinline) x
!endif
#define UNREACHABLE __assume(0)
+#define ASSUME(x) __assume(!!(x))
#define FUNC_STDCALL(x) __stdcall x
#define FUNC_CDECL(x) __cdecl x
#define FUNC_FASTCALL(x) __fastcall x