Changeset 5626 in orxonox.OLD for trunk/src/defs
- Timestamp:
- Nov 17, 2005, 12:01:45 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/defs/compiler.h
r3860 r5626 8 8 #endif 9 9 10 #define likely(x) __builtin_expect((x),1) 11 #define unlikely(x) __builtin_expect((x),0) 12 13 #ifdef __unix__ 14 15 // deprecated // 16 #define __LIKELY_IF(condition) if( likely(condition)) 17 #define __UNLIKELY_IF(condition) if( unlikely(condition)) 18 #else 19 #define __LIKELY_IF(condition) if( condition) 20 #define __UNLIKELY_IF(condition) if( condition) 21 #endif 10 #define likely(x) __builtin_expect((x),1) 11 #define unlikely(x) __builtin_expect((x),0) 22 12 23 13
Note: See TracChangeset
for help on using the changeset viewer.