amdgpu/half_sqrt: Switch implementation to native_sqrt
Reviewer: Tom Stellard <[email protected]>
Signed-off-by: Jan Vesely <[email protected]>
llvm-svn: 325054
diff --git a/libclc/amdgpu/lib/SOURCES b/libclc/amdgpu/lib/SOURCES
index 461c773..b55337f 100644
--- a/libclc/amdgpu/lib/SOURCES
+++ b/libclc/amdgpu/lib/SOURCES
@@ -2,5 +2,6 @@
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 0000000..b78ef13
--- /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>