A patch for x64

Issue #329 new
Former user created an issue

If you're building on Linux/amd64 system, you will require to import this patch to fix a compile error - floating point exception.

--- a/Linux/386/include/fpuctl.h Sat Mar 08 13:03:33 2015 +0000
+++ b/Linux/386/include/fpuctl.h Sat Mar 28 02:16:23 2015 +0800
<at> <at> -6,12 +6,12 <at> <at>
static void
setfcr(ulong fcr)
{
- __asm__( "xorb $0x3f, %%al\n\t"
+ __asm__ volatile( "xorb $0x3f, %%al\n\t"
"pushw %%ax\n\t"
"fwait\n\t"
"fldcw (%%esp)\n\t"
"popw %%ax\n\t"
- : /* no output */
+ : "=a" (fcr)
: "al" (fcr)
);
}

Comments (2)

  1. Charles Forsyth

    this interface was replaced on 24 March. I did away with fpuctl.h (it's now an empty file) and the floating-point control operations are now accessed from assembly language instead of having to deal with the extra layer of obscurity in asm. They aren't on a critical path so the inline assembly isn't important.

  2. Log in to comment