summaryrefslogtreecommitdiff
path: root/lib/libm
AgeCommit message (Collapse)Author
2017-01-21Nuke whitespace foolish enough to expose itself during the greatKenneth R Westerback
"warning:" rectification.
2017-01-20Implement gcc suggestion of extra parentheses. No functional change.Kenneth R Westerback
ok guenther@
2017-01-11Add support for AArch64. Based on FreeBSD's msun header, modifiedPatrick Wildt
to look and feel like our code.
2016-12-22copysign and copysignf are used within libm, so declare them accordingly.Christian Weisgerber
Required if the compiler doesn't replace them with builtins (e.g. clang on amd64). ok kettenis@ guenther@ i386 sync requested by guenther@
2016-09-12Reduce libm's exports and make internal calls go direct.Philip Guenther
All dependencies on libc are now via reserved/standardized names. ok kettenis@ millert@ deraadt@
2016-09-12Per fpclassify(3): isinff(), isnanf(), finite(), and finitef() are deprecatedPhilip Guenther
in favor of isinf(), isnan(), and isfinite(). ok tb@ martynas@
2016-09-12Use fe*() routines from <fenv.h> instead of fp*() routines from <ieeefp.h>Philip Guenther
ok tb@ martynas@
2016-09-01remove references to sparcTed Unangst
2016-09-01retire the sparc library codeTed Unangst
2016-06-01Use \(mi instead of - for the mathematical minus sign as recommended byTheo Buehler
mandoc_char(7). While there, use some spacing around the arithmetic operations to make the more complicated formulas a bit easier to read. looks good to kettenis, no objection from schwarze
2016-05-12more hppa64 cleaningTheo de Raadt
2016-05-11remove hppa64 port, which we never got going beyond broken single users.Theo de Raadt
hppa reverse-stack gives us a valuable test case, but most developers don't have a 2nd one to proceed further with this. ok kettenis
2016-04-27minor cleanup;Jason McIntyre
2016-04-26Remove predefined strings from libm pages.Theo Buehler
With lots of help, input and tweaks and finally ok schwarze@
2016-03-30for some time now mandoc has not required MLINKS to functionJason McIntyre
correctly - logically complete that now by removing MLINKS from base; authors need only to ensure there is an entry in NAME for any function/ util being added. MLINKS will still work, and remain for perl to ease upgrades; ok nicm (curses) bcook (ssl) ok schwarze, who provided a lot of feedback and assistance ok tb natano jung
2016-03-12Fix markup problem introduced in the previous commit. Solution andtb
explanations provided by schwarze@.
2016-03-10Remove VAX-specific bits of libm manpages.tb
ok jmc@
2016-03-10no need for SUBDIR now that vax is gone; ok deraadtJason McIntyre
2016-03-10remove Xr to infnan, a trickily hidden (from me anyway) vax page;Jason McIntyre
2016-03-10more pieces of vaxTheo de Raadt
2016-03-09We are done providing support for the vax.Theo de Raadt
lots of agreement.
2015-12-18Fix wrong answer if the imaginary part is zero.Alexandr Shadchin
NetBSD also turn off this piece of code. ok tb@
2015-12-18Fix behavior csqrt, should beAlexandr Shadchin
csqrt(conj(z)) == conj(csqrt(z)) Before csqrt(-4.0 + -0.0i) = 0.0 + 2.0j but should be csqrt(-4.0 + -0.0i) = 0.0 - 2.0j ok tb@, also discussed with daniel@
2015-11-10update NAME section to include all documented functions,Jason McIntyre
or otherwise change Dt to reflect the name of an existing function; feedback/ok schwarze
2015-11-06From FreeBSD 23397:Alexandr Shadchin
Fixed wrong magic numbers in scaling. hypotf() was very broken for large and small values: hypotf(2.3819765e+38, 2.0416943e+38) was NaN instead of 3.1372484e+38 hypotf(-3.4028235e+38, 3.3886450e+38) was NaN instead of Inf hypotf(-2.8025969e-45, -2.8025969e-45) was 0 instead of 4.2038954e-45 Found by: ucbtest ok miod@
2015-09-18Move s_signgam.c to PURE_SRCS, so that it also gets built on vax.Miod Vallat
2015-09-14use .Va for global variables, and .Vt where the type is includedIngo Schwarze
2015-08-20Avoid left-shifting a negative integer, which is undefined. ReplaceChristian Weisgerber
it with the intended value, in a defined way. From FreeBSD (Dimitry Andric). ok miod@ deraadt@ kettenis@
2015-08-12fix a case where ceill() returns 1.0L: in the x86 extended precision formatChristian Weisgerber
the fraction part has no implicit bit ok deraadt@
2015-07-19Make exponents of x and y signed and fix esx and esyMartynas Venckus
comparisons. The offending input in gfortran's round_4.f90 was nextafterl(0.10000000000000000000135525271560688L, -INFINITY) which caused an ulp addition rather than subtraction. Reported by John Marino @ DragonFlyBSD.
2015-07-16Adapt previous to extended-precision, and fix single-precision constants.Martynas Venckus
2015-07-16Signs of cacosh/cacoshf were not always correct (e.g., -1.1 -1.1i),Martynas Venckus
as found by fortran regression tests. Also added some complex regression tests for cacosh, casinh, catanh. Reported by John Marino @ DragonFlyBSD.
2015-01-22Fix logic botch causing warnings with Clang. Reported by dhill, matchesMiod Vallat
similar changes in FreeBSD a few years ago.
2015-01-22Possibly uninitialized variable. From Clang via dhill.Miod Vallat
2015-01-20Missing $OpenBSD$'s.Kenneth R Westerback
ok deraadt@
2015-01-15remove .Tn; from Jan Stary <hans at stare dot cz>Ingo Schwarze
2014-09-12Provide a sparc64 version of sqrtl(3) that simply calls _Qp_sqrt.Mark Kettenis
The generic sqrtl(3) is not nearly accurate enough for quad-precision floating point.
2014-07-21Switch from <sys/endian.h> or <machine/endian.h> to the new,Philip Guenther
being-standardized <endian.h> ok deraadt@ millert@ beck@
2014-06-05Extended precision floating-point numbers have an explicit integer part bit.Mark Kettenis
Correctly account for this bit, otherwise we'll get the wrong result for some inputs. ok martynas@, daniel@
2014-06-02Make sure STRICT_ASSIGN handles double as well. From FreeBSD, where theMark Kettenis
commit messages that fixes this says: "it was intentionally left broken as an optimization". right! ok martynas@, daniel@
2014-04-18It's been a quarter century: we can assume volatile is present with that name.Philip Guenther
2014-03-18Retire hp300, mvme68k and mvme88k ports. These ports have no users, keepingMiod Vallat
this hardware alive is becoming increasingly difficult, and I should heed the message sent by the three disks which have died on me over the last few days. Noone sane will mourn these ports anyway. So long, and thanks for the fish.
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