diff options
author | Joe Ramsay <Joe.Ramsay@arm.com> | 2023-01-19 13:19:38 +0000 |
---|---|---|
committer | Joe Ramsay <joe.ramsay@arm.com> | 2023-01-19 13:19:43 +0000 |
commit | 76c2badba375dd8f785e92079dbd4290038a2750 (patch) | |
tree | 64325bba339d4ac084d0b3b46a3e85e99b1400ad /pl/math/vn_tan_3u5.c | |
parent | cd28f3c4253257027f9834eb7b17db047346a267 (diff) | |
download | arm-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.c | 12 |
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 |