Skip to content

Commit b9d0ff7

Browse files
committed
Merge branch 'PHP-7.4'
* PHP-7.4: Revert "Fix #79595: zend_init_fpu() alters FPU precision"
2 parents c803499 + 10eb842 commit b9d0ff7

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

Zend/zend_float.c

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,7 @@
2222

2323
ZEND_API void zend_init_fpu(void) /* {{{ */
2424
{
25-
/* under __SSE__ the FPCW is irrelevant; no need to change it */
26-
#if XPFPA_HAVE_CW && !defined(__SSE__)
25+
#if XPFPA_HAVE_CW
2726
XPFPA_DECLARE
2827

2928
if (!EG(saved_fpu_cw_ptr)) {
@@ -39,7 +38,7 @@ ZEND_API void zend_init_fpu(void) /* {{{ */
3938

4039
ZEND_API void zend_shutdown_fpu(void) /* {{{ */
4140
{
42-
#if XPFPA_HAVE_CW && !defined(__SSE__)
41+
#if XPFPA_HAVE_CW
4342
if (EG(saved_fpu_cw_ptr)) {
4443
XPFPA_RESTORE_CW(EG(saved_fpu_cw_ptr));
4544
}
@@ -50,10 +49,8 @@ ZEND_API void zend_shutdown_fpu(void) /* {{{ */
5049

5150
ZEND_API void zend_ensure_fpu_mode(void) /* {{{ */
5251
{
53-
#ifndef __SSE__
5452
XPFPA_DECLARE
5553

5654
XPFPA_SWITCH_DOUBLE();
57-
#endif
5855
}
5956
/* }}} */

0 commit comments

Comments
 (0)