summaryrefslogtreecommitdiff
path: root/lib/libm
AgeCommit message (Collapse)Author
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
2011-07-21sundry tweakage;Jason McIntyre
2011-07-20- Make constants const.Martynas Venckus
- 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.
2011-07-20For intermediate computations use single or extended counterpartsMartynas Venckus
where appropriate, to avoid precision loss.
2011-07-20Document complex math library.Martynas Venckus
2011-07-19Typo.Martynas Venckus
2011-07-11Remove the GCC2 optimizer workaround for sparc. After switchingMartynas Venckus
to GCC4 it doesn't generate broken code anymore. From Brad. Tested and verified by myself.
2011-07-09- Fix the cabs, and cabsf prototypes in the manual pages; it'sMartynas Venckus
been C99 complex (not struct complex) for couple of years. - Remove BUGS section; cabs is finally prototyped in complex.h. - Also document cabsl.
2011-07-09Switch to the SSE code. OK mikeb@.Martynas Venckus
2011-07-09Make the zero condition properly raise the exception and return.Martynas Venckus
2011-07-09Don't reimplement the same thing twice. OK matthew@.Martynas Venckus
2011-07-08Move fabs(3) manual page from libm to libc, for consistency. TheMartynas Venckus
modf(3), frexp(3), ldexp(3), fpclassify(3) pages are in libc, too.
2011-07-08Remove the stupid commented out fabs(3), frexp(3), and modf(3)Martynas Venckus
entries and unused implementations. It is clear that this situation won't change.
2011-07-08Revert (leaving the complex math part alone). Some stuff is dependingMartynas Venckus
on this historical behavior; so we're stuck in this stupid situation. No cookie for me.
2011-07-08Finalize work on complex math routines, now that we have theMartynas Venckus
extended-precision support. Mostly from Cephes.
2011-07-08Move fabs(3), frexp(3), and modf(3) to libm--nothing has been usingMartynas Venckus
them in libc for a very long time. OK guenther@.