diff options
author | Jan Vesely <jan.vesely@rutgers.edu> | 2018-02-13 22:09:41 +0000 |
---|---|---|
committer | Jan Vesely <jan.vesely@rutgers.edu> | 2018-02-13 22:09:41 +0000 |
commit | 65fd65efbf63514fd71685262417b5e9642c4de9 (patch) | |
tree | 3b6df46fda05aef5f93fea6ed10f856b9b141fbe /libclc/amdgpu | |
parent | 2d3b6dfdca75a9ec8bb783ab7b50d68c7f6ca6d3 (diff) | |
download | llvm-65fd65efbf63514fd71685262417b5e9642c4de9.tar.gz |
amdgpu/half_log: Switch implementation to native_log
Reviewer: Tom Stellard <tstellar@redhat.com>
Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu>
llvm-svn: 325058
Diffstat (limited to 'libclc/amdgpu')
-rw-r--r-- | libclc/amdgpu/lib/SOURCES | 1 | ||||
-rw-r--r-- | libclc/amdgpu/lib/math/half_log.cl | 6 |
2 files changed, 7 insertions, 0 deletions
diff --git a/libclc/amdgpu/lib/SOURCES b/libclc/amdgpu/lib/SOURCES index de1d24b684ab..8d5160219cde 100644 --- a/libclc/amdgpu/lib/SOURCES +++ b/libclc/amdgpu/lib/SOURCES @@ -4,6 +4,7 @@ math/native_log10.cl math/half_exp.cl math/half_exp10.cl math/half_exp2.cl +math/half_log.cl math/half_rsqrt.cl math/half_sqrt.cl math/nextafter.cl diff --git a/libclc/amdgpu/lib/math/half_log.cl b/libclc/amdgpu/lib/math/half_log.cl new file mode 100644 index 000000000000..a6e50f57b6f0 --- /dev/null +++ b/libclc/amdgpu/lib/math/half_log.cl @@ -0,0 +1,6 @@ +#include <clc/clc.h> + +#define __CLC_FUNC log +#define __FLOAT_ONLY +#define __CLC_BODY <half_native_unary.inc> +#include <clc/math/gentype.inc> |