File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 22
22
23
23
ZEND_API void zend_init_fpu (void ) /* {{{ */
24
24
{
25
- #if XPFPA_HAVE_CW
25
+ /* under __SSE__ the FPCW is irrelevant; no need to change it */
26
+ #if XPFPA_HAVE_CW && !defined(__SSE__ )
26
27
XPFPA_DECLARE
27
28
28
29
if (!EG (saved_fpu_cw_ptr )) {
@@ -38,7 +39,7 @@ ZEND_API void zend_init_fpu(void) /* {{{ */
38
39
39
40
ZEND_API void zend_shutdown_fpu (void ) /* {{{ */
40
41
{
41
- #if XPFPA_HAVE_CW
42
+ #if XPFPA_HAVE_CW && !defined( __SSE__ )
42
43
if (EG (saved_fpu_cw_ptr )) {
43
44
XPFPA_RESTORE_CW (EG (saved_fpu_cw_ptr ));
44
45
}
@@ -49,8 +50,10 @@ ZEND_API void zend_shutdown_fpu(void) /* {{{ */
49
50
50
51
ZEND_API void zend_ensure_fpu_mode (void ) /* {{{ */
51
52
{
53
+ #ifndef __SSE__
52
54
XPFPA_DECLARE
53
55
54
56
XPFPA_SWITCH_DOUBLE ();
57
+ #endif
55
58
}
56
59
/* }}} */
You can’t perform that action at this time.
0 commit comments