| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
| |
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.
|
|
|
|
| |
extended-precision support. Mostly from Cephes.
|
|
|
|
| |
them in libc for a very long time. OK guenther@.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
commit, and deal with problems (if any) in tree.
Note that this adds the following functions. Ports with hacks might
need adjustments.
nexttoward(3), fma(3), nexttowardf(3), fmaf(3), acoshl(3), asinhl(3),
atanhl(3), coshl(3), sinhl(3), tanhl(3), expl(3), expm1l(3), logl(3),
log10l(3), log1pl(3), log2l(3), modfl(3), cbrtl(3), hypotl(3),
powl(3), erfl(3), erfcl(3), lgammal(3), tgammal(3), ceill(3),
floorl(3), lrintl(3), llrintl(3), roundl(3), lroundl(3), llroundl(3),
truncl(3), fmodl(3), remainderl(3), remquol(3), nextafterl(3),
nexttowardl(3), fmal(3).
With this commit, our library implements all functionality required
by C99. Documentation bits will follow.
|
|
|
|
|
|
|
|
| |
should be 96-bits on 32-bit architectures, and 128-bits on 64-bit
architectures.
- Add abstract macros to operate on long doubles by words. To be
used soon.
|
|
|
|
|
| |
x+x*x, as a result sign got lost for the zero inputs. Explicitly
return in this case, similarly like has been done in tanh.
|
|
|
|
| |
float arguments.
|
|
|
|
|
| |
x+x*x, as a result sign got lost for the input of -0. Explicitly
return negative zero in this case. Found by Cephes.
|
|
|
|
|
|
|
| |
database on platforms without extended-precision floating-point
support.
Seems like a reasonable approach to millert@.
|
| |
|