summaryrefslogtreecommitdiffstats
path: root/libclc/generic/lib/math
diff options
context:
space:
mode:
authorJan Vesely <jan.vesely@rutgers.edu>2018-01-18 21:11:56 +0000
committerJan Vesely <jan.vesely@rutgers.edu>2018-01-18 21:11:56 +0000
commita1aba44ffa742e02b0b0cc555d8359d456402fc2 (patch)
tree2101a6d4bd2dc1b6770f6c13c4e9f88d4f9fd0bc /libclc/generic/lib/math
parentb3b72af4b9e9144df9caadc4a7594962de020e30 (diff)
downloadbcm5719-llvm-a1aba44ffa742e02b0b0cc555d8359d456402fc2.tar.gz
bcm5719-llvm-a1aba44ffa742e02b0b0cc555d8359d456402fc2.zip
half_log2: Implement using log2
Passes CTS on carrizo v2: Use full precision implementation Reviewer: Jeroen Ketema <j.ketema@xs4all.nl> Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu> llvm-svn: 322895
Diffstat (limited to 'libclc/generic/lib/math')
-rw-r--r--libclc/generic/lib/math/half_log2.cl6
1 files changed, 6 insertions, 0 deletions
diff --git a/libclc/generic/lib/math/half_log2.cl b/libclc/generic/lib/math/half_log2.cl
new file mode 100644
index 00000000000..d98a61158fb
--- /dev/null
+++ b/libclc/generic/lib/math/half_log2.cl
@@ -0,0 +1,6 @@
+#include <clc/clc.h>
+
+#define __CLC_FUNC log2
+#define __CLC_BODY <half_unary.inc>
+#define __FLOAT_ONLY
+#include <clc/math/gentype.inc>
OpenPOWER on IntegriCloud