summaryrefslogtreecommitdiffstats
path: root/libclc/amdgpu/lib/math
diff options
context:
space:
mode:
authorJan Vesely <jan.vesely@rutgers.edu>2018-02-13 22:09:46 +0000
committerJan Vesely <jan.vesely@rutgers.edu>2018-02-13 22:09:46 +0000
commitb42495468250e7887b3273100299190a70fab9ce (patch)
treeb3c2cdeba483e2224d90834fbdb7d9b1972192ad /libclc/amdgpu/lib/math
parented28c4458a873d496c66ed87a93e3e8d0da21e20 (diff)
downloadbcm5719-llvm-b42495468250e7887b3273100299190a70fab9ce.tar.gz
bcm5719-llvm-b42495468250e7887b3273100299190a70fab9ce.zip
amdgpu/half_recip: Switch implementation to native_recip
Reviewer: Tom Stellard <tstellar@redhat.com> Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu> llvm-svn: 325061
Diffstat (limited to 'libclc/amdgpu/lib/math')
-rw-r--r--libclc/amdgpu/lib/math/half_recip.cl6
1 files changed, 6 insertions, 0 deletions
diff --git a/libclc/amdgpu/lib/math/half_recip.cl b/libclc/amdgpu/lib/math/half_recip.cl
new file mode 100644
index 00000000000..f1e0e4cda03
--- /dev/null
+++ b/libclc/amdgpu/lib/math/half_recip.cl
@@ -0,0 +1,6 @@
+#include <clc/clc.h>
+
+#define __CLC_FUNC recip
+#define __FLOAT_ONLY
+#define __CLC_BODY <half_native_unary.inc>
+#include <clc/math/gentype.inc>
OpenPOWER on IntegriCloud