amdgpu/half_exp10: Switch implementation to native_exp10
authorJan Vesely <jan.vesely@rutgers.edu>
Tue, 13 Feb 2018 22:09:37 +0000 (22:09 +0000)
committerJan Vesely <jan.vesely@rutgers.edu>
Tue, 13 Feb 2018 22:09:37 +0000 (22:09 +0000)
Reviewer: Tom Stellard <tstellar@redhat.com>
Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu>
llvm-svn: 325056

libclc/amdgpu/lib/SOURCES
libclc/amdgpu/lib/math/half_exp10.cl [new file with mode: 0644]

index 4979925..29fd280 100644 (file)
@@ -2,6 +2,7 @@ math/native_exp.cl
 math/native_log.cl
 math/native_log10.cl
 math/half_exp.cl
+math/half_exp10.cl
 math/half_rsqrt.cl
 math/half_sqrt.cl
 math/nextafter.cl
diff --git a/libclc/amdgpu/lib/math/half_exp10.cl b/libclc/amdgpu/lib/math/half_exp10.cl
new file mode 100644 (file)
index 0000000..31493e6
--- /dev/null
@@ -0,0 +1,6 @@
+#include <clc/clc.h>
+#define __CLC_FUNC exp10
+#define __FLOAT_ONLY
+#define __CLC_BODY <half_native_unary.inc>
+#include <clc/math/gentype.inc>