Implement accurate log2 function
authorTom Stellard <thomas.stellard@amd.com>
Fri, 24 Jul 2015 18:07:12 +0000 (18:07 +0000)
committerTom Stellard <thomas.stellard@amd.com>
Fri, 24 Jul 2015 18:07:12 +0000 (18:07 +0000)
commit44b6117dfde30d6cc292fabca8ecb0cef4657f7a
tree27a2bea34600366674a390f8140de338020bacbf
parentf01ffa9ddc0b954a04c11efe82bea6edd19e228d
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
libclc/generic/include/clc/math/log.h
libclc/generic/include/clc/math/log2.h
libclc/generic/include/clc/math/log2.inc [new file with mode: 0644]
libclc/generic/lib/SOURCES
libclc/generic/lib/math/log2.cl [new file with mode: 0644]
libclc/generic/lib/math/log_base.h [new file with mode: 0644]
libclc/generic/lib/math/tables.cl
libclc/generic/lib/math/tables.h