DragonFly BSD
DragonFly commits List (threaded) for 2012-07
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

git: x86_64 FPU: Set 64-bit precision for fadd/fsub/fsqrt etc.


From: John Marino <marino@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Thu, 12 Jul 2012 04:34:43 -0700 (PDT)

commit a8f1df175ae170933e9bcd35269f24460dabc606
Author: John Marino <netbsd@marino.st>
Date:   Thu Jul 12 13:15:12 2012 +0200

    x86_64 FPU: Set 64-bit precision for fadd/fsub/fsqrt etc.
    
    On AMD64, GCC and the ABI expects the x87 unit to be running in 80/64
    mode rather than 64/53 mode seen on i386.  This corrects errors seen
    in long double tests involving runtime calculations.  Previously, the
    results of these runtime calculations would get rounded due to use
    of 53-bit mantissas.

Summary of changes:
 sys/platform/pc64/x86_64/machdep.c       |    2 +-
 sys/platform/pc64/x86_64/mp_machdep.c    |    2 +-
 sys/platform/pc64/x86_64/npx.c           |    2 +-
 sys/platform/vkernel64/x86_64/cpu_regs.c |    2 +-
 sys/platform/vkernel64/x86_64/npx.c      |    4 ++--
 5 files changed, 6 insertions(+), 6 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/a8f1df175ae170933e9bcd35269f24460dabc606


-- 
DragonFly BSD source repository



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]