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

John Marino marino at crater.dragonflybsd.org
Sat Jul 14 01:58:43 PDT 2012


commit 4e1f876965f7f6ef75345e19a70d504d865cc27a
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/4e1f876965f7f6ef75345e19a70d504d865cc27a


-- 
DragonFly BSD source repository





More information about the Commits mailing list