summaryrefslogtreecommitdiff
path: root/lib/addsf3.c
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2011-03-21 23:30:19 +0000
committerDaniel Dunbar <daniel@zuster.org>2011-03-21 23:30:19 +0000
commit0868ca6589dee209effebdcb0aa2af1281b1a814 (patch)
treeab50903fbc1dfea825df34cdf3d72debc93e3eb5 /lib/addsf3.c
parent2caeeefe078e7c10170f02b717e4a5ab7623e554 (diff)
downloadcompiler-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.c21
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));
-}
-
-
-
-
-
-
-
-
-
-