summaryrefslogtreecommitdiff
path: root/lib/libm
AgeCommit message (Collapse)Author
2014-02-11Make floor round to integral value less than x, when x is tiny.Martynas Venckus
Reported by dcoppa@, thanks! OK kettenis@, dcoppa@.
2013-11-22unsigned char casts for ctype macrosTheo de Raadt
ok martynas
2013-11-12Trick the compiler that volatile temporary is used while raisingMartynas Venckus
the underflow.
2013-11-12Declare __p1evll and __polevll protos in math_private.h instead ofMartynas Venckus
redeclaring each time in ld{80,128}. Pointed out by theo.
2013-11-12Add parentheses around comparison in operand of ^. Pointed out by theo.Martynas Venckus
2013-11-12Add explicit braces to avoid ambiguous else. Pointed out by theo.Martynas Venckus
2013-11-03NaN -> \*(NaMartynas Venckus
{infinity, inf} -> \*(If OK jmc@
2013-08-14no longer any need to quote macro lines with >9 args;Jason McIntyre
From: Jan Stary
2013-08-13Switch time_t, ino_t, clock_t, and struct kevent's ident and dataPhilip Guenther
members to 64bit types. Assign new syscall numbers for (almost all) the syscalls that involve the affected types, including anything with time_t, timeval, itimerval, timespec, rusage, dirent, stat, or kevent arguments. Add a d_off member to struct dirent and replace getdirentries() with getdents(), thus immensely simplifying and accelerating telldir/seekdir. Build perl with -DBIG_TIME. Bump the major on every single base library: the compat bits included here are only good enough to make the transition; the T32 compat option will be burned as soon as we've reached the new world are are happy with the snapshots for all architectures. DANGER: ABI incompatibility. Updating to this kernel requires extra work or you won't be able to login: install a snapshot instead. Much assistance in fixing userland issues from deraadt@ and tedu@ and build assistance from todd@ and otto@
2013-08-07Document lgamma_r, lgammaf_r, and lgammal_r.Todd C. Miller
Prodded by espie@, OK martynas@
2013-08-07simple inaccurate implementation of lrint* functions on vax, just soMarc Espie
we have them. Compiles on vax. okay martynas@
2013-08-06scalbnf on vax, okay miod@Marc Espie
2013-08-05tgamma(+-0) == +-InfMark Kettenis
ok martynas@
2013-08-02Fix a couple of corner cases in the implementation of pow(3) to make itMark Kettenis
compatible with C99. Most notably: - 1**y == 1, even if y is NaN - (-1)**+-Inf == 1 and adjust the cephes testsuite to test for the right thing here. ok martynas@
2013-07-17more library historyIngo Schwarze
facts checked by sobrado@ style tweaks and ok jmc@
2013-07-15Fix atan2f() and hypotf() by actually converting both their arguments to theMiod Vallat
larger type and passing them both the the double routine.
2013-07-15use some generic code on vax, to do round/roundf/scalbln...Marc Espie
suggested by martynas@ okay miod@ (just rearranges the !vax makefile, no compile change there)
2013-07-15use atan2f to add atanfMarc Espie
okay martynas@
2013-07-15bring reference C code that's not compiled in synch with asm codeMarc Espie
okay martynas@
2013-07-15add some missing asm functions to vax: long double as aliases to double,Marc Espie
and float functions by cvtfd/cvtdf (like in netbsd) scalbnf will have to wait, as it's more complicated... brings vax in line with the rest. okay miod@/martynas@
2013-07-05VAX ELF userland bits. Consists mostly of register prefix additions.Miod Vallat
2013-07-05... and gain rintf by using the same technique, along with aliases forMarc Espie
ceill/floorl okay martynas@, checked for build by miod@ as well. (note that these don't require bumps, as vax has no shared libraries...)
2013-07-05implement floorf and ceilf: same technique as floor and ceil, just withMarc Espie
appropriate constant to the mantissa size (and document what L is along the way). okay martynas@, tested by miod@ for results
2013-07-03reorganize NOIEEE_SRCS so that files not compiled on vax becauseMarc Espie
of assembly version are obvious. Move cproj/cprojf to the PURE club, as the asm support code provides copysignf okay martynas@
2013-07-03with DBL vs LDBL fixed, tedu some source in noieee which is actually theMarc Espie
same as code in generic src. introduce PURE_SRCS for completely MI math code. okau martynas@
2013-07-03test LDBL_MANT_DIG == DBL_MANT_DIG instead of hardcoding 53.Marc Espie
-> test becomes meaningful on vax No actual change, no bump okay martynas@
2013-06-05use fancy .In macro for includes. from Jan Klemkow. ok jmc schwarzeTed Unangst
2013-03-28Switch libc and libm to use strong aliases rather than weak aliasesMartynas Venckus
where appropriate. Among other things makes the symbols consistent across all architectures (notably where ldbl mantissa is 53 bits). While at it, kill unused LINTLIBRARY/PROTOLIB1 cruft which was there to trick lint into recording the right prototypes for aliased functions. Most of the work done at the awesome n2k13 hackathon. Agreed by kettenis@, guenther@, matthew@.
2013-02-02Userland bits for m68k/ELF. Mostly addition of register prefixes to theMiod Vallat
assembler instructions, and cope with the few changes in return values location.
2013-01-13Get rid of the very ugly lint workarounds: LINTLIBRARY, PROTOLIB,Martynas Venckus
and a few empty files for lint to chew on.
2013-01-05Switch m88k ports to ELF.Miod Vallat
2012-12-30Provide proper ldexp{f,l} aliases to scalbn{f,l} to match the MI (ld80) code.Miod Vallat
2012-12-05Remove excessive sys/cdefs.h inclusionTheo de Raadt
ok guenther millert kettenis
2012-09-15m88k does not have the m68k long double type actually (long double == doubleMiod Vallat
on this platform), so don't pretend it does, and don't build long double libm routines.
2012-09-04remove lint leftovers; ok guenther@Okan Demirmen
2012-08-23Aliases for extended precision were missed on a few functions on hppa.Martynas Venckus
Reported by Brad, thanks!
2012-08-19Fix ranges in the method description.Martynas Venckus
2012-08-02remove leftover NOLINT, WANTLINT, LINTFLAGS, LOBJ vars and lint targets.Okan Demirmen
ok guenther@
2012-02-26Fix several manpage titles, from Lawrence Teo.Christiano F. Haesbaert
ok dcoppa@ jmc@ schwarze@.
2012-01-14many ways to get a log2... clue newbs.Marc Espie
okay jmc@
2011-12-24formatting errors, found using freebsd's "igor";Jason McIntyre
2011-12-23some spelling fixes, found using freebsd's "igor" document verifier;Jason McIntyre
2011-09-22install infnan(3/VAX) into man3/vax/ on all archs;Ingo Schwarze
clean make build tested on i386; ok deraadt@, no objections from martynas@
2011-09-03make -column lists pretty again;Jason McIntyre
specifically, rewrite them to permit some markup in the column headers, and use "Ta" instead of literal tabs; mandoc does not currently match groff 100%, but a mandoc fix may be some time off, and we've gone enough releases with poorly formatting column lists. in some cases i have rewritten the lists as -tag, where -column made little sense.
2011-08-19Bring libc and libm in line with the compiler now that we no longer have aMark Kettenis
128-bit long double. Diff committed on behalf of martynas@
2011-07-26At some point we've switched to the VFP floating-point--unlike FPAMartynas Venckus
it actually stores floats in natural-endian--therefore the existing checks became wrong. Take into account __VFP_FP__, effectively bringing back the old behavior. This way it will work now, and in the future when some of our platforms are switched to FPA, where it's much faster.
2011-07-26__arm32__ -> __arm__, since our new compiler isn't defining theMartynas Venckus
former anymore. OK miod@.
2011-07-25Make huge constants actually long, so they don't overflow and becomeMartynas Venckus
infinite.
2011-07-24tweak previous;Jason McIntyre
2011-07-24Document fma, fmaf, fmal, nexttoward, nexttowardf, nexttowardl.Martynas Venckus