From 4879dd74718e6765b6943a885a06fbddf31999db Mon Sep 17 00:00:00 2001 From: Jan Vesely Date: Tue, 13 Feb 2018 22:09:35 +0000 Subject: [PATCH] amdgpu/half_exp: Switch implementation to native_exp Reviewer: Tom Stellard Signed-off-by: Jan Vesely llvm-svn: 325055 --- libclc/amdgpu/lib/SOURCES | 1 + libclc/amdgpu/lib/math/half_exp.cl | 6 ++++++ 2 files changed, 7 insertions(+) create mode 100644 libclc/amdgpu/lib/math/half_exp.cl diff --git a/libclc/amdgpu/lib/SOURCES b/libclc/amdgpu/lib/SOURCES index b55337f55197..4979925fcac9 100644 --- a/libclc/amdgpu/lib/SOURCES +++ b/libclc/amdgpu/lib/SOURCES @@ -1,6 +1,7 @@ math/native_exp.cl math/native_log.cl math/native_log10.cl +math/half_exp.cl math/half_rsqrt.cl math/half_sqrt.cl math/nextafter.cl diff --git a/libclc/amdgpu/lib/math/half_exp.cl b/libclc/amdgpu/lib/math/half_exp.cl new file mode 100644 index 000000000000..dd561472dbe7 --- /dev/null +++ b/libclc/amdgpu/lib/math/half_exp.cl @@ -0,0 +1,6 @@ +#include + +#define __CLC_FUNC exp +#define __FLOAT_ONLY +#define __CLC_BODY +#include