diff options
author | Tom Stellard <thomas.stellard@amd.com> | 2015-07-24 18:07:12 +0000 |
---|---|---|
committer | Tom Stellard <thomas.stellard@amd.com> | 2015-07-24 18:07:12 +0000 |
commit | 44b6117dfde30d6cc292fabca8ecb0cef4657f7a (patch) | |
tree | 27a2bea34600366674a390f8140de338020bacbf /libclc/generic/lib/math/tables.h | |
parent | f01ffa9ddc0b954a04c11efe82bea6edd19e228d (diff) | |
download | bcm5719-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.h | 1 |
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 |