summaryrefslogtreecommitdiffstats
path: root/libclc/generic/include
diff options
context:
space:
mode:
authorJan Vesely <jan.vesely@rutgers.edu>2018-04-10 00:11:58 +0000
committerJan Vesely <jan.vesely@rutgers.edu>2018-04-10 00:11:58 +0000
commit4be03390233986df3c3fbe3a8f2b0d04de06a34a (patch)
tree98366b3761c935ba35c71bbd5550af5d85ca1ad4 /libclc/generic/include
parent3241cec5779f96fa48455b9a25000550499b01d4 (diff)
downloadbcm5719-llvm-4be03390233986df3c3fbe3a8f2b0d04de06a34a.tar.gz
bcm5719-llvm-4be03390233986df3c3fbe3a8f2b0d04de06a34a.zip
hypot: Port from amd builtins
v2: Fix whitespace errors Use only subnormal path. Passes CTS on carrizo and turks. Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu> Reviewer: Aaron Watry <awatry@gmail.com> llvm-svn: 329647
Diffstat (limited to 'libclc/generic/include')
-rw-r--r--libclc/generic/include/math/clc_hypot.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/libclc/generic/include/math/clc_hypot.h b/libclc/generic/include/math/clc_hypot.h
new file mode 100644
index 00000000000..66901e5d692
--- /dev/null
+++ b/libclc/generic/include/math/clc_hypot.h
@@ -0,0 +1,5 @@
+#define __CLC_FUNCTION __clc_hypot
+#define __CLC_BODY <clc/math/binary_decl_tt.inc>
+#include <clc/math/gentype.inc>
+#undef __CLC_BODY
+#undef __CLC_FUNCTION
OpenPOWER on IntegriCloud