[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: 2.91.84 - windows-only bugs
From: |
Dan Eble |
Subject: |
Re: 2.91.84 - windows-only bugs |
Date: |
Wed, 29 Jan 2020 10:41:41 -0500 |
> On Jan 29, 2020, at 10:17, Masamichi Hosoda <address@hidden> 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