1
0
Fork 0

check for builtin_expect and define GCC_UNLIKELY

Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@2188
This commit is contained in:
Peter Veenstra 2005-04-21 21:03:19 +00:00
parent 6157cbaebf
commit 4a2808a9a6
3 changed files with 18 additions and 0 deletions

View file

@ -331,6 +331,12 @@ AH_BOTTOM([#if C_HAS_ATTRIBUTE
#define GCC_ATTRIBUTE(x) /* attribute not supported */
#endif])
AH_BOTTOM([#if C_HAS_BUILTIN_EXPECT
#define GCC_UNLIKELY(x) __builtin_expect((x),0)
#else
#define GCC_UNLIKELY(x) (x)
#endif])
AH_BOTTOM([
typedef double Real64;