| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
| |
FP_ILOGBNAN which isn't the case for the amd64 and i386 assembly versions.
Drop these in favour of C implementations. Als reimplement ilogbl(3)
by providing separate ld80 and ld128 implementations that replace the
existing implementation which may hit an infinite loop when built for
quad-precision long double.
ok patrick@, gkoehler@
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
| |
ok deraadt@
|
|
|
|
|
|
|
| |
a cloning a non-standard, long double function which _is_ used from the
matching plain double function
build failured pointed out by deraadt@
|
|
|
|
|
|
| |
'weak' in the static libm.a
ok deraadt@
|
|
|
|
| |
ok deraadt@
|
|
|
|
|
|
|
| |
extensions and modern compilers (such as clang) will use them to optimize
separate calculations of sine and cosine.
ok tom@, patrick@, deraadt@, jmc@
|
|
|
|
| |
"warning:" rectification.
|
|
|
|
| |
ok guenther@
|
|
|
|
|
|
| |
All dependencies on libc are now via reserved/standardized names.
ok kettenis@ millert@ deraadt@
|
|
|
|
|
|
| |
in favor of isinf(), isnan(), and isfinite().
ok tb@ martynas@
|
|
|
|
| |
ok tb@ martynas@
|
|
|
|
|
|
| |
NetBSD also turn off this piece of code.
ok tb@
|
|
|
|
|
|
|
|
|
|
|
| |
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@
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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@
|
|
|
|
|
| |
it with the intended value, in a defined way. From FreeBSD (Dimitry Andric).
ok miod@ deraadt@ kettenis@
|
|
|
|
|
| |
the fraction part has no implicit bit
ok deraadt@
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
| |
as found by fortran regression tests. Also added some complex
regression tests for cacosh, casinh, catanh.
Reported by John Marino @ DragonFlyBSD.
|
|
|
|
| |
similar changes in FreeBSD a few years ago.
|
| |
|
|
|
|
| |
ok deraadt@
|
|
|
|
|
|
| |
being-standardized <endian.h>
ok deraadt@ millert@ beck@
|
|
|
|
|
|
|
| |
Correctly account for this bit, otherwise we'll get the wrong result for some
inputs.
ok martynas@, daniel@
|
|
|
|
|
|
|
|
|
|
| |
commit messages that fixes this says:
"it was intentionally left broken as an optimization".
right!
ok martynas@, daniel@
|
|
|
|
| |
Reported by dcoppa@, thanks! OK kettenis@, dcoppa@.
|
|
|
|
| |
ok martynas
|
|
|
|
| |
the underflow.
|
|
|
|
| |
redeclaring each time in ld{80,128}. Pointed out by theo.
|
| |
|
| |
|
|
|
|
| |
ok martynas@
|
|
|
|
|
|
|
|
|
|
|
| |
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@
|
|
|
|
|
|
| |
-> test becomes meaningful on vax
No actual change, no bump
okay martynas@
|
|
|
|
|
|
|
|
|
|
|
| |
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@.
|
|
|
|
| |
and a few empty files for lint to chew on.
|
|
|
|
| |
ok guenther millert kettenis
|
| |
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
former anymore. OK miod@.
|
|
|
|
| |
infinite.
|
|
|
|
|
|
| |
- 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.
|
|
|
|
| |
where appropriate, to avoid precision loss.
|
| |
|
| |
|
| |
|
|
|
|
|
| |
entries and unused implementations. It is clear that this situation
won't change.
|
|
|
|
|
| |
on this historical behavior; so we're stuck in this stupid situation.
No cookie for me.
|