File: patch.txt

package info (click to toggle)
gecode-snapshot 6.2.0%2Bgit20240207-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 35,308 kB
  • sloc: cpp: 475,516; perl: 2,077; makefile: 1,816; sh: 198
file content (16 lines) | stat: -rw-r--r-- 796 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
diff -u -r boost/numeric/interval/detail/msvc_rounding_control.hpp /cygdrive/c/Users/schulte/boost/numeric/interval/detail/msvc_rounding_control.hpp
--- boost/numeric/interval/detail/msvc_rounding_control.hpp	2010-11-10 16:52:44.696786200 +0100
+++ /cygdrive/c/Users/schulte/boost/numeric/interval/detail/msvc_rounding_control.hpp	2010-11-10 16:01:56.730082700 +0100
@@ -79,7 +79,11 @@
   static void get_rounding_mode(rounding_mode& mode)
   { mode = msvc2hard(_control87(0, 0)); }
   static void set_rounding_mode(const rounding_mode mode)
+#if defined(_M_X64) || defined(_M_IA64)
+  { _control87(hard2msvc(mode), _MCW_EM | _MCW_RC ); }
+#else
   { _control87(hard2msvc(mode), _MCW_EM | _MCW_RC | _MCW_PC | _MCW_IC); }
+#endif
   static double to_int(const double& x) { return rint(x); }
 };