2007-04-29 14:05:22 +00:00
|
|
|
/*
|
|
|
|
* $FreeBSD$
|
|
|
|
*/
|
2007-12-15 08:39:03 +00:00
|
|
|
|
|
|
|
/* 7.0-CURRENT */
|
2006-03-27 23:59:45 +00:00
|
|
|
FBSD_1.0 {
|
|
|
|
__fe_dfl_env;
|
|
|
|
tgamma;
|
|
|
|
acos;
|
|
|
|
acosf;
|
|
|
|
acosh;
|
|
|
|
acoshf;
|
|
|
|
asin;
|
|
|
|
asinf;
|
|
|
|
atan2;
|
|
|
|
atan2f;
|
|
|
|
atanh;
|
|
|
|
atanhf;
|
|
|
|
cosh;
|
|
|
|
coshf;
|
|
|
|
exp;
|
|
|
|
expf;
|
|
|
|
fmod;
|
|
|
|
fmodf;
|
|
|
|
gamma;
|
|
|
|
gamma_r;
|
|
|
|
gammaf;
|
|
|
|
gammaf_r;
|
|
|
|
hypot;
|
|
|
|
hypotf;
|
|
|
|
j0;
|
|
|
|
y0;
|
|
|
|
j0f;
|
|
|
|
y0f;
|
|
|
|
j1;
|
|
|
|
y1;
|
|
|
|
j1f;
|
|
|
|
y1f;
|
|
|
|
jn;
|
|
|
|
yn;
|
|
|
|
jnf;
|
|
|
|
ynf;
|
|
|
|
lgamma;
|
|
|
|
lgamma_r;
|
|
|
|
lgammaf;
|
|
|
|
lgammaf_r;
|
|
|
|
log;
|
|
|
|
log10;
|
|
|
|
log10f;
|
|
|
|
logf;
|
|
|
|
pow;
|
|
|
|
powf;
|
|
|
|
remainder;
|
|
|
|
remainderf;
|
|
|
|
scalb;
|
|
|
|
scalbf;
|
|
|
|
sinh;
|
|
|
|
sinhf;
|
|
|
|
sqrt;
|
|
|
|
sqrtf;
|
|
|
|
asinh;
|
|
|
|
asinhf;
|
|
|
|
atan;
|
|
|
|
atanf;
|
|
|
|
cbrt;
|
|
|
|
cbrtf;
|
|
|
|
ceil;
|
|
|
|
ceilf;
|
|
|
|
ceill;
|
|
|
|
cimag;
|
|
|
|
cimagf;
|
|
|
|
cimagl;
|
|
|
|
conj;
|
|
|
|
conjf;
|
|
|
|
conjl;
|
|
|
|
copysign;
|
|
|
|
copysignf;
|
|
|
|
copysignl;
|
|
|
|
cos;
|
|
|
|
cosf;
|
|
|
|
creal;
|
|
|
|
crealf;
|
|
|
|
creall;
|
|
|
|
erf;
|
|
|
|
erfc;
|
|
|
|
erff;
|
|
|
|
erfcf;
|
|
|
|
exp2;
|
|
|
|
exp2f;
|
|
|
|
expm1;
|
|
|
|
expm1f;
|
|
|
|
fabs;
|
|
|
|
fabsf;
|
|
|
|
fabsl;
|
|
|
|
fdim;
|
|
|
|
fdimf;
|
|
|
|
fdiml;
|
|
|
|
finite;
|
|
|
|
finitef;
|
|
|
|
floor;
|
|
|
|
floorf;
|
|
|
|
floorl;
|
|
|
|
fma;
|
|
|
|
fmaf;
|
|
|
|
fmal;
|
|
|
|
fmax;
|
|
|
|
fmaxf;
|
|
|
|
fmaxl;
|
|
|
|
fmin;
|
|
|
|
fminf;
|
|
|
|
fminl;
|
|
|
|
frexp;
|
|
|
|
frexpf;
|
|
|
|
frexpl;
|
|
|
|
ilogb;
|
|
|
|
ilogbf;
|
|
|
|
ilogbl;
|
|
|
|
__isfinite;
|
|
|
|
__isfinitef;
|
|
|
|
__isfinitel;
|
|
|
|
isnanf;
|
|
|
|
__isnanl;
|
|
|
|
__isnormal;
|
|
|
|
__isnormalf;
|
|
|
|
__isnormall;
|
|
|
|
llrint;
|
|
|
|
llrintf;
|
|
|
|
llround;
|
|
|
|
llroundf;
|
|
|
|
llroundl;
|
|
|
|
log1p;
|
|
|
|
log1pf;
|
|
|
|
logb;
|
|
|
|
logbf;
|
|
|
|
lrint;
|
|
|
|
lrintf;
|
|
|
|
lround;
|
|
|
|
lroundf;
|
|
|
|
lroundl;
|
|
|
|
modff;
|
2007-01-07 07:54:21 +00:00
|
|
|
modfl;
|
2006-03-27 23:59:45 +00:00
|
|
|
nearbyint;
|
|
|
|
nearbyintf;
|
|
|
|
nextafter;
|
|
|
|
nexttoward;
|
|
|
|
nexttowardl;
|
|
|
|
nextafterl;
|
|
|
|
nextafterf;
|
|
|
|
nexttowardf;
|
|
|
|
remquo;
|
|
|
|
remquof;
|
|
|
|
rint;
|
|
|
|
rintf;
|
|
|
|
round;
|
|
|
|
roundf;
|
|
|
|
roundl;
|
|
|
|
scalbln;
|
|
|
|
scalblnf;
|
|
|
|
scalblnl;
|
|
|
|
scalbn;
|
|
|
|
scalbnl;
|
|
|
|
scalbnf;
|
|
|
|
ldexpf;
|
|
|
|
ldexpl;
|
|
|
|
__signbit;
|
|
|
|
__signbitf;
|
|
|
|
__signbitl;
|
|
|
|
signgam;
|
|
|
|
significand;
|
|
|
|
significandf;
|
|
|
|
sin;
|
|
|
|
sinf;
|
|
|
|
tan;
|
|
|
|
tanf;
|
|
|
|
tanh;
|
|
|
|
tanhf;
|
|
|
|
trunc;
|
|
|
|
truncf;
|
|
|
|
truncl;
|
|
|
|
cabs;
|
|
|
|
cabsf;
|
|
|
|
drem;
|
|
|
|
dremf;
|
|
|
|
};
|
2007-12-15 08:39:03 +00:00
|
|
|
|
|
|
|
/* First added in 8.0-CURRENT */
|
|
|
|
FBSD_1.1 {
|
|
|
|
carg;
|
|
|
|
cargf;
|
|
|
|
csqrt;
|
|
|
|
csqrtf;
|
2007-12-17 03:53:38 +00:00
|
|
|
logbl;
|
2007-12-16 21:19:28 +00:00
|
|
|
nan;
|
|
|
|
nanf;
|
|
|
|
nanl;
|
2008-01-14 02:12:07 +00:00
|
|
|
llrintl;
|
|
|
|
lrintl;
|
|
|
|
nearbyintl;
|
|
|
|
rintl;
|
2008-01-18 21:43:10 +00:00
|
|
|
exp2l;
|
2008-02-17 07:33:51 +00:00
|
|
|
sinl;
|
|
|
|
cosl;
|
|
|
|
tanl;
|
2008-02-18 17:27:11 +00:00
|
|
|
tgammaf;
|
2008-03-02 01:48:17 +00:00
|
|
|
sqrtl;
|
2008-03-30 20:03:46 +00:00
|
|
|
hypotl;
|
|
|
|
cabsl;
|
2008-03-30 20:07:15 +00:00
|
|
|
csqrtl;
|
2008-03-30 20:48:02 +00:00
|
|
|
remquol;
|
|
|
|
remainderl;
|
2008-06-19 22:39:53 +00:00
|
|
|
fmodl;
|
2008-07-31 22:41:26 +00:00
|
|
|
acosl;
|
|
|
|
asinl;
|
|
|
|
atan2l;
|
|
|
|
atanl;
|
|
|
|
cargl;
|
2008-08-07 15:07:48 +00:00
|
|
|
cproj;
|
|
|
|
cprojf;
|
|
|
|
cprojl;
|
2007-12-15 08:39:03 +00:00
|
|
|
};
|
2010-06-12 17:32:05 +00:00
|
|
|
|
|
|
|
/* First added in 9.0-CURRENT */
|
|
|
|
FBSD_1.2 {
|
|
|
|
__isnanf;
|
2011-03-12 19:37:35 +00:00
|
|
|
cbrtl;
|
2011-03-07 03:09:24 +00:00
|
|
|
cexp;
|
|
|
|
cexpf;
|
2010-12-05 22:11:22 +00:00
|
|
|
log2;
|
|
|
|
log2f;
|
2010-06-12 17:32:05 +00:00
|
|
|
};
|
2011-10-10 15:43:09 +00:00
|
|
|
|
|
|
|
/* First added in 10.0-CURRENT */
|
|
|
|
FBSD_1.3 {
|
|
|
|
feclearexcept;
|
|
|
|
fegetexceptflag;
|
|
|
|
fetestexcept;
|
|
|
|
fegetround;
|
|
|
|
fesetround;
|
|
|
|
fesetenv;
|
2013-06-10 06:04:58 +00:00
|
|
|
acoshl;
|
|
|
|
asinhl;
|
|
|
|
atanhl;
|
2013-05-30 04:49:26 +00:00
|
|
|
cacos;
|
|
|
|
cacosf;
|
|
|
|
cacosh;
|
|
|
|
cacoshf;
|
|
|
|
casin;
|
|
|
|
casinf;
|
|
|
|
casinh;
|
|
|
|
casinhf;
|
|
|
|
catan;
|
|
|
|
catanf;
|
|
|
|
catanh;
|
|
|
|
catanhf;
|
2011-10-17 05:41:03 +00:00
|
|
|
csin;
|
|
|
|
csinf;
|
|
|
|
csinh;
|
|
|
|
csinhf;
|
|
|
|
ccos;
|
|
|
|
ccosf;
|
|
|
|
ccosh;
|
|
|
|
ccoshf;
|
2013-12-30 01:06:21 +00:00
|
|
|
coshl;
|
2011-10-17 05:41:03 +00:00
|
|
|
ctan;
|
|
|
|
ctanf;
|
|
|
|
ctanh;
|
|
|
|
ctanhf;
|
2014-07-13 17:05:03 +00:00
|
|
|
erfcl;
|
|
|
|
erfl;
|
2012-07-23 19:13:55 +00:00
|
|
|
expl;
|
2013-06-03 19:51:32 +00:00
|
|
|
expm1l;
|
2014-09-15 23:21:57 +00:00
|
|
|
lgammal;
|
2013-06-03 09:14:31 +00:00
|
|
|
log10l;
|
|
|
|
log1pl;
|
|
|
|
log2l;
|
|
|
|
logl;
|
2018-07-15 00:23:10 +00:00
|
|
|
powl;
|
2013-12-30 01:06:21 +00:00
|
|
|
sinhl;
|
|
|
|
tanhl;
|
2013-09-12 20:51:48 +00:00
|
|
|
/* Implemented as weak aliases for imprecise versions */
|
2013-09-06 07:58:23 +00:00
|
|
|
tgammal;
|
2011-10-10 15:43:09 +00:00
|
|
|
};
|
2014-09-15 23:21:57 +00:00
|
|
|
|
|
|
|
/* First added in 11.0-CURRENT */
|
|
|
|
FBSD_1.4 {
|
|
|
|
lgammal_r;
|
|
|
|
};
|
2017-02-15 07:59:54 +00:00
|
|
|
|
|
|
|
/* First added in 12.0-CURRENT */
|
|
|
|
FBSD_1.5 {
|
|
|
|
cacoshl;
|
|
|
|
cacosl;
|
|
|
|
casinhl;
|
|
|
|
casinl;
|
|
|
|
catanl;
|
|
|
|
catanhl;
|
2018-05-13 09:54:34 +00:00
|
|
|
clog;
|
|
|
|
clogf;
|
|
|
|
clogl;
|
2018-07-15 00:23:10 +00:00
|
|
|
cpow;
|
|
|
|
cpowf;
|
|
|
|
cpowl;
|
2017-05-28 06:13:38 +00:00
|
|
|
sincos;
|
|
|
|
sincosf;
|
|
|
|
sincosl;
|
2017-02-15 07:59:54 +00:00
|
|
|
};
|
[LIBM] implementations of sinpi[fl], cospi[fl], and tanpi[fl]
Both IEEE-754 2008 and ISO/IEC TS 18661-4 define the half-cycle
trignometric functions cospi, sinpi, and tanpi. The attached
patch implements cospi[fl], sinpi[fl], and tanpi[fl]. Limited
testing on the cospi and sinpi reveal a max ULP less than 0.89;
while tanpi is more problematic with a max ULP less than 2.01
in the interval [0,0.5]. The algorithms used in these functions
are documented in {ks}_cospi.c, {ks}_sinpi.c, and s_tanpi.c.
Note. I no longer have access to a system with ld128 and
adequate support to compile and test the ld128 implementations
of these functions. Given the almost complete lack of input from
others on improvements to libm, I doubt that anyone cares. If
someone does care, the ld128 files contain a number of FIXME comments,
and in particular, while the polynomial coefficients are given
I did not update the polynomial algorithms to properly use the
coefficients.
PR: 218514
MFC after: 2 weeks
2021-10-25 13:13:52 +00:00
|
|
|
|
|
|
|
/* First added in 14.0-CURRENT */
|
|
|
|
FBSD_1.7 {
|
2021-11-05 02:04:01 +00:00
|
|
|
cexpl;
|
[LIBM] implementations of sinpi[fl], cospi[fl], and tanpi[fl]
Both IEEE-754 2008 and ISO/IEC TS 18661-4 define the half-cycle
trignometric functions cospi, sinpi, and tanpi. The attached
patch implements cospi[fl], sinpi[fl], and tanpi[fl]. Limited
testing on the cospi and sinpi reveal a max ULP less than 0.89;
while tanpi is more problematic with a max ULP less than 2.01
in the interval [0,0.5]. The algorithms used in these functions
are documented in {ks}_cospi.c, {ks}_sinpi.c, and s_tanpi.c.
Note. I no longer have access to a system with ld128 and
adequate support to compile and test the ld128 implementations
of these functions. Given the almost complete lack of input from
others on improvements to libm, I doubt that anyone cares. If
someone does care, the ld128 files contain a number of FIXME comments,
and in particular, while the polynomial coefficients are given
I did not update the polynomial algorithms to properly use the
coefficients.
PR: 218514
MFC after: 2 weeks
2021-10-25 13:13:52 +00:00
|
|
|
cospi;
|
|
|
|
cospif;
|
|
|
|
cospil;
|
|
|
|
sinpi;
|
|
|
|
sinpif;
|
|
|
|
sinpil;
|
|
|
|
tanpi;
|
|
|
|
tanpif;
|
|
|
|
tanpil;
|
|
|
|
};
|