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:
parent
6157cbaebf
commit
4a2808a9a6
3 changed files with 18 additions and 0 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue