Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3800 in orxonox.OLD for orxonox/trunk/src/defs


Ignore:
Timestamp:
Apr 13, 2005, 6:23:17 PM (20 years ago)
Author:
patrick
Message:

orxonox/trunk: defined macro for likely function, PNode now uses this branche prediction mechanism

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/defs/stdincl.h

    r3608 r3800  
    2929#include "debug.h"
    3030
     31
     32/* performance tweaking stuff */
     33#ifdef __unix__
     34 #include <glib-2.0/glib/gmacros.h>
     35 #define __LIKELY_IF(condition)  if( G_LIKELY(condition))
     36 #define __UNLIKELY_IF(condition) if( G_UNLIKELY(condition))
     37#else
     38 #define __LIKELY_IF(condition)  if( condition)
     39 #define __UNLIKELY_IF(condition) if( condition)
     40#endif
     41
    3142#endif /* _STDINCL_H */
Note: See TracChangeset for help on using the changeset viewer.