summaryrefslogtreecommitdiffstats
path: root/libclc/generic/lib/math/sincos_helpers.h
diff options
context:
space:
mode:
authorJan Vesely <jan.vesely@rutgers.edu>2018-01-19 18:57:19 +0000
committerJan Vesely <jan.vesely@rutgers.edu>2018-01-19 18:57:19 +0000
commit03937bdec33db12afe8ce7ee862fade2f2ed4f04 (patch)
treee914c5c54057f5af334114805cf1f08ea00841d2 /libclc/generic/lib/math/sincos_helpers.h
parent30e1bbc10672808320876797afc45a0d8f2767bf (diff)
downloadbcm5719-llvm-03937bdec33db12afe8ce7ee862fade2f2ed4f04.tar.gz
bcm5719-llvm-03937bdec33db12afe8ce7ee862fade2f2ed4f04.zip
tan: Port from amd_builtins
v2: fixup constant precision Passes piglit on turks and carrizo. Passes CTS on carrizo Fixes half_tan to pass CTS on carrizo Acked-By: Aaron Watry <awatry@gmail.com> Tested-By: Aaron Watry <awatry@gmail.com> Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu> llvm-svn: 322979
Diffstat (limited to 'libclc/generic/lib/math/sincos_helpers.h')
-rw-r--r--libclc/generic/lib/math/sincos_helpers.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/libclc/generic/lib/math/sincos_helpers.h b/libclc/generic/lib/math/sincos_helpers.h
index 2565d44eb02..e307abc48b2 100644
--- a/libclc/generic/lib/math/sincos_helpers.h
+++ b/libclc/generic/lib/math/sincos_helpers.h
@@ -20,8 +20,11 @@
* THE SOFTWARE.
*/
+#include "clc/clcfunc.h"
+
_CLC_DECL float __clc_sinf_piby4(float x, float y);
_CLC_DECL float __clc_cosf_piby4(float x, float y);
+_CLC_DECL float __clc_tanf_piby4(float x, int y);
_CLC_DECL int __clc_argReductionS(float *r, float *rr, float x);
#ifdef cl_khr_fp64
OpenPOWER on IntegriCloud