Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5626 in orxonox.OLD for trunk/src/defs/compiler.h


Ignore:
Timestamp:
Nov 17, 2005, 12:01:45 PM (18 years ago)
Author:
bensch
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/defs/compiler.h

    r3860 r5626  
    88#endif
    99
    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)
    2212
    2313
Note: See TracChangeset for help on using the changeset viewer.