cvs: ZendEngine2(PHP_5_3) / zend_float.h
[email protected] ("Pierre-Alain Joye") Tue, 17 Mar 2009 13:34:26 -0000
| Newsgroups | php.zend-engine.cvs |
|---|---|
| Message-ID | <cvspajoye1237296866@cvsserver> |
pajoye Tue Mar 17 13:34:26 2009 UTC
Modified files: (Branch: PHP_5_3)
/ZendEngine2 zend_float.h
Log:
- MFH: disable HAVE__CONTROLFP_S with VC9, 3x times slowdown
http://cvs.php.net/viewvc.cgi/ZendEngine2/zend_float.h?r1=1.2.2.3&r2=1.2.2.4&diff_format=u
Index: ZendEngine2/zend_float.h
diff -u ZendEngine2/zend_float.h:1.2.2.3 ZendEngine2/zend_float.h:1.2.2.4
--- ZendEngine2/zend_float.h:1.2.2.3 Fri Jan 2 20:45:41 2009
+++ ZendEngine2/zend_float.h Tue Mar 17 13:34:26 2009
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: zend_float.h,v 1.2.2.3 2009/01/02 20:45:41 felipe Exp $ */
+/* $Id: zend_float.h,v 1.2.2.4 2009/03/17 13:34:26 pajoye Exp $ */
#ifndef ZEND_FLOAT_H
#define ZEND_FLOAT_H
@@ -69,8 +69,11 @@
/* MSVC detection (MSVC people usually don't use autoconf) */
#ifdef _MSC_VER
# if _MSC_VER >= 1500
+ /* Disable it, it slowdowns the floating operation more than
+ anything else, by a factor 3 (using Bench.php (mandel and
+ mandel2 for example)*/
/* Visual C++ 2008 or higher, supports _controlfp_s */
-# define HAVE__CONTROLFP_S
+ /*# define HAVE__CONTROLFP_S */
# else
/* Visual C++ (up to 2005), supports _controlfp */
# define HAVE__CONTROLFP