diff options
author | Ed Schouten <ed@FreeBSD.org> | 2011-06-02 20:02:42 +0000 |
---|---|---|
committer | Ed Schouten <ed@FreeBSD.org> | 2011-06-02 20:02:42 +0000 |
commit | b0a04aaa595ba76468e521f12727a872d144d6d0 (patch) | |
tree | 51db692a6c937b68c7180d996af6bb7952b4b55d /lib/adddf3.c | |
parent | f170b6928b38a264ce005e5fa80d428364b6f659 (diff) | |
download | src-b0a04aaa595ba76468e521f12727a872d144d6d0.tar.gz src-b0a04aaa595ba76468e521f12727a872d144d6d0.zip |
Import compiler-rt r132478.vendor/compiler-rt/compiler-rt-r132478
Notes
Notes:
svn path=/vendor/compiler-rt/dist/; revision=222625
svn path=/vendor/compiler-rt/compiler-rt-r132478/; revision=222626; tag=vendor/compiler-rt/compiler-rt-r132478
Diffstat (limited to 'lib/adddf3.c')
-rw-r--r-- | lib/adddf3.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/lib/adddf3.c b/lib/adddf3.c index c40135613dd6..3cc997b71a3b 100644 --- a/lib/adddf3.c +++ b/lib/adddf3.c @@ -1,4 +1,4 @@ -//===-- lib/adddf3.c - Double-precision addition and subtraction --*- C -*-===// +//===-- lib/adddf3.c - Double-precision addition ------------------*- C -*-===// // // The LLVM Compiler Infrastructure // @@ -7,15 +7,20 @@ // //===----------------------------------------------------------------------===// // -// This file implements double-precision soft-float addition and subtraction -// with the IEEE-754 default rounding (to nearest, ties to even). +// This file implements double-precision soft-float addition with the IEEE-754 +// default rounding (to nearest, ties to even). // //===----------------------------------------------------------------------===// +#include "abi.h" + #define DOUBLE_PRECISION #include "fp_lib.h" -fp_t __adddf3(fp_t a, fp_t b) { +ARM_EABI_FNALIAS(dadd, adddf3); + +COMPILER_RT_ABI fp_t +__adddf3(fp_t a, fp_t b) { rep_t aRep = toRep(a); rep_t bRep = toRep(b); @@ -147,8 +152,3 @@ fp_t __adddf3(fp_t a, fp_t b) { if (roundGuardSticky == 0x4) result += result & 1; return fromRep(result); } - -// Subtraction; flip the sign bit of b and add. -fp_t __subdf3(fp_t a, fp_t b) { - return __adddf3(a, fromRep(toRep(b) ^ signBit)); -} |