diff options
author | Daniel Dunbar <daniel@zuster.org> | 2011-03-21 23:30:19 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2011-03-21 23:30:19 +0000 |
commit | 0868ca6589dee209effebdcb0aa2af1281b1a814 (patch) | |
tree | ab50903fbc1dfea825df34cdf3d72debc93e3eb5 /lib/addsf3.c | |
parent | 2caeeefe078e7c10170f02b717e4a5ab7623e554 (diff) | |
download | compiler-rt-0868ca6589dee209effebdcb0aa2af1281b1a814.tar.gz |
compiler-rt: Split subdf3 and subsf3 out of add implementations, for
consistency.
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@128038 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/addsf3.c')
-rw-r--r-- | lib/addsf3.c | 21 |
1 files changed, 3 insertions, 18 deletions
diff --git a/lib/addsf3.c b/lib/addsf3.c index c0e8d8e70..061528b35 100644 --- a/lib/addsf3.c +++ b/lib/addsf3.c @@ -1,4 +1,4 @@ -//===-- lib/addsf3.c - Single-precision addition and subtraction --*- C -*-===// +//===-- lib/addsf3.c - Single-precision addition ------------------*- C -*-===// // // The LLVM Compiler Infrastructure // @@ -7,8 +7,8 @@ // //===----------------------------------------------------------------------===// // -// This file implements single-precision soft-float addition and subtraction -// with the IEEE-754 default rounding (to nearest, ties to even). +// This file implements single-precision soft-float addition with the IEEE-754 +// default rounding (to nearest, ties to even). // //===----------------------------------------------------------------------===// @@ -147,18 +147,3 @@ fp_t __addsf3(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 __subsf3(fp_t a, fp_t b) { - return __addsf3(a, fromRep(toRep(b) ^ signBit)); -} - - - - - - - - - - |