Skip to content

x86 zend_init_fpu() alters FPU precision #12368

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions Zend/zend_float.h
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ END_EXTERN_C()
# define HAVE__CONTROLFP_S
#endif /* _MSC_VER */

#if defined(HAVE__CONTROLFP_S) && !defined(__x86_64__)
#if defined(HAVE__CONTROLFP_S) && !defined(__i386__) && !defined(__x86_64__)

/* float.h defines _controlfp_s */
# include <float.h>
Expand Down Expand Up @@ -138,7 +138,7 @@ END_EXTERN_C()
return _xpfpa_result; \
} while (0)

#elif defined(HAVE__CONTROLFP) && !defined(__x86_64__)
#elif defined(HAVE__CONTROLFP) && !defined(__i386__) && !defined(__x86_64__)

/* float.h defines _controlfp */
# include <float.h>
Expand Down Expand Up @@ -197,7 +197,7 @@ END_EXTERN_C()
return _xpfpa_result; \
} while (0)

#elif defined(HAVE__FPU_SETCW) && !defined(__x86_64__) /* glibc systems */
#elif defined(HAVE__FPU_SETCW) && !defined(__i386__) && !defined(__x86_64__) /* glibc systems */

/* fpu_control.h defines _FPU_[GS]ETCW */
# include <fpu_control.h>
Expand Down Expand Up @@ -256,7 +256,7 @@ END_EXTERN_C()
return _xpfpa_result; \
} while (0)

#elif defined(HAVE_FPSETPREC) && !defined(__x86_64__) /* FreeBSD */
#elif defined(HAVE_FPSETPREC) && !defined(__i386__) && !defined(__x86_64__) /* FreeBSD */

/* fpu_control.h defines _FPU_[GS]ETCW */
# include <machine/ieeefp.h>
Expand Down Expand Up @@ -312,7 +312,7 @@ END_EXTERN_C()
return _xpfpa_result; \
} while (0)

#elif defined(HAVE_FPU_INLINE_ASM_X86) && !defined(__x86_64__)
#elif defined(HAVE_FPU_INLINE_ASM_X86) && !defined(__i386__) && !defined(__x86_64__)

/*
Custom x86 inline assembler implementation.
Expand Down