forked from OSchip/llvm-project
half_sin: Implement using sin
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: 322897
This commit is contained in:
parent
398108b91e
commit
bf38fae8de
|
@ -79,6 +79,7 @@
|
|||
#include <clc/math/half_log2.h>
|
||||
#include <clc/math/half_recip.h>
|
||||
#include <clc/math/half_rsqrt.h>
|
||||
#include <clc/math/half_sin.h>
|
||||
#include <clc/math/half_sqrt.h>
|
||||
#include <clc/math/hypot.h>
|
||||
#include <clc/math/ilogb.h>
|
||||
|
|
|
@ -0,0 +1,9 @@
|
|||
#define __CLC_BODY <clc/math/unary_decl.inc>
|
||||
#define __CLC_FUNCTION half_sin
|
||||
#define __FLOAT_ONLY
|
||||
|
||||
#include <clc/math/gentype.inc>
|
||||
|
||||
#undef __FLOAT_ONLY
|
||||
#undef __CLC_BODY
|
||||
#undef __CLC_FUNCTION
|
|
@ -113,6 +113,7 @@ math/half_log10.cl
|
|||
math/half_log2.cl
|
||||
math/half_recip.cl
|
||||
math/half_rsqrt.cl
|
||||
math/half_sin.cl
|
||||
math/half_sqrt.cl
|
||||
math/hypot.cl
|
||||
math/ilogb.cl
|
||||
|
|
|
@ -0,0 +1,6 @@
|
|||
#include <clc/clc.h>
|
||||
|
||||
#define __CLC_FUNC sin
|
||||
#define __CLC_BODY <half_unary.inc>
|
||||
#define __FLOAT_ONLY
|
||||
#include <clc/math/gentype.inc>
|
Loading…
Reference in New Issue