half_log10: Implement using log10

Passes CTS on carrizo
v2: Use full precision implementation

Reviewer: Jeroen Ketema <j.ketema@xs4all.nl>
Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu>
llvm-svn: 322894
This commit is contained in:
Jan Vesely 2018-01-18 21:11:53 +00:00
parent 6852023802
commit b3b72af4b9
4 changed files with 17 additions and 0 deletions

View File

@ -75,6 +75,7 @@
#include <clc/math/half_exp10.h>
#include <clc/math/half_exp2.h>
#include <clc/math/half_log.h>
#include <clc/math/half_log10.h>
#include <clc/math/half_rsqrt.h>
#include <clc/math/half_sqrt.h>
#include <clc/math/hypot.h>

View File

@ -0,0 +1,9 @@
#define __CLC_BODY <clc/math/unary_decl.inc>
#define __CLC_FUNCTION half_log10
#define __FLOAT_ONLY
#include <clc/math/gentype.inc>
#undef __FLOAT_ONLY
#undef __CLC_BODY
#undef __CLC_FUNCTION

View File

@ -109,6 +109,7 @@ math/half_exp.cl
math/half_exp10.cl
math/half_exp2.cl
math/half_log.cl
math/half_log10.cl
math/half_rsqrt.cl
math/half_sqrt.cl
math/hypot.cl

View File

@ -0,0 +1,6 @@
#include <clc/clc.h>
#define __CLC_FUNC log10
#define __CLC_BODY <half_unary.inc>
#define __FLOAT_ONLY
#include <clc/math/gentype.inc>