1 |
diff -up ilmbase-1.0.3/IexMath/IexMathFpu.cpp.ucontext ilmbase-1.0.3/IexMath/IexMathFpu.cpp |
2 |
--- ilmbase-1.0.3/IexMath/IexMathFpu.cpp.ucontext 2012-07-26 20:51:55.000000000 +0200 |
3 |
+++ ilmbase-1.0.3/IexMath/IexMathFpu.cpp 2012-08-02 23:33:14.815036891 +0200 |
4 |
@@ -228,6 +228,7 @@ clearExceptions () |
5 |
const uint16_t cwRestoreMask = ~((3 << 10) | (3 << 8)); |
6 |
const uint16_t cwRestoreVal = (0 << 10) | (3 << 8); |
7 |
|
8 |
+#if 0 |
9 |
inline void |
10 |
restoreControlRegs (const ucontext_t & ucon, bool clearExceptions) |
11 |
{ |
12 |
@@ -235,7 +236,7 @@ restoreControlRegs (const ucontext_t & u |
13 |
setMxcsr (ucon.uc_mcontext.fpregs->mxcsr, clearExceptions); |
14 |
} |
15 |
|
16 |
-#if 0 |
17 |
+#endif |
18 |
|
19 |
// |
20 |
// Ugly, the mxcsr isn't defined in GNU libc ucontext_t, but |
21 |
@@ -255,7 +256,6 @@ restoreControlRegs (const ucontext_t & u |
22 |
setMxcsr (kfp->magic == 0 ? kfp->mxcsr : 0, clearExceptions); |
23 |
} |
24 |
|
25 |
-#endif |
26 |
|
27 |
} // namespace FpuControl |
28 |
|