pike.git/
src/
global.h
Branch:
Tag:
Non-build tags
All tags
No tags
2014-02-25
2014-02-25 14:32:09 by Per Hedbor <ph@opera.com>
3d0aa42062494faeec41d6d19cfc133eedafde88 (
9
lines) (+
9
/-
0
)
[
Show
|
Annotate
]
Branch:
8.0
Moved the UNLIKELY/LIKELY macros to global.h, and use a real configure test
207:
#define DECLSPEC(X) #endif /* HAVE_DECLSPEC */
+
#ifdef HAS_BUILTIN_EXPECT
+
# define UNLIKELY(X) __builtin_expect( (X), 0 )
+
# define LIKELY(X) __builtin_expect( (X), 1 )
+
#else
+
# define UNLIKELY(X) X
+
# define LIKELY(X) X
+
#endif
+
#ifndef HAVE_WORKING_REALLOC_NULL #define realloc(PTR, SZ) pike_realloc(PTR,SZ) #endif