summaryrefslogtreecommitdiffstats
path: root/compiler-rt/lib/fp_lib.h
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2011-03-25 15:52:51 +0000
committerDaniel Dunbar <daniel@zuster.org>2011-03-25 15:52:51 +0000
commit1102c9ae58ecafa26dc088d75abee3591dede94e (patch)
treedd3b6de4045d81106ef70149f1adf5efc39fb983 /compiler-rt/lib/fp_lib.h
parent69f1f9391bf11589ad1704d586309a96ee132903 (diff)
downloadbcm5719-llvm-1102c9ae58ecafa26dc088d75abee3591dede94e.tar.gz
bcm5719-llvm-1102c9ae58ecafa26dc088d75abee3591dede94e.zip
Split single & double comparison routines into separate implementation files,
for consistency. llvm-svn: 128282
Diffstat (limited to 'compiler-rt/lib/fp_lib.h')
-rw-r--r--compiler-rt/lib/fp_lib.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/compiler-rt/lib/fp_lib.h b/compiler-rt/lib/fp_lib.h
index 6c9455ace0e..2333c8aec60 100644
--- a/compiler-rt/lib/fp_lib.h
+++ b/compiler-rt/lib/fp_lib.h
@@ -25,6 +25,20 @@
#include <stdbool.h>
#include <limits.h>
+// Result enumerations used in comparison routines.
+enum LE_RESULT {
+ LE_LESS = -1,
+ LE_EQUAL = 0,
+ LE_GREATER = 1,
+ LE_UNORDERED = 1
+};
+enum GE_RESULT {
+ GE_LESS = -1,
+ GE_EQUAL = 0,
+ GE_GREATER = 1,
+ GE_UNORDERED = -1 // Note: different from LE_UNORDERED
+};
+
#if defined SINGLE_PRECISION
typedef uint32_t rep_t;
OpenPOWER on IntegriCloud