freebsd-dev/lib/msun/ld128
Steve Kargl 4f889260c3 sinpi[fl] etc: Fix the ld128 implementations
Mark Murray graciously provided access to an aarch64 system
to test the ld128 implementations.  This patch address
* Misuses of copysignl() in sinpil() and tanpil().
* Redo the splitting of argument 'x' into an integer part and
  remainder.  The remainder must satify 0 <= r < 1.
* Update the reduction of the integer part to something that can
  easily be seen as even or odd, e.g., sin(pi*x) = (-1)^n*sin(pi*r)
  with n <= 2^112 and we an reduce n by subtracting integer powers
  of 2.
* In s_cospil.c, fix typos where 'x' is used where 'ax', the
  remainder, is required.
* In tanpil(), fix the use of an uninitialized variable, ax = fabsl(ax),
  ax should be x in fabsl().

One item of note, in the limited tested on aarch64, the max ULP
for sinpil() and cospil() were less than 1.1 ULP, which is higher
that the desired max ULP less than 1.  This was traced to the
kernel for cosl() in the fundamental interval [0,pi/4].
The coefficients in the minmax polynomial likely need refinement.

PR:	218514
MFC after:	1 week
2021-11-01 04:38:19 +02:00
..
e_lgammal_r.c
e_powl.c msun: Fix some old typos. 2018-12-31 15:43:06 +00:00
e_rem_pio2l.h Centralize the complications for special efficient rounding to integers. 2018-07-20 12:42:24 +00:00
invtrig.c
invtrig.h
k_cosl.c
k_cospil.h [LIBM] implementations of sinpi[fl], cospi[fl], and tanpi[fl] 2021-10-26 02:50:20 +03:00
k_expl.h Apply fix for ld80 and ld128 submitted by Steve Kargl: 2020-09-20 05:28:31 +00:00
k_sinl.c
k_sinpil.h [LIBM] implementations of sinpi[fl], cospi[fl], and tanpi[fl] 2021-10-26 02:50:20 +03:00
k_tanl.c
s_cospil.c sinpi[fl] etc: Fix the ld128 implementations 2021-11-01 04:38:19 +02:00
s_erfl.c
s_exp2l.c
s_expl.c Remove sparc64 specific parts of libm and fix comments 2020-02-26 18:55:03 +00:00
s_logl.c lib/msun: Avoid FE_INEXACT for x86 log2l/log10l 2021-03-08 09:39:32 +00:00
s_nanl.c
s_sinpil.c sinpi[fl] etc: Fix the ld128 implementations 2021-11-01 04:38:19 +02:00
s_tanpil.c sinpi[fl] etc: Fix the ld128 implementations 2021-11-01 04:38:19 +02:00