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