summaryrefslogtreecommitdiffstats
path: root/libdimension/compiler.h
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@gmail.com>2011-03-29 15:06:31 -0400
committerTavian Barnes <tavianator@gmail.com>2011-03-29 15:06:31 -0400
commitc44fbdb2512a63a1e145b400dc20130199601b3e (patch)
tree307635071c730289519b1bd96db5f7c4c2a1f4fe /libdimension/compiler.h
parent59db781d7a08e3007d08b6632583ac9ced82e0df (diff)
downloaddimension-c44fbdb2512a63a1e145b400dc20130199601b3e.tar.xz
Some minor optimizations.
Diffstat (limited to 'libdimension/compiler.h')
-rw-r--r--libdimension/compiler.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/libdimension/compiler.h b/libdimension/compiler.h
index 1be1c28..b647aea 100644
--- a/libdimension/compiler.h
+++ b/libdimension/compiler.h
@@ -37,8 +37,8 @@
#define dmnsn_likely(test) __builtin_expect(!!(test), true)
#define dmnsn_unlikely(test) __builtin_expect(!!(test), false)
#else
- #define dmnsn_likely(test) (test)
- #define dmnsn_unlikely(test) (test)
+ #define dmnsn_likely(test) (!!(test))
+ #define dmnsn_unlikely(test) (!!(test))
#endif
#ifdef __GNUC__