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

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


From: John Marino <marino@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Sat, 14 Jul 2012 01:58:43 -0700 (PDT)

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


-- 
DragonFly BSD source repository



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