summaryrefslogtreecommitdiffstats
path: root/libclc/generic/lib/math/tables.h
diff options
context:
space:
mode:
authorTom Stellard <thomas.stellard@amd.com>2016-07-22 23:45:15 +0000
committerTom Stellard <thomas.stellard@amd.com>2016-07-22 23:45:15 +0000
commitd835b3f1af15e20bd35c460396e4af95a614889c (patch)
tree286e28fdead228e426f2f60943d15419b59571fa /libclc/generic/lib/math/tables.h
parent9cb070f96a8a9af5f513ffba0a8eed362623f216 (diff)
downloadbcm5719-llvm-d835b3f1af15e20bd35c460396e4af95a614889c.tar.gz
bcm5719-llvm-d835b3f1af15e20bd35c460396e4af95a614889c.zip
Implement cbrt builtin
This implementation was ported from the AMD builtin library and has been tested with piglit, OpenCV, and the ocl conformance tests. llvm-svn: 276497
Diffstat (limited to 'libclc/generic/lib/math/tables.h')
-rw-r--r--libclc/generic/lib/math/tables.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/libclc/generic/lib/math/tables.h b/libclc/generic/lib/math/tables.h
index d42c9f27f76..c0b0ab1462f 100644
--- a/libclc/generic/lib/math/tables.h
+++ b/libclc/generic/lib/math/tables.h
@@ -43,6 +43,7 @@ TABLE_FUNCTION_DECL(float, log_inv_tbl);
TABLE_FUNCTION_DECL(float2, log2_tbl);
TABLE_FUNCTION_DECL(uint4, pibits_tbl);
TABLE_FUNCTION_DECL(float2, sinhcosh_tbl);
+TABLE_FUNCTION_DECL(float2, cbrt_tbl);
#ifdef cl_khr_fp64
@@ -53,5 +54,8 @@ TABLE_FUNCTION_DECL(double2, atan_jby256_tbl);
TABLE_FUNCTION_DECL(double2, two_to_jby64_ep_tbl);
TABLE_FUNCTION_DECL(double2, sinh_tbl);
TABLE_FUNCTION_DECL(double2, cosh_tbl);
+TABLE_FUNCTION_DECL(double, cbrt_inv_tbl);
+TABLE_FUNCTION_DECL(double2, cbrt_dbl_tbl);
+TABLE_FUNCTION_DECL(double2, cbrt_rem_tbl);
#endif // cl_khr_fp64
OpenPOWER on IntegriCloud