1
0
Fork 0

add GCC_LIKELY

Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3494
This commit is contained in:
Peter Veenstra 2009-11-06 14:00:13 +00:00
parent 14e46abf68
commit 6d67340c56
2 changed files with 3 additions and 0 deletions

View file

@ -344,8 +344,10 @@ AH_BOTTOM([#if C_HAS_ATTRIBUTE
AH_BOTTOM([#if C_HAS_BUILTIN_EXPECT
#define GCC_UNLIKELY(x) __builtin_expect((x),0)
#define GCC_LIKELY(X) __builtin_expect((x),1)
#else
#define GCC_UNLIKELY(x) (x)
#define GCC_LIKELY(x) (x)
#endif])
AH_BOTTOM([

View file

@ -54,6 +54,7 @@
#define GCC_ATTRIBUTE(x) /* attribute not supported */
#define GCC_UNLIKELY(x) (x)
#define GCC_LIKELY(x) (x)
#define INLINE __forceinline
#define DB_FASTCALL __fastcall