half_exp: Implement using exp
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: 322890
This commit is contained in:
parent
b5d556061d
commit
caa9000b1c
|
@ -71,6 +71,7 @@
|
|||
#include <clc/math/fract.h>
|
||||
#include <clc/math/frexp.h>
|
||||
#include <clc/math/half_cos.h>
|
||||
#include <clc/math/half_exp.h>
|
||||
#include <clc/math/half_rsqrt.h>
|
||||
#include <clc/math/half_sqrt.h>
|
||||
#include <clc/math/hypot.h>
|
||||
|
|
|
@ -0,0 +1,9 @@
|
|||
#define __CLC_BODY <clc/math/unary_decl.inc>
|
||||
#define __CLC_FUNCTION half_exp
|
||||
#define __FLOAT_ONLY
|
||||
|
||||
#include <clc/math/gentype.inc>
|
||||
|
||||
#undef __FLOAT_ONLY
|
||||
#undef __CLC_BODY
|
||||
#undef __CLC_FUNCTION
|
|
@ -105,6 +105,7 @@ math/fmod.cl
|
|||
math/fract.cl
|
||||
math/frexp.cl
|
||||
math/half_cos.cl
|
||||
math/half_exp.cl
|
||||
math/half_rsqrt.cl
|
||||
math/half_sqrt.cl
|
||||
math/hypot.cl
|
||||
|
|
|
@ -0,0 +1,6 @@
|
|||
#include <clc/clc.h>
|
||||
|
||||
#define __CLC_FUNC exp
|
||||
#define __CLC_BODY <half_unary.inc>
|
||||
#define __FLOAT_ONLY
|
||||
#include <clc/math/gentype.inc>
|
Loading…
Reference in New Issue