]> granicus.if.org Git - php/commitdiff
- disable HAVE__CONTROLFP_S with VC9, 3x times slowdown
authorPierre Joye <pajoye@php.net>
Tue, 17 Mar 2009 13:33:51 +0000 (13:33 +0000)
committerPierre Joye <pajoye@php.net>
Tue, 17 Mar 2009 13:33:51 +0000 (13:33 +0000)
Zend/zend_float.h

index aa196c33ec04a15ebb4ea81d534ba58a3e0c0dd5..591832ebe8dc7eb03992533aa770bbd8e3b1aee7 100644 (file)
 /* 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