summaryrefslogtreecommitdiffstats
path: root/compiler-rt/lib/adddf3.c
diff options
context:
space:
mode:
Diffstat (limited to 'compiler-rt/lib/adddf3.c')
-rw-r--r--compiler-rt/lib/adddf3.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/compiler-rt/lib/adddf3.c b/compiler-rt/lib/adddf3.c
index c40135613dd..5338a4b4f44 100644
--- a/compiler-rt/lib/adddf3.c
+++ b/compiler-rt/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,8 +7,8 @@
//
//===----------------------------------------------------------------------===//
//
-// 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).
//
//===----------------------------------------------------------------------===//
@@ -147,8 +147,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));
-}
OpenPOWER on IntegriCloud