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

John Marino marino at crater.dragonflybsd.org
Thu Jul 12 04:34:43 PDT 2012


commit a8f1df175ae170933e9bcd35269f24460dabc606
Author: John Marino <netbsd at 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





More information about the Commits mailing list