mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-11 07:11:39 +00:00
Add preprocessor check for __OPTIMIZE__ to EDUKE32_PREDICT_TRUE and EDUKE32_PREDICT_FALSE
git-svn-id: https://svn.eduke32.com/eduke32@7659 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
efa3022d07
commit
6395909290
1 changed files with 1 additions and 1 deletions
|
@ -167,7 +167,7 @@
|
||||||
# define EXTERN_INLINE_HEADER extern __fastcall
|
# define EXTERN_INLINE_HEADER extern __fastcall
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined __GNUC__ || __has_builtin(__builtin_expect)
|
#if defined(__OPTIMIZE__) && (defined __GNUC__ || __has_builtin(__builtin_expect))
|
||||||
#define EDUKE32_PREDICT_TRUE(x) __builtin_expect(!!(x),1)
|
#define EDUKE32_PREDICT_TRUE(x) __builtin_expect(!!(x),1)
|
||||||
#define EDUKE32_PREDICT_FALSE(x) __builtin_expect(!!(x),0)
|
#define EDUKE32_PREDICT_FALSE(x) __builtin_expect(!!(x),0)
|
||||||
#else
|
#else
|
||||||
|
|
Loading…
Reference in a new issue