aboutsummaryrefslogtreecommitdiff
path: root/pl/math/vn_tan_3u5.c
diff options
context:
space:
mode:
authorJoe Ramsay <Joe.Ramsay@arm.com>2023-01-19 13:19:38 +0000
committerJoe Ramsay <joe.ramsay@arm.com>2023-01-19 13:19:43 +0000
commit76c2badba375dd8f785e92079dbd4290038a2750 (patch)
tree64325bba339d4ac084d0b3b46a3e85e99b1400ad /pl/math/vn_tan_3u5.c
parentcd28f3c4253257027f9834eb7b17db047346a267 (diff)
downloadarm-optimized-routines-76c2badba375dd8f785e92079dbd4290038a2750.tar.gz
pl/math: Add vector/Neon tan
New routine uses a similar technique to the single-precision Neon routine, but with an extra reduction to pi/8 using the double-angle formula. It is accurate to 3.5 ULP.
Diffstat (limited to 'pl/math/vn_tan_3u5.c')
-rw-r--r--pl/math/vn_tan_3u5.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/pl/math/vn_tan_3u5.c b/pl/math/vn_tan_3u5.c
new file mode 100644
index 0000000..a4efb06
--- /dev/null
+++ b/pl/math/vn_tan_3u5.c
@@ -0,0 +1,12 @@
+/*
+ * AdvSIMD vector PCS variant of __v_tan.
+ *
+ * Copyright (c) 2023, Arm Limited.
+ * SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception
+ */
+#include "include/mathlib.h"
+#ifdef __vpcs
+#define VPCS 1
+#define VPCS_ALIAS PL_ALIAS (__vn_tan, _ZGVnN2v_tan)
+#include "v_tan_3u5.c"
+#endif