cvs: ZendEngine2 / zend.h zend_alloc.c

From: Date: Wed, 21 Nov 2007 14:55:51 +0000
Subject: cvs: ZendEngine2 / zend.h zend_alloc.c
Groups: php.zend-engine.cvs 
Request: Send a blank email to php-zend-engine-cvs+get-6198@lists.php.net to get a copy of this message
dmitry Wed Nov 21 14:55:51 2007 UTC Modified files: /ZendEngine2 zend.h zend_alloc.c Log: Macro definitions are moved to zend.h http://cvs.php.net/viewvc.cgi/ZendEngine2/zend.h?r1=1.343&r2=1.344&diff_format=u Index: ZendEngine2/zend.h diff -u ZendEngine2/zend.h:1.343 ZendEngine2/zend.h:1.344 --- ZendEngine2/zend.h:1.343 Tue Nov 20 10:19:27 2007 +++ ZendEngine2/zend.h Wed Nov 21 14:55:51 2007 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: zend.h,v 1.343 2007/11/20 10:19:27 dmitry Exp $ */ +/* $Id: zend.h,v 1.344 2007/11/21 14:55:51 dmitry Exp $ */ #ifndef ZEND_H #define ZEND_H @@ -367,6 +367,14 @@ #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; } http://cvs.php.net/viewvc.cgi/ZendEngine2/zend_alloc.c?r1=1.207&r2=1.208&diff_format=u Index: ZendEngine2/zend_alloc.c diff -u ZendEngine2/zend_alloc.c:1.207 ZendEngine2/zend_alloc.c:1.208 --- ZendEngine2/zend_alloc.c:1.207 Tue Nov 6 12:06:23 2007 +++ ZendEngine2/zend_alloc.c Wed Nov 21 14:55:51 2007 @@ -18,7 +18,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: zend_alloc.c,v 1.207 2007/11/06 12:06:23 dmitry Exp $ */ +/* $Id: zend_alloc.c,v 1.208 2007/11/21 14:55:51 dmitry Exp $ */ #include "zend.h" #include "zend_alloc.h" @@ -80,12 +80,7 @@ #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) /* {{{ */

« previous php.zend-engine.cvs (#6198) next »