summaryrefslogtreecommitdiffstats
path: root/libclc/generic/include/clc/float
diff options
context:
space:
mode:
authorJan Vesely <jan.vesely@rutgers.edu>2018-05-17 22:55:30 +0000
committerJan Vesely <jan.vesely@rutgers.edu>2018-05-17 22:55:30 +0000
commit70a270da5f4a27b670cba1cb8148fcce5c094f4f (patch)
treeba5043901fab059f1a5ccfb2578156c62ec4c027 /libclc/generic/include/clc/float
parentc762666e8747841ab7dd785415e1354a1682e954 (diff)
downloadbcm5719-llvm-70a270da5f4a27b670cba1cb8148fcce5c094f4f.tar.gz
bcm5719-llvm-70a270da5f4a27b670cba1cb8148fcce5c094f4f.zip
Add initial support for half precision builtins
v2: fix fmax implementation use consistent checks for __CLC_FP_SIZE add missing TODOs fix whitespace in definitions.h v3: undef ZERO in modf.inc Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu> reviewer: Jeroen Ketema <j.ketema@xs4all.nl> Reviewed-by: Aaron Watry <awatry@gmail.com> Tested-by: Aaron Watry <awatry@gmail.com> llvm-svn: 332677
Diffstat (limited to 'libclc/generic/include/clc/float')
-rw-r--r--libclc/generic/include/clc/float/definitions.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/libclc/generic/include/clc/float/definitions.h b/libclc/generic/include/clc/float/definitions.h
index 84a102e58e7..43335a78740 100644
--- a/libclc/generic/include/clc/float/definitions.h
+++ b/libclc/generic/include/clc/float/definitions.h
@@ -64,7 +64,7 @@
#define M_SQRT1_2 0x1.6a09e667f3bcdp-1
#ifdef __CLC_INTERNAL
-#define M_LOG210 0x1.a934f0979a371p+1
+#define M_LOG210 0x1.a934f0979a371p+1
#endif
#endif
@@ -80,6 +80,11 @@
#define HALF_MIN_10_EXP -4
#define HALF_MIN_EXP -13
+#define HALF_RADIX 2
+#define HALF_MAX 0x1.ffcp15h
+#define HALF_MIN 0x1.0p-14h
+#define HALF_EPSILON 0x1.0p-10h
+
#endif
#endif
OpenPOWER on IntegriCloud