add GCC_LIKELY
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3494
This commit is contained in:
parent
14e46abf68
commit
6d67340c56
2 changed files with 3 additions and 0 deletions
|
@ -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([
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue