mirror of
https://github.com/termux-pacman/termux-packages.git
synced 2026-01-04 01:50:19 +00:00
20 lines
807 B
Diff
20 lines
807 B
Diff
--- a/src/lib/Iex/IexMathFpu.cpp
|
|
+++ b/src/lib/Iex/IexMathFpu.cpp
|
|
@@ -251,14 +251,14 @@
|
|
inline void
|
|
restoreControlRegs (const ucontext_t & ucon, bool clearExceptions)
|
|
{
|
|
-# if defined(__GLIBC__) && defined(__i386__)
|
|
+# if (defined(__GLIBC__) || defined(__ANDROID__)) && defined(__i386__)
|
|
setCw ((ucon.uc_mcontext.fpregs->cw & cwRestoreMask) | cwRestoreVal);
|
|
#else
|
|
setCw ((ucon.uc_mcontext.fpregs->cwd & cwRestoreMask) | cwRestoreVal);
|
|
# endif
|
|
|
|
_fpstate* kfp = reinterpret_cast<_fpstate*> (ucon.uc_mcontext.fpregs);
|
|
-# if defined(__GLIBC__) && defined(__i386__)
|
|
+# if (defined(__GLIBC__) || defined(__ANDROID__)) && defined(__i386__)
|
|
setMxcsr (kfp->magic == 0 ? kfp->mxcsr : 0, clearExceptions);
|
|
#else
|
|
setMxcsr (kfp->mxcsr, clearExceptions);
|