summaryrefslogtreecommitdiff
path: root/lib/comparedf2.c
diff options
context:
space:
mode:
authorStephen Canon <scanon@apple.com>2010-07-01 17:58:24 +0000
committerStephen Canon <scanon@apple.com>2010-07-01 17:58:24 +0000
commit5c6d2ecb9c43d8b836b3203a243e24703d473765 (patch)
treefc9c0b02c0861584d954bfec42d79afcc9779b95 /lib/comparedf2.c
parente5086322295e5a345af02d09abfcf8ddca2d0897 (diff)
downloadcompiler-rt-5c6d2ecb9c43d8b836b3203a243e24703d473765.tar.gz
compiler-rt-5c6d2ecb9c43d8b836b3203a243e24703d473765.tar.bz2
compiler-rt-5c6d2ecb9c43d8b836b3203a243e24703d473765.tar.xz
Correction to previous commit which mistakenly included older versions of some files; now includes the correct LLVM license header
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@107408 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/comparedf2.c')
-rw-r--r--lib/comparedf2.c31
1 files changed, 18 insertions, 13 deletions
diff --git a/lib/comparedf2.c b/lib/comparedf2.c
index de700808..5c5ee9d6 100644
--- a/lib/comparedf2.c
+++ b/lib/comparedf2.c
@@ -1,16 +1,15 @@
-/*
- * The LLVM Compiler Infrastructure
- *
- * This file is distributed under the University of Illinois Open Source
- * License. See LICENSE.TXT for details.
- */
-
-#define DOUBLE_PRECISION
-#include "fp_lib.h"
-
-// This file implements the following soft-float comparison routines:
+//===-- lib/comparedf2.c - Double-precision comparisons -----------*- C -*-===//
+//
+// The LLVM Compiler Infrastructure
+//
+// This file is distributed under the University of Illinois Open Source
+// License. See LICENSE.TXT for details.
+//
+//===----------------------------------------------------------------------===//
//
-// __eqdf2 __gedf2 __nedf2
+// // This file implements the following soft-float comparison routines:
+//
+// __eqdf2 __gedf2 __unorddf2
// __ledf2 __gtdf2
// __ltdf2
// __nedf2
@@ -35,6 +34,11 @@
//
// Note that __ledf2( ) and __gedf2( ) are identical except in their handling of
// NaN values.
+//
+//===----------------------------------------------------------------------===//
+
+#define DOUBLE_PRECISION
+#include "fp_lib.h"
enum LE_RESULT {
LE_LESS = -1,
@@ -75,7 +79,6 @@ enum LE_RESULT __ledf2(fp_t a, fp_t b) {
}
}
-
enum GE_RESULT {
GE_LESS = -1,
GE_EQUAL = 0,
@@ -109,6 +112,8 @@ int __unorddf2(fp_t a, fp_t b) {
return aAbs > infRep || bAbs > infRep;
}
+// The following are alternative names for the preceeding routines.
+
enum LE_RESULT __eqdf2(fp_t a, fp_t b) {
return __ledf2(a, b);
}