/
nerfur
/
openbsd-src
ОбзорДокументацияВойти
/
nerfur
/
openbsd-src
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
ДокументацияПоддержка
Политика конфиденциальностиПользовательское соглашениеПолитика использования «cookies»Согласие субъекта персональных данных
2026 ©
openbsd-src/
.../libm/src/
..
ld128

Fix ilogb(3) implementation. The results have to match FP_ILOGB0 and FP_ILOGBNAN which isn't the case for the amd64 and i386 assembly versions. Drop these in favour of C implementations. Als reimplement ilogbl(3) by providing separate ld80 and ld128 implementations that replace the existing implementation which may hit an infinite loop when built for quad-precision long double.

6 лет назад
ld80

spelling fixes; from paul tagliamonte any changes not taken noted on tech, but chiefly here i did not take the cancelation - cancellation changes;

4 года назад
b_exp__D.c

Per fpclassify(3): isinff(), isnanf(), finite(), and finitef() are deprecated in favor of isinf(), isnan(), and isfinite().

10 лет назад
b_log__D.c

rcsid[] and sccsid[] and copyright[] are essentially unmaintained (and unmaintainable). these days, people use source. these id's do not provide any benefit, and do hurt the small install media (the 33,000 line diff is essentially mechanical) ok with the idea millert, ok dms

17 лет назад
b_tgamma.c

Reduce libm's exports and make internal calls go direct. All dependencies on libc are now via reserved/standardized names.

10 лет назад
e_acos.c

Reduce libm's exports and make internal calls go direct. All dependencies on libc are now via reserved/standardized names.

10 лет назад
e_acosf.c

rcsid[] and sccsid[] and copyright[] are essentially unmaintained (and unmaintainable). these days, people use source. these id's do not provide any benefit, and do hurt the small install media (the 33,000 line diff is essentially mechanical) ok with the idea millert, ok dms

17 лет назад
e_acosh.c

Reduce libm's exports and make internal calls go direct. All dependencies on libc are now via reserved/standardized names.

10 лет назад
e_acoshf.c

rcsid[] and sccsid[] and copyright[] are essentially unmaintained (and unmaintainable). these days, people use source. these id's do not provide any benefit, and do hurt the small install media (the 33,000 line diff is essentially mechanical) ok with the idea millert, ok dms

17 лет назад
e_acosl.c

- 80-bit and quad precision trigonometric and other most important functions: acosl, asinl, atanl, atan2l, cosl, sinl, tanl, exp2l, frexpl, ilogbl, ldexpl, logbl, scalbnl, fabsl, hypotl, powl, sqrtl, rintl, copysignl, nanl, fdiml, fmaxl, fminl. mostly taken from freebsd, needed alot of changes to adapt. note, these are all c versions; and are quite slow when architectures have, e.g. sqrt. assembly versions will be added afterwards - make them .weak/__weak_alias to the double precision versions on other archs - no need to have two finites. finite() and finitef() are non-standard 3BSD obsolete versions of isfinite. remove from libm. make them weak_alias in libc to __isfinite and __isfinitef instead. similarly make 3BSD obsolete versions of isinf, isinff, isnan, isnanf weak_aliases to C99's __isinf, __isinff, __isnan, __isnanf - remove unused infinity.c. the c library has infinities for each supported platform - use STRICT_ASSIGN cast hack for _kernel_rem_pio2, so that the double version has a chance of working on i386 with extra precision - avoid storing multiple copies of the pi/2 array, since it won't vary - bump major due to removed finite/finitef. although they will be in libc, which anything is linked to, minor bump might be enough ok millert@. tested by sthen@, jsg@, ajacoutot@, kili@, naddy@

18 лет назад
e_asin.c

Reduce libm's exports and make internal calls go direct. All dependencies on libc are now via reserved/standardized names.

10 лет назад
e_asinf.c

Reduce libm's exports and make internal calls go direct. All dependencies on libc are now via reserved/standardized names.

10 лет назад
e_asinl.c

Reduce libm's exports and make internal calls go direct. All dependencies on libc are now via reserved/standardized names.

10 лет назад
e_atan2.c

Reduce libm's exports and make internal calls go direct. All dependencies on libc are now via reserved/standardized names.

10 лет назад
e_atan2f.c

Reduce libm's exports and make internal calls go direct. All dependencies on libc are now via reserved/standardized names.

10 лет назад
e_atan2l.c

Reduce libm's exports and make internal calls go direct. All dependencies on libc are now via reserved/standardized names.

10 лет назад
e_atanh.c

Reduce libm's exports and make internal calls go direct. All dependencies on libc are now via reserved/standardized names.

10 лет назад
e_atanhf.c

rcsid[] and sccsid[] and copyright[] are essentially unmaintained (and unmaintainable). these days, people use source. these id's do not provide any benefit, and do hurt the small install media (the 33,000 line diff is essentially mechanical) ok with the idea millert, ok dms

17 лет назад
e_cosh.c

Reduce libm's exports and make internal calls go direct. All dependencies on libc are now via reserved/standardized names.

10 лет назад
e_coshf.c

Reduce libm's exports and make internal calls go direct. All dependencies on libc are now via reserved/standardized names.

10 лет назад
e_exp.c

Reduce libm's exports and make internal calls go direct. All dependencies on libc are now via reserved/standardized names.

10 лет назад
e_expf.c

Reduce libm's exports and make internal calls go direct. All dependencies on libc are now via reserved/standardized names.

10 лет назад
e_fmod.c

Reduce libm's exports and make internal calls go direct. All dependencies on libc are now via reserved/standardized names.

10 лет назад
e_fmodf.c

Reduce libm's exports and make internal calls go direct. All dependencies on libc are now via reserved/standardized names.

10 лет назад
e_hypot.c

Reduce libm's exports and make internal calls go direct. All dependencies on libc are now via reserved/standardized names.

10 лет назад
e_hypotf.c

Reduce libm's exports and make internal calls go direct. All dependencies on libc are now via reserved/standardized names.

10 лет назад
e_j0.c

Reduce libm's exports and make internal calls go direct. All dependencies on libc are now via reserved/standardized names.

10 лет назад
e_j0f.c

Reduce libm's exports and make internal calls go direct. All dependencies on libc are now via reserved/standardized names.

10 лет назад
e_j1.c

Reduce libm's exports and make internal calls go direct. All dependencies on libc are now via reserved/standardized names.

10 лет назад
e_j1f.c

Reduce libm's exports and make internal calls go direct. All dependencies on libc are now via reserved/standardized names.

10 лет назад
e_jn.c

rcsid[] and sccsid[] and copyright[] are essentially unmaintained (and unmaintainable). these days, people use source. these id's do not provide any benefit, and do hurt the small install media (the 33,000 line diff is essentially mechanical) ok with the idea millert, ok dms

17 лет назад
e_jnf.c

rcsid[] and sccsid[] and copyright[] are essentially unmaintained (and unmaintainable). these days, people use source. these id's do not provide any benefit, and do hurt the small install media (the 33,000 line diff is essentially mechanical) ok with the idea millert, ok dms

17 лет назад
e_lgamma_r.c

spelling fixes; from paul tagliamonte any changes not taken noted on tech, but chiefly here i did not take the cancelation - cancellation changes;

4 года назад
e_lgammaf_r.c

Reduce libm's exports and make internal calls go direct. All dependencies on libc are now via reserved/standardized names.

10 лет назад
e_log.c

Reduce libm's exports and make internal calls go direct. All dependencies on libc are now via reserved/standardized names.

10 лет назад
e_log10.c

Reduce libm's exports and make internal calls go direct. All dependencies on libc are now via reserved/standardized names.

10 лет назад
e_log10f.c

rcsid[] and sccsid[] and copyright[] are essentially unmaintained (and unmaintainable). these days, people use source. these id's do not provide any benefit, and do hurt the small install media (the 33,000 line diff is essentially mechanical) ok with the idea millert, ok dms

17 лет назад
e_log2.c

Reduce libm's exports and make internal calls go direct. All dependencies on libc are now via reserved/standardized names.

10 лет назад
e_log2f.c

- replace dtoa w/ David's gdtoa, version 2008-03-15 - provide proper dtoa locks - use the real strtof implementation - add strtold, __hdtoa, __hldtoa - add %a/%A support - don't lose precision in printf, don't round to double anymore - implement extended-precision versions of libc functions: fpclassify, isnan, isinf, signbit, isnormal, isfinite, now that the ieee.h is fixed - separate vax versions of strtof, and __hdtoa - add complex math support. added functions: cacos, casin, catan, ccos, csin, ctan, cacosh, casinh, catanh, ccosh, csinh, ctanh, cexp, clog, cabs, cpow, csqrt, carg, cimag, conj, cproj, creal, cacosf, casinf, catanf, ccosf, csinf, ctanf, cacoshf, casinhf, catanhf, ccoshf, csinhf, ctanhf, cexpf, clogf, cabsf, cpowf, csqrtf, cargf, cimagf, conjf, cprojf, crealf - add fdim, fmax, fmin - add log2. (adapted implementation e_log.c. could be more acruate & faster, but it's good enough for now) - remove wrappers & cruft in libm, supposed to work-around mistakes in SVID, etc.; use ieee versions. fixes issues in python 2.6 for djm@ - make _digittoint static - proper definitions for i386, and amd64 in ieee.h - sh, powerpc don't really have extended-precision - add missing definitions for mips64 (quad), m{6,8}k (96-bit) float.h for LDBL_* - merge lead to frac for m{6,8}k, for gdtoa to work properly - add FRAC*BITS & EXT_TO_ARRAY32 definitions in ieee.h, for hdtoa&ldtoa to use - add EXT_IMPLICIT_NBIT definition, which indicates implicit normalization bit - add regression tests for libc: fpclassify and printf - arith.h & gd_qnan.h definitions - update ieee.h: hppa doesn't have quad-precision, hppa64 does - add missing prototypes to gdtoaimp - on 64-bit platforms make sure gdtoa doesn't use a long when it really wants an int - etc., what i may have forgotten... - bump libm major, due to removed&changed symbols - no libc bump, since this is riding on djm's libc major crank from a day ago

18 лет назад
e_logf.c

Reduce libm's exports and make internal calls go direct. All dependencies on libc are now via reserved/standardized names.

10 лет назад
e_pow.c

Reduce libm's exports and make internal calls go direct. All dependencies on libc are now via reserved/standardized names.

10 лет назад
e_powf.c

Reduce libm's exports and make internal calls go direct. All dependencies on libc are now via reserved/standardized names.

10 лет назад
e_rem_pio2.c

rcsid[] and sccsid[] and copyright[] are essentially unmaintained (and unmaintainable). these days, people use source. these id's do not provide any benefit, and do hurt the small install media (the 33,000 line diff is essentially mechanical) ok with the idea millert, ok dms

17 лет назад
e_rem_pio2f.c

rcsid[] and sccsid[] and copyright[] are essentially unmaintained (and unmaintainable). these days, people use source. these id's do not provide any benefit, and do hurt the small install media (the 33,000 line diff is essentially mechanical) ok with the idea millert, ok dms

17 лет назад
e_remainder.c

Reduce libm's exports and make internal calls go direct. All dependencies on libc are now via reserved/standardized names.

10 лет назад
e_remainderf.c

Reduce libm's exports and make internal calls go direct. All dependencies on libc are now via reserved/standardized names.

10 лет назад
e_remainderl.c

Finalize work on the math library. It's time to do this monster commit, and deal with problems (if any) in tree.

15 лет назад
e_scalb.c

Reduce libm's exports and make internal calls go direct. All dependencies on libc are now via reserved/standardized names.

10 лет назад
e_scalbf.c

Reduce libm's exports and make internal calls go direct. All dependencies on libc are now via reserved/standardized names.

10 лет назад
e_sinh.c

Reduce libm's exports and make internal calls go direct. All dependencies on libc are now via reserved/standardized names.

10 лет назад
e_sinhf.c

Reduce libm's exports and make internal calls go direct. All dependencies on libc are now via reserved/standardized names.

10 лет назад
e_sqrt.c

spelling fixes; from paul tagliamonte any changes not taken noted on tech, but chiefly here i did not take the cancelation - cancellation changes;

4 года назад
e_sqrtf.c

Reduce libm's exports and make internal calls go direct. All dependencies on libc are now via reserved/standardized names.

10 лет назад
e_sqrtl.c

Reduce libm's exports and make internal calls go direct. All dependencies on libc are now via reserved/standardized names.

10 лет назад
k_cos.c

Copy cos(3) software implementation from FreeBSD-13

5 лет назад
k_cosf.c

Optimization for tiny x in cos and sin

5 лет назад
k_rem_pio2.c

spelling fixes; from paul tagliamonte any changes not taken noted on tech, but chiefly here i did not take the cancelation - cancellation changes;

4 года назад
k_rem_pio2f.c

rcsid[] and sccsid[] and copyright[] are essentially unmaintained (and unmaintainable). these days, people use source. these id's do not provide any benefit, and do hurt the small install media (the 33,000 line diff is essentially mechanical) ok with the idea millert, ok dms

17 лет назад
k_sin.c

Optimization for tiny x in cos and sin

5 лет назад
k_sincos.h

Implement sicos(3), sincosf(3) and sincosl(3). These functions are common extensions and modern compilers (such as clang) will use them to optimize separate calculations of sine and cosine.

8 лет назад
k_sincosf.h

Implement sicos(3), sincosf(3) and sincosl(3). These functions are common extensions and modern compilers (such as clang) will use them to optimize separate calculations of sine and cosine.

8 лет назад
k_sinf.c

Optimization for tiny x in cos and sin

5 лет назад
k_tan.c

rcsid[] and sccsid[] and copyright[] are essentially unmaintained (and unmaintainable). these days, people use source. these id's do not provide any benefit, and do hurt the small install media (the 33,000 line diff is essentially mechanical) ok with the idea millert, ok dms

17 лет назад
k_tanf.c

rcsid[] and sccsid[] and copyright[] are essentially unmaintained (and unmaintainable). these days, people use source. these id's do not provide any benefit, and do hurt the small install media (the 33,000 line diff is essentially mechanical) ok with the idea millert, ok dms

17 лет назад
math_private.h

Reduce libm's exports and make internal calls go direct. All dependencies on libc are now via reserved/standardized names.

10 лет назад
polevll.c

Declare __p1evll and __polevll protos in math_private.h instead of redeclaring each time in ld{80,128}. Pointed out by theo.

13 лет назад
s_asinh.c

Reduce libm's exports and make internal calls go direct. All dependencies on libc are now via reserved/standardized names.

10 лет назад
s_asinhf.c

rcsid[] and sccsid[] and copyright[] are essentially unmaintained (and unmaintainable). these days, people use source. these id's do not provide any benefit, and do hurt the small install media (the 33,000 line diff is essentially mechanical) ok with the idea millert, ok dms

17 лет назад
s_atan.c

repair confusing "} if" indentation as suggested by deraadt@

7 лет назад
s_atanf.c

repair confusing "} if" indentation as suggested by deraadt@

7 лет назад
s_atanl.c

Reduce libm's exports and make internal calls go direct. All dependencies on libc are now via reserved/standardized names.

10 лет назад
s_cabs.c

Reduce libm's exports and make internal calls go direct. All dependencies on libc are now via reserved/standardized names.

10 лет назад
s_cabsf.c

Reduce libm's exports and make internal calls go direct. All dependencies on libc are now via reserved/standardized names.

10 лет назад
s_cabsl.c

Reduce libm's exports and make internal calls go direct. All dependencies on libc are now via reserved/standardized names.

10 лет назад
s_cacos.c

Reduce libm's exports and make internal calls go direct. All dependencies on libc are now via reserved/standardized names.

10 лет назад
s_cacosf.c

For intermediate computations use single or extended counterparts where appropriate, to avoid precision loss.

15 лет назад
s_cacosh.c

Reduce libm's exports and make internal calls go direct. All dependencies on libc are now via reserved/standardized names.

10 лет назад
s_cacoshf.c

Signs of cacosh/cacoshf were not always correct (e.g., -1.1 -1.1i), as found by fortran regression tests. Also added some complex regression tests for cacosh, casinh, catanh. Reported by John Marino @ DragonFlyBSD.

11 лет назад
s_cacoshl.c

Adapt previous to extended-precision, and fix single-precision constants.

11 лет назад
s_cacosl.c

- Make constants const. - Fix aliasing issue in s_frexpf.c; spotted by gcc. Many other ones were fixed in NetBSD long ago, but this one was forgotten. It looks like recently they fixed it too.

15 лет назад
s_carg.c

Reduce libm's exports and make internal calls go direct. All dependencies on libc are now via reserved/standardized names.

10 лет назад
s_cargf.c

Reduce libm's exports and make internal calls go direct. All dependencies on libc are now via reserved/standardized names.

10 лет назад
s_cargl.c

Reduce libm's exports and make internal calls go direct. All dependencies on libc are now via reserved/standardized names.

10 лет назад
s_casin.c

Reduce libm's exports and make internal calls go direct. All dependencies on libc are now via reserved/standardized names.

10 лет назад
s_casinf.c

Reduce libm's exports and make internal calls go direct. All dependencies on libc are now via reserved/standardized names.

10 лет назад
s_casinh.c

Reduce libm's exports and make internal calls go direct. All dependencies on libc are now via reserved/standardized names.

10 лет назад
s_casinhf.c

- replace dtoa w/ David's gdtoa, version 2008-03-15 - provide proper dtoa locks - use the real strtof implementation - add strtold, __hdtoa, __hldtoa - add %a/%A support - don't lose precision in printf, don't round to double anymore - implement extended-precision versions of libc functions: fpclassify, isnan, isinf, signbit, isnormal, isfinite, now that the ieee.h is fixed - separate vax versions of strtof, and __hdtoa - add complex math support. added functions: cacos, casin, catan, ccos, csin, ctan, cacosh, casinh, catanh, ccosh, csinh, ctanh, cexp, clog, cabs, cpow, csqrt, carg, cimag, conj, cproj, creal, cacosf, casinf, catanf, ccosf, csinf, ctanf, cacoshf, casinhf, catanhf, ccoshf, csinhf, ctanhf, cexpf, clogf, cabsf, cpowf, csqrtf, cargf, cimagf, conjf, cprojf, crealf - add fdim, fmax, fmin - add log2. (adapted implementation e_log.c. could be more acruate & faster, but it's good enough for now) - remove wrappers & cruft in libm, supposed to work-around mistakes in SVID, etc.; use ieee versions. fixes issues in python 2.6 for djm@ - make _digittoint static - proper definitions for i386, and amd64 in ieee.h - sh, powerpc don't really have extended-precision - add missing definitions for mips64 (quad), m{6,8}k (96-bit) float.h for LDBL_* - merge lead to frac for m{6,8}k, for gdtoa to work properly - add FRAC*BITS & EXT_TO_ARRAY32 definitions in ieee.h, for hdtoa&ldtoa to use - add EXT_IMPLICIT_NBIT definition, which indicates implicit normalization bit - add regression tests for libc: fpclassify and printf - arith.h & gd_qnan.h definitions - update ieee.h: hppa doesn't have quad-precision, hppa64 does - add missing prototypes to gdtoaimp - on 64-bit platforms make sure gdtoa doesn't use a long when it really wants an int - etc., what i may have forgotten... - bump libm major, due to removed&changed symbols - no libc bump, since this is riding on djm's libc major crank from a day ago

18 лет назад
s_casinhl.c

Finalize work on complex math routines, now that we have the extended-precision support. Mostly from Cephes.

15 лет назад
s_casinl.c

Reduce libm's exports and make internal calls go direct. All dependencies on libc are now via reserved/standardized names.

10 лет назад
s_catan.c

Reduce libm's exports and make internal calls go direct. All dependencies on libc are now via reserved/standardized names.

10 лет назад
s_catanf.c

Reduce libm's exports and make internal calls go direct. All dependencies on libc are now via reserved/standardized names.

10 лет назад
s_catanh.c

Reduce libm's exports and make internal calls go direct. All dependencies on libc are now via reserved/standardized names.

10 лет назад
s_catanhf.c

- replace dtoa w/ David's gdtoa, version 2008-03-15 - provide proper dtoa locks - use the real strtof implementation - add strtold, __hdtoa, __hldtoa - add %a/%A support - don't lose precision in printf, don't round to double anymore - implement extended-precision versions of libc functions: fpclassify, isnan, isinf, signbit, isnormal, isfinite, now that the ieee.h is fixed - separate vax versions of strtof, and __hdtoa - add complex math support. added functions: cacos, casin, catan, ccos, csin, ctan, cacosh, casinh, catanh, ccosh, csinh, ctanh, cexp, clog, cabs, cpow, csqrt, carg, cimag, conj, cproj, creal, cacosf, casinf, catanf, ccosf, csinf, ctanf, cacoshf, casinhf, catanhf, ccoshf, csinhf, ctanhf, cexpf, clogf, cabsf, cpowf, csqrtf, cargf, cimagf, conjf, cprojf, crealf - add fdim, fmax, fmin - add log2. (adapted implementation e_log.c. could be more acruate & faster, but it's good enough for now) - remove wrappers & cruft in libm, supposed to work-around mistakes in SVID, etc.; use ieee versions. fixes issues in python 2.6 for djm@ - make _digittoint static - proper definitions for i386, and amd64 in ieee.h - sh, powerpc don't really have extended-precision - add missing definitions for mips64 (quad), m{6,8}k (96-bit) float.h for LDBL_* - merge lead to frac for m{6,8}k, for gdtoa to work properly - add FRAC*BITS & EXT_TO_ARRAY32 definitions in ieee.h, for hdtoa&ldtoa to use - add EXT_IMPLICIT_NBIT definition, which indicates implicit normalization bit - add regression tests for libc: fpclassify and printf - arith.h & gd_qnan.h definitions - update ieee.h: hppa doesn't have quad-precision, hppa64 does - add missing prototypes to gdtoaimp - on 64-bit platforms make sure gdtoa doesn't use a long when it really wants an int - etc., what i may have forgotten... - bump libm major, due to removed&changed symbols - no libc bump, since this is riding on djm's libc major crank from a day ago

18 лет назад
s_catanhl.c

Finalize work on complex math routines, now that we have the extended-precision support. Mostly from Cephes.

15 лет назад
s_catanl.c

Reduce libm's exports and make internal calls go direct. All dependencies on libc are now via reserved/standardized names.

10 лет назад
s_cbrt.c

spelling fixes; from paul tagliamonte any changes not taken noted on tech, but chiefly here i did not take the cancelation - cancellation changes;

4 года назад
s_cbrtf.c

spelling fixes; from paul tagliamonte any changes not taken noted on tech, but chiefly here i did not take the cancelation - cancellation changes;

4 года назад
s_ccos.c

Reduce libm's exports and make internal calls go direct. All dependencies on libc are now via reserved/standardized names.

10 лет назад
s_ccosf.c

Use crealf() and cimagf() instead of creal() and cimag() when the argument is a float. Eliminate a cast rendered superfluous as a result.

16 лет назад
s_ccosh.c

Reduce libm's exports and make internal calls go direct. All dependencies on libc are now via reserved/standardized names.

10 лет назад
s_ccoshf.c

Use crealf() and cimagf() instead of creal() and cimag() when the argument is a float. Eliminate a cast rendered superfluous as a result.

16 лет назад
s_ccoshl.c

For intermediate computations use single or extended counterparts where appropriate, to avoid precision loss.

15 лет назад
s_ccosl.c

For intermediate computations use single or extended counterparts where appropriate, to avoid precision loss.

15 лет назад
s_ceil.c

Reduce libm's exports and make internal calls go direct. All dependencies on libc are now via reserved/standardized names.

10 лет назад
s_ceilf.c

Reduce libm's exports and make internal calls go direct. All dependencies on libc are now via reserved/standardized names.

10 лет назад
s_cexp.c

Reduce libm's exports and make internal calls go direct. All dependencies on libc are now via reserved/standardized names.

10 лет назад
s_cexpf.c

Use crealf() and cimagf() instead of creal() and cimag() when the argument is a float. Eliminate a cast rendered superfluous as a result.

16 лет назад
s_cexpl.c

For intermediate computations use single or extended counterparts where appropriate, to avoid precision loss.

15 лет назад
s_cimag.c

Reduce libm's exports and make internal calls go direct. All dependencies on libc are now via reserved/standardized names.

10 лет назад
s_cimagf.c

Reduce libm's exports and make internal calls go direct. All dependencies on libc are now via reserved/standardized names.

10 лет назад
s_cimagl.c

Reduce libm's exports and make internal calls go direct. All dependencies on libc are now via reserved/standardized names.

10 лет назад
s_clog.c

Reduce libm's exports and make internal calls go direct. All dependencies on libc are now via reserved/standardized names.

10 лет назад
s_clogf.c

Reduce libm's exports and make internal calls go direct. All dependencies on libc are now via reserved/standardized names.

10 лет назад
s_clogl.c

Reduce libm's exports and make internal calls go direct. All dependencies on libc are now via reserved/standardized names.

10 лет назад
s_conj.c

Reduce libm's exports and make internal calls go direct. All dependencies on libc are now via reserved/standardized names.

10 лет назад
s_conjf.c

- replace dtoa w/ David's gdtoa, version 2008-03-15 - provide proper dtoa locks - use the real strtof implementation - add strtold, __hdtoa, __hldtoa - add %a/%A support - don't lose precision in printf, don't round to double anymore - implement extended-precision versions of libc functions: fpclassify, isnan, isinf, signbit, isnormal, isfinite, now that the ieee.h is fixed - separate vax versions of strtof, and __hdtoa - add complex math support. added functions: cacos, casin, catan, ccos, csin, ctan, cacosh, casinh, catanh, ccosh, csinh, ctanh, cexp, clog, cabs, cpow, csqrt, carg, cimag, conj, cproj, creal, cacosf, casinf, catanf, ccosf, csinf, ctanf, cacoshf, casinhf, catanhf, ccoshf, csinhf, ctanhf, cexpf, clogf, cabsf, cpowf, csqrtf, cargf, cimagf, conjf, cprojf, crealf - add fdim, fmax, fmin - add log2. (adapted implementation e_log.c. could be more acruate & faster, but it's good enough for now) - remove wrappers & cruft in libm, supposed to work-around mistakes in SVID, etc.; use ieee versions. fixes issues in python 2.6 for djm@ - make _digittoint static - proper definitions for i386, and amd64 in ieee.h - sh, powerpc don't really have extended-precision - add missing definitions for mips64 (quad), m{6,8}k (96-bit) float.h for LDBL_* - merge lead to frac for m{6,8}k, for gdtoa to work properly - add FRAC*BITS & EXT_TO_ARRAY32 definitions in ieee.h, for hdtoa&ldtoa to use - add EXT_IMPLICIT_NBIT definition, which indicates implicit normalization bit - add regression tests for libc: fpclassify and printf - arith.h & gd_qnan.h definitions - update ieee.h: hppa doesn't have quad-precision, hppa64 does - add missing prototypes to gdtoaimp - on 64-bit platforms make sure gdtoa doesn't use a long when it really wants an int - etc., what i may have forgotten... - bump libm major, due to removed&changed symbols - no libc bump, since this is riding on djm's libc major crank from a day ago

18 лет назад
s_conjl.c

Finalize work on complex math routines, now that we have the extended-precision support. Mostly from Cephes.

15 лет назад
s_copysign.c

Reduce libm's exports and make internal calls go direct. All dependencies on libc are now via reserved/standardized names.

10 лет назад
s_copysignf.c

Reduce libm's exports and make internal calls go direct. All dependencies on libc are now via reserved/standardized names.

10 лет назад
s_copysignl.c

Reduce libm's exports and make internal calls go direct. All dependencies on libc are now via reserved/standardized names.

10 лет назад
s_cos.c

Copy cos(3) software implementation from FreeBSD-13

5 лет назад
s_cosf.c

Optimization for tiny x in cos and sin

5 лет назад
s_cosl.c

Reduce libm's exports and make internal calls go direct. All dependencies on libc are now via reserved/standardized names.

10 лет назад
s_cpow.c

Reduce libm's exports and make internal calls go direct. All dependencies on libc are now via reserved/standardized names.

10 лет назад
s_cpowf.c

Use crealf() and cimagf() instead of creal() and cimag() when the argument is a float. Eliminate a cast rendered superfluous as a result.

16 лет назад
s_cpowl.c

For intermediate computations use single or extended counterparts where appropriate, to avoid precision loss.

15 лет назад
s_cproj.c

Reduce libm's exports and make internal calls go direct. All dependencies on libc are now via reserved/standardized names.

10 лет назад
s_cprojf.c

Call the single, not double-precision version of copysign for the float arguments.

15 лет назад
s_cprojl.c

Finalize work on complex math routines, now that we have the extended-precision support. Mostly from Cephes.

15 лет назад
s_creal.c

Reduce libm's exports and make internal calls go direct. All dependencies on libc are now via reserved/standardized names.

10 лет назад
s_crealf.c

Reduce libm's exports and make internal calls go direct. All dependencies on libc are now via reserved/standardized names.

10 лет назад
s_creall.c

Reduce libm's exports and make internal calls go direct. All dependencies on libc are now via reserved/standardized names.

10 лет назад
s_csin.c

Reduce libm's exports and make internal calls go direct. All dependencies on libc are now via reserved/standardized names.

10 лет назад
s_csinf.c

Use crealf() and cimagf() instead of creal() and cimag() when the argument is a float. Eliminate a cast rendered superfluous as a result.

16 лет назад
s_csinh.c

Reduce libm's exports and make internal calls go direct. All dependencies on libc are now via reserved/standardized names.

10 лет назад
s_csinhf.c

Use crealf() and cimagf() instead of creal() and cimag() when the argument is a float. Eliminate a cast rendered superfluous as a result.

16 лет назад
s_csinhl.c

For intermediate computations use single or extended counterparts where appropriate, to avoid precision loss.

15 лет назад
s_csinl.c

For intermediate computations use single or extended counterparts where appropriate, to avoid precision loss.

15 лет назад
s_csqrt.c

Reduce libm's exports and make internal calls go direct. All dependencies on libc are now via reserved/standardized names.

10 лет назад
s_csqrtf.c

Reduce libm's exports and make internal calls go direct. All dependencies on libc are now via reserved/standardized names.

10 лет назад
s_csqrtl.c

Reduce libm's exports and make internal calls go direct. All dependencies on libc are now via reserved/standardized names.

10 лет назад
s_ctan.c

Reduce libm's exports and make internal calls go direct. All dependencies on libc are now via reserved/standardized names.

10 лет назад
s_ctanf.c

For intermediate computations use single or extended counterparts where appropriate, to avoid precision loss.

15 лет назад
s_ctanh.c

Reduce libm's exports and make internal calls go direct. All dependencies on libc are now via reserved/standardized names.

10 лет назад
s_ctanhf.c

Use crealf() and cimagf() instead of creal() and cimag() when the argument is a float. Eliminate a cast rendered superfluous as a result.

16 лет назад
s_ctanhl.c

For intermediate computations use single or extended counterparts where appropriate, to avoid precision loss.

15 лет назад
s_ctanl.c

- Make constants const. - Fix aliasing issue in s_frexpf.c; spotted by gcc. Many other ones were fixed in NetBSD long ago, but this one was forgotten. It looks like recently they fixed it too.

15 лет назад
s_erf.c

Reduce libm's exports and make internal calls go direct. All dependencies on libc are now via reserved/standardized names.

10 лет назад
s_erff.c

rcsid[] and sccsid[] and copyright[] are essentially unmaintained (and unmaintainable). these days, people use source. these id's do not provide any benefit, and do hurt the small install media (the 33,000 line diff is essentially mechanical) ok with the idea millert, ok dms

17 лет назад
s_exp2.c

Reduce libm's exports and make internal calls go direct. All dependencies on libc are now via reserved/standardized names.

10 лет назад
s_exp2f.c

Remove excessive sys/cdefs.h inclusion ok guenther millert kettenis

14 лет назад
s_expm1.c

Reduce libm's exports and make internal calls go direct. All dependencies on libc are now via reserved/standardized names.

10 лет назад
s_expm1f.c

Reduce libm's exports and make internal calls go direct. All dependencies on libc are now via reserved/standardized names.

10 лет назад
s_fabsf.c

Reduce libm's exports and make internal calls go direct. All dependencies on libc are now via reserved/standardized names.

10 лет назад
s_fabsl.c

- 80-bit and quad precision trigonometric and other most important functions: acosl, asinl, atanl, atan2l, cosl, sinl, tanl, exp2l, frexpl, ilogbl, ldexpl, logbl, scalbnl, fabsl, hypotl, powl, sqrtl, rintl, copysignl, nanl, fdiml, fmaxl, fminl. mostly taken from freebsd, needed alot of changes to adapt. note, these are all c versions; and are quite slow when architectures have, e.g. sqrt. assembly versions will be added afterwards - make them .weak/__weak_alias to the double precision versions on other archs - no need to have two finites. finite() and finitef() are non-standard 3BSD obsolete versions of isfinite. remove from libm. make them weak_alias in libc to __isfinite and __isfinitef instead. similarly make 3BSD obsolete versions of isinf, isinff, isnan, isnanf weak_aliases to C99's __isinf, __isinff, __isnan, __isnanf - remove unused infinity.c. the c library has infinities for each supported platform - use STRICT_ASSIGN cast hack for _kernel_rem_pio2, so that the double version has a chance of working on i386 with extra precision - avoid storing multiple copies of the pi/2 array, since it won't vary - bump major due to removed finite/finitef. although they will be in libc, which anything is linked to, minor bump might be enough ok millert@. tested by sthen@, jsg@, ajacoutot@, kili@, naddy@

18 лет назад
s_fdim.c

Remove excessive sys/cdefs.h inclusion ok guenther millert kettenis

14 лет назад
s_floor.c

Reduce libm's exports and make internal calls go direct. All dependencies on libc are now via reserved/standardized names.

10 лет назад
s_floorf.c

Reduce libm's exports and make internal calls go direct. All dependencies on libc are now via reserved/standardized names.

10 лет назад
s_fma.c

Reduce libm's exports and make internal calls go direct. All dependencies on libc are now via reserved/standardized names.

10 лет назад
s_fmaf.c

Remove excessive sys/cdefs.h inclusion ok guenther millert kettenis

14 лет назад
s_fmal.c

Add parentheses around comparison in operand of ^. Pointed out by theo.

13 лет назад
s_fmax.c

Reduce libm's exports and make internal calls go direct. All dependencies on libc are now via reserved/standardized names.

10 лет назад
s_fmaxf.c

Add explicit braces to avoid ambiguous else. Pointed out by theo.

13 лет назад
s_fmaxl.c

Add explicit braces to avoid ambiguous else. Pointed out by theo.

13 лет назад
s_fmin.c

Reduce libm's exports and make internal calls go direct. All dependencies on libc are now via reserved/standardized names.

10 лет назад
s_fminf.c

Add explicit braces to avoid ambiguous else. Pointed out by theo.

13 лет назад
s_fminl.c

Add explicit braces to avoid ambiguous else. Pointed out by theo.

13 лет назад
s_frexpf.c

- Make constants const. - Fix aliasing issue in s_frexpf.c; spotted by gcc. Many other ones were fixed in NetBSD long ago, but this one was forgotten. It looks like recently they fixed it too.

15 лет назад
s_frexpl.c

Reduce libm's exports and make internal calls go direct. All dependencies on libc are now via reserved/standardized names.

10 лет назад
s_ilogb.c

Fix ilogb(3) implementation. The results have to match FP_ILOGB0 and FP_ILOGBNAN which isn't the case for the amd64 and i386 assembly versions. Drop these in favour of C implementations. Als reimplement ilogbl(3) by providing separate ld80 and ld128 implementations that replace the existing implementation which may hit an infinite loop when built for quad-precision long double.

6 лет назад
s_ilogbf.c

Fix ilogb(3) implementation. The results have to match FP_ILOGB0 and FP_ILOGBNAN which isn't the case for the amd64 and i386 assembly versions. Drop these in favour of C implementations. Als reimplement ilogbl(3) by providing separate ld80 and ld128 implementations that replace the existing implementation which may hit an infinite loop when built for quad-precision long double.

6 лет назад
s_llrint.c

Replace lrint(3), lrintf(3), llrint(3) and llrintf(3) implementations with the same implementation that we're already using for lrintl(3) and llrintl(3). The old implementations were derived from code from NetBSD that didn't pass the lib/libm/msun/lrint_test regress test. NetBSD replaced their implementation with the FreeBSD implementation of this code which we were already using for lrintl(3) and llrintl(3). This fixes the regress test.

5 лет назад
s_llrintf.c

Replace lrint(3), lrintf(3), llrint(3) and llrintf(3) implementations with the same implementation that we're already using for lrintl(3) and llrintl(3). The old implementations were derived from code from NetBSD that didn't pass the lib/libm/msun/lrint_test regress test. NetBSD replaced their implementation with the FreeBSD implementation of this code which we were already using for lrintl(3) and llrintl(3). This fixes the regress test.

5 лет назад
s_llrintl.c

Finalize work on the math library. It's time to do this monster commit, and deal with problems (if any) in tree.

15 лет назад
s_llround.c

Reduce libm's exports and make internal calls go direct. All dependencies on libc are now via reserved/standardized names.

10 лет назад
s_llroundf.c

rename lround.c lroundf.c llround.c llroundf.c to s_lround.c s_lroundf.c s_llround.c s_llroundf.c, for naming consistency looks fine to millert@

18 лет назад
s_llroundl.c

Finalize work on the math library. It's time to do this monster commit, and deal with problems (if any) in tree.

15 лет назад
s_log1p.c

Reduce libm's exports and make internal calls go direct. All dependencies on libc are now via reserved/standardized names.

10 лет назад
s_log1pf.c

Reduce libm's exports and make internal calls go direct. All dependencies on libc are now via reserved/standardized names.

10 лет назад
s_logb.c

Provide logbl(3) when long double is double

5 лет назад
s_logbf.c

Reduce libm's exports and make internal calls go direct. All dependencies on libc are now via reserved/standardized names.

10 лет назад
s_logbl.c

- 80-bit and quad precision trigonometric and other most important functions: acosl, asinl, atanl, atan2l, cosl, sinl, tanl, exp2l, frexpl, ilogbl, ldexpl, logbl, scalbnl, fabsl, hypotl, powl, sqrtl, rintl, copysignl, nanl, fdiml, fmaxl, fminl. mostly taken from freebsd, needed alot of changes to adapt. note, these are all c versions; and are quite slow when architectures have, e.g. sqrt. assembly versions will be added afterwards - make them .weak/__weak_alias to the double precision versions on other archs - no need to have two finites. finite() and finitef() are non-standard 3BSD obsolete versions of isfinite. remove from libm. make them weak_alias in libc to __isfinite and __isfinitef instead. similarly make 3BSD obsolete versions of isinf, isinff, isnan, isnanf weak_aliases to C99's __isinf, __isinff, __isnan, __isnanf - remove unused infinity.c. the c library has infinities for each supported platform - use STRICT_ASSIGN cast hack for _kernel_rem_pio2, so that the double version has a chance of working on i386 with extra precision - avoid storing multiple copies of the pi/2 array, since it won't vary - bump major due to removed finite/finitef. although they will be in libc, which anything is linked to, minor bump might be enough ok millert@. tested by sthen@, jsg@, ajacoutot@, kili@, naddy@

18 лет назад
s_lrint.c

Replace lrint(3), lrintf(3), llrint(3) and llrintf(3) implementations with the same implementation that we're already using for lrintl(3) and llrintl(3). The old implementations were derived from code from NetBSD that didn't pass the lib/libm/msun/lrint_test regress test. NetBSD replaced their implementation with the FreeBSD implementation of this code which we were already using for lrintl(3) and llrintl(3). This fixes the regress test.

5 лет назад
s_lrintf.c

Replace lrint(3), lrintf(3), llrint(3) and llrintf(3) implementations with the same implementation that we're already using for lrintl(3) and llrintl(3). The old implementations were derived from code from NetBSD that didn't pass the lib/libm/msun/lrint_test regress test. NetBSD replaced their implementation with the FreeBSD implementation of this code which we were already using for lrintl(3) and llrintl(3). This fixes the regress test.

5 лет назад
s_lrintl.c

Replace lrint(3), lrintf(3), llrint(3) and llrintf(3) implementations with the same implementation that we're already using for lrintl(3) and llrintl(3). The old implementations were derived from code from NetBSD that didn't pass the lib/libm/msun/lrint_test regress test. NetBSD replaced their implementation with the FreeBSD implementation of this code which we were already using for lrintl(3) and llrintl(3). This fixes the regress test.

5 лет назад
s_lround.c

Reduce libm's exports and make internal calls go direct. All dependencies on libc are now via reserved/standardized names.

10 лет назад
s_lroundf.c

The {,l}lround{,f} implementations are based on {,l}lrint{,f}, therefore affected by the same bugs I've fixed a week ago.

15 лет назад
s_lroundl.c

Revert previous. bluhm noted that it causes a regress failure.

5 лет назад
s_modff.c

Make sure modff() returns correct values for infinities.

3 года назад
s_nan.c

Reduce libm's exports and make internal calls go direct. All dependencies on libc are now via reserved/standardized names.

10 лет назад
s_nearbyint.c

- enable fenv - add nearbyint, nearbyintf and nearbyintl implemented using fenv

15 лет назад
s_nextafter.c

Reduce libm's exports and make internal calls go direct. All dependencies on libc are now via reserved/standardized names.

10 лет назад
s_nextafterf.c

C99: "The nextafter functions return y if x equals y."

15 лет назад
s_nexttowardf.c

Trick the compiler that volatile temporary is used while raising the underflow.

13 лет назад
s_remquo.c

Reduce libm's exports and make internal calls go direct. All dependencies on libc are now via reserved/standardized names.

10 лет назад
s_remquof.c

Remove excessive sys/cdefs.h inclusion ok guenther millert kettenis

14 лет назад
s_rint.c

Gah, rintl() is used internally, so add a macro for the fourth possiblity, a cloning a non-standard, long double function which _is_ used from the matching plain double function

8 лет назад
s_rintf.c

Reduce libm's exports and make internal calls go direct. All dependencies on libc are now via reserved/standardized names.

10 лет назад
s_rintl.c

Reduce libm's exports and make internal calls go direct. All dependencies on libc are now via reserved/standardized names.

10 лет назад
s_round.c

Reduce libm's exports and make internal calls go direct. All dependencies on libc are now via reserved/standardized names.

10 лет назад
s_roundf.c

Per fpclassify(3): isinff(), isnanf(), finite(), and finitef() are deprecated in favor of isinf(), isnan(), and isfinite().

10 лет назад
s_roundl.c

Reduce libm's exports and make internal calls go direct. All dependencies on libc are now via reserved/standardized names.

10 лет назад
s_scalbln.c

int is big enough to fully represent exponents of all supported fp formats. which even for 80-bit & 128-bit long doubles is only 15 bits. therefore, scalbln, scalblnf, scalblnl are essentially the same as scalbn, scalbnf, scalbnl with bounds checking so that LONG_MIN..INT_MIN, and INT_MAX..LONG_MAX ranges properly raise exceptions & yield correct values. looks good to millert@

17 лет назад
s_scalbn.c

Reduce libm's exports and make internal calls go direct. All dependencies on libc are now via reserved/standardized names.

10 лет назад
s_scalbnf.c

Reduce libm's exports and make internal calls go direct. All dependencies on libc are now via reserved/standardized names.

10 лет назад
s_scalbnl.c

Reduce libm's exports and make internal calls go direct. All dependencies on libc are now via reserved/standardized names.

10 лет назад
s_signgam.c

Reduce libm's exports and make internal calls go direct. All dependencies on libc are now via reserved/standardized names.

10 лет назад
s_significand.c

rcsid[] and sccsid[] and copyright[] are essentially unmaintained (and unmaintainable). these days, people use source. these id's do not provide any benefit, and do hurt the small install media (the 33,000 line diff is essentially mechanical) ok with the idea millert, ok dms

17 лет назад
s_significandf.c

rcsid[] and sccsid[] and copyright[] are essentially unmaintained (and unmaintainable). these days, people use source. these id's do not provide any benefit, and do hurt the small install media (the 33,000 line diff is essentially mechanical) ok with the idea millert, ok dms

17 лет назад
s_sin.c

Optimization for tiny x in cos and sin

5 лет назад
s_sincos.c

Fix build of sincosl on machines where long double == double

8 лет назад
s_sincosf.c

Implement sicos(3), sincosf(3) and sincosl(3). These functions are common extensions and modern compilers (such as clang) will use them to optimize separate calculations of sine and cosine.

8 лет назад
s_sincosl.c

add return statements missed when adapting from FreeBSD

2 года назад
s_sinf.c

Optimization for tiny x in cos and sin

5 лет назад
s_sinl.c

Reduce libm's exports and make internal calls go direct. All dependencies on libc are now via reserved/standardized names.

10 лет назад
s_tan.c

Reduce libm's exports and make internal calls go direct. All dependencies on libc are now via reserved/standardized names.

10 лет назад
s_tanf.c

rcsid[] and sccsid[] and copyright[] are essentially unmaintained (and unmaintainable). these days, people use source. these id's do not provide any benefit, and do hurt the small install media (the 33,000 line diff is essentially mechanical) ok with the idea millert, ok dms

17 лет назад
s_tanh.c

Reduce libm's exports and make internal calls go direct. All dependencies on libc are now via reserved/standardized names.

10 лет назад
s_tanhf.c

For tiny x, tanhf = x*(one+x). GCC (at -O2) optimized this into x+x*x, as a result sign got lost for the zero inputs. Explicitly return in this case, similarly like has been done in tanh.

15 лет назад
s_tanl.c

- 80-bit and quad precision trigonometric and other most important functions: acosl, asinl, atanl, atan2l, cosl, sinl, tanl, exp2l, frexpl, ilogbl, ldexpl, logbl, scalbnl, fabsl, hypotl, powl, sqrtl, rintl, copysignl, nanl, fdiml, fmaxl, fminl. mostly taken from freebsd, needed alot of changes to adapt. note, these are all c versions; and are quite slow when architectures have, e.g. sqrt. assembly versions will be added afterwards - make them .weak/__weak_alias to the double precision versions on other archs - no need to have two finites. finite() and finitef() are non-standard 3BSD obsolete versions of isfinite. remove from libm. make them weak_alias in libc to __isfinite and __isfinitef instead. similarly make 3BSD obsolete versions of isinf, isinff, isnan, isnanf weak_aliases to C99's __isinf, __isinff, __isnan, __isnanf - remove unused infinity.c. the c library has infinities for each supported platform - use STRICT_ASSIGN cast hack for _kernel_rem_pio2, so that the double version has a chance of working on i386 with extra precision - avoid storing multiple copies of the pi/2 array, since it won't vary - bump major due to removed finite/finitef. although they will be in libc, which anything is linked to, minor bump might be enough ok millert@. tested by sthen@, jsg@, ajacoutot@, kili@, naddy@

18 лет назад
s_trunc.c

Reduce libm's exports and make internal calls go direct. All dependencies on libc are now via reserved/standardized names.

10 лет назад
s_truncf.c

Remove excessive sys/cdefs.h inclusion ok guenther millert kettenis

14 лет назад
w_drem.c

convert to ansi function decl

3 года назад
w_dremf.c

lint prefers ANSI C function definitions if a prototype is available; i can only agree

20 лет назад
w_gamma.c

rcsid[] and sccsid[] and copyright[] are essentially unmaintained (and unmaintainable). these days, people use source. these id's do not provide any benefit, and do hurt the small install media (the 33,000 line diff is essentially mechanical) ok with the idea millert, ok dms

17 лет назад
w_gamma_r.c

rcsid[] and sccsid[] and copyright[] are essentially unmaintained (and unmaintainable). these days, people use source. these id's do not provide any benefit, and do hurt the small install media (the 33,000 line diff is essentially mechanical) ok with the idea millert, ok dms

17 лет назад
w_gammaf.c

rcsid[] and sccsid[] and copyright[] are essentially unmaintained (and unmaintainable). these days, people use source. these id's do not provide any benefit, and do hurt the small install media (the 33,000 line diff is essentially mechanical) ok with the idea millert, ok dms

17 лет назад
w_gammaf_r.c

rcsid[] and sccsid[] and copyright[] are essentially unmaintained (and unmaintainable). these days, people use source. these id's do not provide any benefit, and do hurt the small install media (the 33,000 line diff is essentially mechanical) ok with the idea millert, ok dms

17 лет назад
w_lgamma.c

Reduce libm's exports and make internal calls go direct. All dependencies on libc are now via reserved/standardized names.

10 лет назад
w_lgammaf.c

rcsid[] and sccsid[] and copyright[] are essentially unmaintained (and unmaintainable). these days, people use source. these id's do not provide any benefit, and do hurt the small install media (the 33,000 line diff is essentially mechanical) ok with the idea millert, ok dms

17 лет назад