summaryrefslogtreecommitdiff
path: root/Zend/zend_execute_API.c
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@php.net>2009-03-18 10:49:36 +0000
committerDmitry Stogov <dmitry@php.net>2009-03-18 10:49:36 +0000
commit83a6de49b12eee57d2033c6a5d325e63e9b96a6d (patch)
tree09ca10068da364f9c125e10344a1ddc219000463 /Zend/zend_execute_API.c
parent6581ded618c07a935952b8996ac277265bedefb0 (diff)
downloadphp-git-83a6de49b12eee57d2033c6a5d325e63e9b96a6d.tar.gz
Fixed floating point mathematic speed degradation (Christian)
Diffstat (limited to 'Zend/zend_execute_API.c')
-rw-r--r--Zend/zend_execute_API.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/Zend/zend_execute_API.c b/Zend/zend_execute_API.c
index bdf20bc8a3..ec1f9327b3 100644
--- a/Zend/zend_execute_API.c
+++ b/Zend/zend_execute_API.c
@@ -32,6 +32,7 @@
#include "zend_closures.h"
#include "zend_exceptions.h"
#include "zend_vm.h"
+#include "zend_float.h"
#ifdef HAVE_SYS_TIME_H
#include <sys/time.h>
#endif
@@ -136,6 +137,8 @@ static int clean_non_persistent_class_full(zend_class_entry **ce TSRMLS_DC) /* {
void init_executor(TSRMLS_D) /* {{{ */
{
+ zend_init_fpu(TSRMLS_C);
+
INIT_ZVAL(EG(uninitialized_zval));
/* trick to make uninitialized_zval never be modified, passed by ref, etc. */
Z_ADDREF(EG(uninitialized_zval));
@@ -353,6 +356,9 @@ void shutdown_executor(TSRMLS_D) /* {{{ */
FREE_HASHTABLE(EG(in_autoload));
}
} zend_end_try();
+
+ zend_shutdown_fpu(TSRMLS_C);
+
EG(active) = 0;
}
/* }}} */