[Libclc-dev] [PATCH 5/9] amdgpu/half_exp2: Switch implementation to native_exp2
Jan Vesely via Libclc-dev
libclc-dev at lists.llvm.org
Wed Jan 31 21:42:21 PST 2018
Passes CTS on carrizo
Signed-off-by: Jan Vesely <jan.vesely at rutgers.edu>
---
amdgpu/lib/SOURCES | 1 +
amdgpu/lib/math/half_exp2.cl | 6 ++++++
2 files changed, 7 insertions(+)
create mode 100644 amdgpu/lib/math/half_exp2.cl
diff --git a/amdgpu/lib/SOURCES b/amdgpu/lib/SOURCES
index 29fd280..de1d24b 100644
--- a/amdgpu/lib/SOURCES
+++ b/amdgpu/lib/SOURCES
@@ -3,6 +3,7 @@ math/native_log.cl
math/native_log10.cl
math/half_exp.cl
math/half_exp10.cl
+math/half_exp2.cl
math/half_rsqrt.cl
math/half_sqrt.cl
math/nextafter.cl
diff --git a/amdgpu/lib/math/half_exp2.cl b/amdgpu/lib/math/half_exp2.cl
new file mode 100644
index 0000000..c93aa59
--- /dev/null
+++ b/amdgpu/lib/math/half_exp2.cl
@@ -0,0 +1,6 @@
+#include <clc/clc.h>
+
+#define __CLC_FUNC exp2
+#define __FLOAT_ONLY
+#define __CLC_BODY <half_native_unary.inc>
+#include <clc/math/gentype.inc>
--
2.14.3
More information about the Libclc-dev
mailing list