Skip to content

Commit 10eb842

Browse files
committed
Revert "Fix #79595: zend_init_fpu() alters FPU precision"
This reverts commit 88dfc47.
1 parent 6ad7464 commit 10eb842

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

NEWS

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ PHP NEWS
88
. Fixed bug #79489 (.user.ini does not inherit). (cmb)
99
. Fixed bug #79600 (Regression in 7.4.6 when yielding an array based
1010
generator). (Nikita)
11-
. Fixed bug #79595 (zend_init_fpu() alters FPU precision). (cmb, Nikita)
1211

1312
- FFI:
1413
. Fixed bug #79571 (FFI: var_dumping unions may segfault). (cmb)

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)