[Libclc-dev] [PATCH 1/2] Implement accurate log2 function

Matt Arsenault arsenm2 at gmail.com
Fri Jul 10 10:55:30 PDT 2015


> On Jul 10, 2015, at 10:39 AM, Tom Stellard <thomas.stellard at amd.com> wrote:
> 
> 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.
> ---
> generic/include/clc/math/log.h    |   2 +-
> generic/include/clc/math/log2.h   |  28 +++-
> generic/include/clc/math/log2.inc |  23 +++
> generic/lib/SOURCES               |   1 +
> generic/lib/math/log2.cl          |  37 +++++
> generic/lib/math/log_base.h       | 299 ++++++++++++++++++++++++++++++++++++++
> generic/lib/math/tables.cl        | 132 +++++++++++++++++
> generic/lib/math/tables.h         |   1 +
> 8 files changed, 517 insertions(+), 6 deletions(-)
> create mode 100644 generic/include/clc/math/log2.inc
> create mode 100644 generic/lib/math/log2.cl
> create mode 100644 generic/lib/math/log_base.h

This should also update native_log2 to use the LLVM intrinsic
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/libclc-dev/attachments/20150710/2185c6c9/attachment.html>


More information about the Libclc-dev mailing list