Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/branches/avi_play/src/defs/compiler.h @ 6266

Last change on this file since 6266 was 5626, checked in by bensch, 19 years ago

trunk: optimizations, and operator== in BaseObject to compare ObjectNames

File size: 295 bytes
Line 
1
2#ifndef _COMPILER_H
3#define _COMPILER_H
4
5/* performance tweaking stuff */
6#if __GNUC__ == 2 && __GNUC_MINOR__ < 96
7#define __builtin_expect(x, expected_value) (x)
8#endif
9
10#define likely(x)       __builtin_expect((x),1)
11#define unlikely(x)     __builtin_expect((x),0)
12
13
14#endif /* _COMPILER_H */
Note: See TracBrowser for help on using the repository browser.