openexr-3.1.5-musl.patch 744 B

123456789101112131415161718192021
  1. --- a/src/lib/Iex/IexMathFpu.cpp
  2. +++ b/src/lib/Iex/IexMathFpu.cpp
  3. @@ -251,14 +251,14 @@ restoreControlRegs (const ucontext_t & u
  4. inline void
  5. restoreControlRegs (const ucontext_t & ucon, bool clearExceptions)
  6. {
  7. -# if defined(__GLIBC__) && defined(__i386__)
  8. +#if defined(__i386__)
  9. setCw ((ucon.uc_mcontext.fpregs->cw & cwRestoreMask) | cwRestoreVal);
  10. #else
  11. setCw ((ucon.uc_mcontext.fpregs->cwd & cwRestoreMask) | cwRestoreVal);
  12. -# endif
  13. +#endif
  14. _fpstate* kfp = reinterpret_cast<_fpstate*> (ucon.uc_mcontext.fpregs);
  15. -# if defined(__GLIBC__) && defined(__i386__)
  16. +#if defined(__i386__)
  17. setMxcsr (kfp->magic == 0 ? kfp->mxcsr : 0, clearExceptions);
  18. #else
  19. setMxcsr (kfp->mxcsr, clearExceptions);