aboutsummaryrefslogtreecommitdiff
path: root/math/s_cos.c
diff options
context:
space:
mode:
authorSzabolcs Nagy <szabolcs.nagy@arm.com>2019-08-09 16:56:54 +0100
committerSzabolcs Nagy <szabolcs.nagy@arm.com>2019-10-14 11:58:53 +0100
commita2f717ef3616b28b96f0f1aebea97086815597e1 (patch)
tree06b2db54d6a6bc5a963a5719dad5314528d6d6c2 /math/s_cos.c
parentba75d0a0d8235119eef1305f0d9a2142fa4b11e0 (diff)
downloadarm-optimized-routines-a2f717ef3616b28b96f0f1aebea97086815597e1.tar.gz
Add vector sin and cos
Worst-case error is 3.5 ulp, the polynomial was generated by sollya. For large (>2^23) and special inputs the code falls back to scalar sin and cos.
Diffstat (limited to 'math/s_cos.c')
-rw-r--r--math/s_cos.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/math/s_cos.c b/math/s_cos.c
new file mode 100644
index 0000000..53a95b0
--- /dev/null
+++ b/math/s_cos.c
@@ -0,0 +1,6 @@
+/*
+ * Copyright (c) 2019, Arm Limited.
+ * SPDX-License-Identifier: MIT
+ */
+#define SCALAR 1
+#include "v_cos.c"