> On Jan 29, 2020, at 10:17, Masamichi Hosoda <truer...@trueroad.jp> wrote:
> 
>> I ask because, in the german forum Arnold found a method to cure some
>> windows-only bugs., about mis-predicted force and probably several
>> assertion-failures:
>> https://lilypondforum.de/index.php/topic,609.msg3463.html#msg3463
> 
> The patch is very interesting.

+  fprintf(stderr, " X87 FPU setup via asm() ... ");
+  asm(
+      "     push %ebp"
+    "\n     mov  $0x027f, %eax"
+    "\n     push %eax"
+    "\n     mov  %esp, %ebp"
+    "\n     fldcw (%ebp)"
+    "\n     pop %eax"
+    "\n     pop %ebp"
+  );
+  fprintf(stderr, "done.\r                                 \r");

What does this do?  Is it something that could be handled portably with these 
C++11 functions?
https://en.cppreference.com/w/cpp/numeric/fenv
— 
Dan


Reply via email to