mirror of
https://github.com/php/php-src.git
synced 2026-04-24 08:28:26 +02:00
Macro definitions are moved to zend.h
This commit is contained in:
@@ -329,6 +329,14 @@ struct _zval_struct {
|
||||
#define zend_always_inline inline
|
||||
#endif
|
||||
|
||||
#if (defined (__GNUC__) && __GNUC__ > 2 ) && !defined(__INTEL_COMPILER) && !defined(DARWIN) && !defined(__hpux) && !defined(_AIX)
|
||||
# define EXPECTED(condition) __builtin_expect(condition, 1)
|
||||
# define UNEXPECTED(condition) __builtin_expect(condition, 0)
|
||||
#else
|
||||
# define EXPECTED(condition) (condition)
|
||||
# define UNEXPECTED(condition) (condition)
|
||||
#endif
|
||||
|
||||
static zend_always_inline zend_uint zval_refcount_p(zval* pz) {
|
||||
return pz->refcount__gc;
|
||||
}
|
||||
|
||||
@@ -79,12 +79,7 @@ void zend_debug_alloc_output(char *format, ...)
|
||||
#endif
|
||||
|
||||
#if (defined (__GNUC__) && __GNUC__ > 2 ) && !defined(__INTEL_COMPILER) && !defined(DARWIN) && !defined(__hpux) && !defined(_AIX)
|
||||
# define EXPECTED(condition) __builtin_expect(condition, 1)
|
||||
# define UNEXPECTED(condition) __builtin_expect(condition, 0)
|
||||
static void zend_mm_panic(const char *message) __attribute__ ((noreturn));
|
||||
#else
|
||||
# define EXPECTED(condition) (condition)
|
||||
# define UNEXPECTED(condition) (condition)
|
||||
#endif
|
||||
|
||||
static void zend_mm_panic(const char *message)
|
||||
|
||||
Reference in New Issue
Block a user