diff options
author | Szabolcs Nagy <szabolcs.nagy@arm.com> | 2019-08-09 16:56:54 +0100 |
---|---|---|
committer | Szabolcs Nagy <szabolcs.nagy@arm.com> | 2019-10-14 11:58:53 +0100 |
commit | a2f717ef3616b28b96f0f1aebea97086815597e1 (patch) | |
tree | 06b2db54d6a6bc5a963a5719dad5314528d6d6c2 /math/s_cos.c | |
parent | ba75d0a0d8235119eef1305f0d9a2142fa4b11e0 (diff) | |
download | arm-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.c | 6 |
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" |