Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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


Ignore:
Timestamp:
Apr 17, 2005, 6:20:02 PM (20 years ago)
Author:
bensch
Message:

orxonox/trunk: moved likely to compiler.h in defs
also reset all the UNLIKELY_IF functions to how they should look.

the old approach is still valid, but depricated.

@patrick: i hope this is ok for you, for it is LINUX-standard.
and i think windows is also able to handle likely/unlikely because it is a compiler issue not a system issue

Location:
orxonox/trunk/src/defs
Files:
1 added
1 edited

Legend:

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

    r3810 r3860  
    2929#include "debug.h"
    3030
    31 
    32 /* performance tweaking stuff */
    33 #ifdef __unix__
    34  #include <linux/compiler.h>
    35  #define __LIKELY_IF(condition)  if( likely(condition))
    36  #define __UNLIKELY_IF(condition) if( unlikely(condition))
    37 #else
    38  #define __LIKELY_IF(condition)  if( condition)
    39  #define __UNLIKELY_IF(condition) if( condition)
    40 #endif
     31#include "compiler.h"
    4132
    4233#endif /* _STDINCL_H */
Note: See TracChangeset for help on using the changeset viewer.