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

Tom Stellard tom at stellard.net
Fri Jul 10 15:42:07 PDT 2015


On Fri, Jul 10, 2015 at 10:55:30AM -0700, Matt Arsenault wrote:
> 
> > 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

I just sent out a separate patch that does this.

-Tom
> _______________________________________________
> Libclc-dev mailing list
> Libclc-dev at pcc.me.uk
> http://www.pcc.me.uk/cgi-bin/mailman/listinfo/libclc-dev





More information about the Libclc-dev mailing list