summaryrefslogtreecommitdiffstats
path: root/libclc/generic/lib/math/tables.h
diff options
context:
space:
mode:
authorTom Stellard <thomas.stellard@amd.com>2015-07-24 18:07:12 +0000
committerTom Stellard <thomas.stellard@amd.com>2015-07-24 18:07:12 +0000
commit44b6117dfde30d6cc292fabca8ecb0cef4657f7a (patch)
tree27a2bea34600366674a390f8140de338020bacbf /libclc/generic/lib/math/tables.h
parentf01ffa9ddc0b954a04c11efe82bea6edd19e228d (diff)
downloadbcm5719-llvm-44b6117dfde30d6cc292fabca8ecb0cef4657f7a.tar.gz
bcm5719-llvm-44b6117dfde30d6cc292fabca8ecb0cef4657f7a.zip
Implement accurate log2 function
Use the implementation was ported from the AMD builtin library rather than LLVM Intrinsics. This has been tested with piglit, OpenCV, and the ocl conformance tests. llvm-svn: 243131
Diffstat (limited to 'libclc/generic/lib/math/tables.h')
-rw-r--r--libclc/generic/lib/math/tables.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/libclc/generic/lib/math/tables.h b/libclc/generic/lib/math/tables.h
index 55ff8537faf..1348fe162c1 100644
--- a/libclc/generic/lib/math/tables.h
+++ b/libclc/generic/lib/math/tables.h
@@ -40,6 +40,7 @@
TABLE_FUNCTION_DECL(float2, loge_tbl);
TABLE_FUNCTION_DECL(float, log_inv_tbl);
+TABLE_FUNCTION_DECL(float2, log2_tbl);
TABLE_FUNCTION_DECL(uint4, pibits_tbl);
#ifdef cl_khr_fp64
OpenPOWER on IntegriCloud