summaryrefslogtreecommitdiff
path: root/lib/libm
AgeCommit message (Collapse)Author
2018-03-16improve markup quality in the cases found by the new "--" style messageIngo Schwarze
2018-03-16Since most (if not all) ARMv8 hardware doesn't actually support trapping ofMark Kettenis
floating-point exceptions, simplify the functions that control the exception masks just like we did on armv7. ok tom@
2018-03-12Gah, rintl() is used internally, so add a macro for the fourth possiblity,Philip Guenther
a cloning a non-standard, long double function which _is_ used from the matching plain double function build failured pointed out by deraadt@
2018-03-12Make the binding of rintl, significand, and significandf consistentlyPhilip Guenther
'weak' in the static libm.a ok deraadt@
2018-03-12Add cvs tag, copyright, and licensePhilip Guenther
2018-03-12Fix build of sincosl on machines where long double == doublePhilip Guenther
ok deraadt@
2018-03-10Implement sicos(3), sincosf(3) and sincosl(3). These functions are commonMark Kettenis
extensions and modern compilers (such as clang) will use them to optimize separate calculations of sine and cosine. ok tom@, patrick@, deraadt@, jmc@
2018-02-28Remove CFLAGS+=-mfloat-abi=softfp that I accidentally committed.Mark Kettenis
2018-02-28Change floating-point mode/environment control functions to operate onMark Kettenis
both the hardfloat (FPU registers) and softfloat (software) state. This makes these functions work correctly when mixing hardfloat and softfloat code. Disable trapping for softfloat since most (if not all) ARMv7 and ARMv8 hardware that is on the market doesn't support trapping of floating-point exceptions. ok patrick@
2018-02-05Constants which can go into .rodataTheo de Raadt
2017-09-27Xr; from jan staryJason McIntyre
2017-08-26For exceptional cases of mathematical formulae that can't reasonablyIngo Schwarze
be represented otherwise, use eqn(7). Idea originally from bentley@, feedback and OK bentley@, OK tb@, and no objection from jmc@.
2017-08-19Use 0xcc trapsleds instead of default/nop/0xcc in BTC alignmentsTheo de Raadt
don't bother with .text before ENTRY()
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.