| Age | Commit message (Collapse) | Author | Files | Lines | |
|---|---|---|---|---|---|
| 2019-10-30 | Fix declaration of S1 by swapping misplaced ',' and ';'. | 1 | -2/+2 | ||
| This is inside !(defined(__amd64__) || defined(__i386__)), while the file is only used on those two architectures. "Free commit! No strings attached! No hidden tricks!" from miod | |||||
| 2019-04-01 | repair confusing "} if" indentation as suggested by deraadt@ | 2 | -2/+4 | ||
| 2019-03-15 | Remove FBSDID. | 2 | -8/+2 | ||
| ok deraadt@ | |||||
| 2018-03-12 | Gah, rintl() is used internally, so add a macro for the fourth possiblity, | 1 | -1/+1 | ||
| 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-12 | Make the binding of rintl, significand, and significandf consistently | 1 | -1/+1 | ||
| 'weak' in the static libm.a ok deraadt@ | |||||
| 2018-03-12 | Fix build of sincosl on machines where long double == double | 1 | -1/+2 | ||
| ok deraadt@ | |||||
| 2018-03-10 | Implement sicos(3), sincosf(3) and sincosl(3). These functions are common | 7 | -0/+539 | ||
| extensions and modern compilers (such as clang) will use them to optimize separate calculations of sine and cosine. ok tom@, patrick@, deraadt@, jmc@ | |||||
| 2017-01-21 | Nuke whitespace foolish enough to expose itself during the great | 14 | -28/+28 | ||
| "warning:" rectification. | |||||
| 2017-01-20 | Implement gcc suggestion of extra parentheses. No functional change. | 1 | -2/+2 | ||
| ok guenther@ | |||||
| 2016-09-12 | Reduce libm's exports and make internal calls go direct. | 161 | -356/+324 | ||
| All dependencies on libc are now via reserved/standardized names. ok kettenis@ millert@ deraadt@ | |||||
| 2016-09-12 | Per fpclassify(3): isinff(), isnanf(), finite(), and finitef() are deprecated | 6 | -13/+13 | ||
| in favor of isinf(), isnan(), and isfinite(). ok tb@ martynas@ | |||||
| 2016-09-12 | Use fe*() routines from <fenv.h> instead of fp*() routines from <ieeefp.h> | 1 | -10/+11 | ||
| ok tb@ martynas@ | |||||
| 2015-12-18 | Fix wrong answer if the imaginary part is zero. | 3 | -3/+9 | ||
| NetBSD also turn off this piece of code. ok tb@ | |||||
| 2015-12-18 | Fix behavior csqrt, should be | 3 | -6/+6 | ||
| 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-06 | From FreeBSD 23397: | 1 | -7/+7 | ||
| 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-08-20 | Avoid left-shifting a negative integer, which is undefined. Replace | 1 | -3/+3 | ||
| it with the intended value, in a defined way. From FreeBSD (Dimitry Andric). ok miod@ deraadt@ kettenis@ | |||||
| 2015-08-12 | fix a case where ceill() returns 1.0L: in the x86 extended precision format | 1 | -1/+1 | ||
| the fraction part has no implicit bit ok deraadt@ | |||||
| 2015-07-19 | Make exponents of x and y signed and fix esx and esy | 1 | -4/+5 | ||
| 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-16 | Adapt previous to extended-precision, and fix single-precision constants. | 1 | -2/+2 | ||
| 2015-07-16 | Signs of cacosh/cacoshf were not always correct (e.g., -1.1 -1.1i), | 2 | -4/+4 | ||
| as found by fortran regression tests. Also added some complex regression tests for cacosh, casinh, catanh. Reported by John Marino @ DragonFlyBSD. | |||||
| 2015-01-22 | Fix logic botch causing warnings with Clang. Reported by dhill, matches | 2 | -12/+12 | ||
| similar changes in FreeBSD a few years ago. | |||||
| 2015-01-22 | Possibly uninitialized variable. From Clang via dhill. | 1 | -1/+1 | ||
| 2015-01-20 | Missing $OpenBSD$'s. | 1 | -0/+1 | ||
| ok deraadt@ | |||||
| 2014-07-21 | Switch from <sys/endian.h> or <machine/endian.h> to the new, | 3 | -8/+6 | ||
| being-standardized <endian.h> ok deraadt@ millert@ beck@ | |||||
| 2014-06-05 | Extended precision floating-point numbers have an explicit integer part bit. | 1 | -11/+10 | ||
| Correctly account for this bit, otherwise we'll get the wrong result for some inputs. ok martynas@, daniel@ | |||||
| 2014-06-02 | Make sure STRICT_ASSIGN handles double as well. From FreeBSD, where the | 1 | -2/+2 | ||
| commit messages that fixes this says: "it was intentionally left broken as an optimization". right! ok martynas@, daniel@ | |||||
| 2014-02-11 | Make floor round to integral value less than x, when x is tiny. | 2 | -6/+8 | ||
| Reported by dcoppa@, thanks! OK kettenis@, dcoppa@. | |||||
| 2013-11-22 | unsigned char casts for ctype macros | 1 | -3/+3 | ||
| ok martynas | |||||
| 2013-11-12 | Trick the compiler that volatile temporary is used while raising | 3 | -0/+12 | ||
| the underflow. | |||||
| 2013-11-12 | Declare __p1evll and __polevll protos in math_private.h instead of | 10 | -27/+30 | ||
| redeclaring each time in ld{80,128}. Pointed out by theo. | |||||
| 2013-11-12 | Add parentheses around comparison in operand of ^. Pointed out by theo. | 2 | -10/+10 | ||
| 2013-11-12 | Add explicit braces to avoid ambiguous else. Pointed out by theo. | 10 | -18/+27 | ||
| 2013-08-05 | tgamma(+-0) == +-Inf | 1 | -1/+3 | ||
| ok martynas@ | |||||
| 2013-08-02 | Fix a couple of corner cases in the implementation of pow(3) to make it | 3 | -9/+15 | ||
| 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-03 | test LDBL_MANT_DIG == DBL_MANT_DIG instead of hardcoding 53. | 69 | -171/+171 | ||
| -> test becomes meaningful on vax No actual change, no bump okay martynas@ | |||||
| 2013-03-28 | Switch libc and libm to use strong aliases rather than weak aliases | 71 | -107/+107 | ||
| 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-01-13 | Get rid of the very ugly lint workarounds: LINTLIBRARY, PROTOLIB, | 74 | -524/+33 | ||
| and a few empty files for lint to chew on. | |||||
| 2012-12-05 | Remove excessive sys/cdefs.h inclusion | 84 | -175/+37 | ||
| ok guenther millert kettenis | |||||
| 2012-08-19 | Fix ranges in the method description. | 1 | -5/+5 | ||
| 2011-07-26 | At some point we've switched to the VFP floating-point--unlike FPA | 1 | -3/+3 | ||
| 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 the | 1 | -4/+4 | ||
| former anymore. OK miod@. | |||||
| 2011-07-25 | Make huge constants actually long, so they don't overflow and become | 2 | -26/+26 | ||
| infinite. | |||||
| 2011-07-20 | - Make constants const. | 14 | -50/+50 | ||
| - 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-20 | For intermediate computations use single or extended counterparts | 16 | -50/+49 | ||
| where appropriate, to avoid precision loss. | |||||
| 2011-07-19 | Typo. | 1 | -1/+1 | ||
| 2011-07-09 | Make the zero condition properly raise the exception and return. | 1 | -1/+2 | ||
| 2011-07-09 | Don't reimplement the same thing twice. OK matthew@. | 1 | -30/+1 | ||
| 2011-07-08 | Remove the stupid commented out fabs(3), frexp(3), and modf(3) | 3 | -187/+0 | ||
| entries and unused implementations. It is clear that this situation won't change. | |||||
| 2011-07-08 | Revert (leaving the complex math part alone). Some stuff is depending | 2 | -2/+0 | ||
| on this historical behavior; so we're stuck in this stupid situation. No cookie for me. | |||||
| 2011-07-08 | Finalize work on complex math routines, now that we have the | 44 | -23/+1805 | ||
| extended-precision support. Mostly from Cephes. | |||||
