diff options
author | Jan Vesely <jan.vesely@rutgers.edu> | 2018-02-13 22:09:33 +0000 |
---|---|---|
committer | Jan Vesely <jan.vesely@rutgers.edu> | 2018-02-13 22:09:33 +0000 |
commit | bca92445ba20643428f36a67f91f136df82b4546 (patch) | |
tree | 8eb98225ec6b2f747f62469a182505b7a898b91d /libclc | |
parent | aad28681c2198833d6ac2dcbb8ba1de5cffd8508 (diff) | |
download | bcm5719-llvm-bca92445ba20643428f36a67f91f136df82b4546.tar.gz bcm5719-llvm-bca92445ba20643428f36a67f91f136df82b4546.zip |
amdgpu/half_sqrt: Switch implementation to native_sqrt
Reviewer: Tom Stellard <tstellar@redhat.com>
Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu>
llvm-svn: 325054
Diffstat (limited to 'libclc')
-rw-r--r-- | libclc/amdgpu/lib/SOURCES | 1 | ||||
-rw-r--r-- | libclc/amdgpu/lib/math/half_sqrt.cl | 6 |
2 files changed, 7 insertions, 0 deletions
diff --git a/libclc/amdgpu/lib/SOURCES b/libclc/amdgpu/lib/SOURCES index 461c7734beb..b55337f5519 100644 --- a/libclc/amdgpu/lib/SOURCES +++ b/libclc/amdgpu/lib/SOURCES @@ -2,5 +2,6 @@ math/native_exp.cl math/native_log.cl math/native_log10.cl math/half_rsqrt.cl +math/half_sqrt.cl math/nextafter.cl math/sqrt.cl diff --git a/libclc/amdgpu/lib/math/half_sqrt.cl b/libclc/amdgpu/lib/math/half_sqrt.cl new file mode 100644 index 00000000000..b78ef136603 --- /dev/null +++ b/libclc/amdgpu/lib/math/half_sqrt.cl @@ -0,0 +1,6 @@ +#include <clc/clc.h> + +#define __CLC_FUNC sqrt +#define __FLOAT_ONLY +#define __CLC_BODY <half_native_unary.inc> +#include <clc/math/gentype.inc> |