| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
| |
1.59, 1.60, 1.62, and 1.64, but I left out 1.64.
Reported by: asmodai@
Notes:
svn path=/stable/5/; revision=150068
|
| |
|
|
|
|
|
|
| |
Fix raising the inexact exception (FE_INEXACT) if the result differs from the
argument.
Notes:
svn path=/stable/5/; revision=147275
|
| |
|
|
|
|
|
|
|
| |
More optimized math functions.
Prevent these functions from using stack outside of their frame.
Notes:
svn path=/stable/5/; revision=146848
|
| |
|
|
|
|
|
| |
Prevent these functions from using stack outside of their frame.
Notes:
svn path=/stable/5/; revision=146847
|
| |
|
|
| |
Notes:
svn path=/stable/5/; revision=146069
|
| |
|
|
|
|
|
|
|
|
| |
Add missing prototypes for fma() and fmaf(), and remove an inaccurate
comment.
Approved by: re
Notes:
svn path=/stable/5/; revision=144269
|
| |
|
|
|
|
|
|
|
| |
Work around a gcc bug.
Approved by: re
Notes:
svn path=/stable/5/; revision=144268
|
| |
|
|
|
|
|
|
|
| |
Markup nits.
Original revisions by: ru
Notes:
svn path=/stable/5/; revision=142928
|
| |
|
|
| |
Notes:
svn path=/stable/5/; revision=142865
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Add and document ilogbl(), a long double version of ilogb().
MFC Makefile,v 1.55
Hook up and document floorl().
MFC Makefile,v 1.56
Implement and document ceill().
MFC Makefile,v 1.59
Add fma() and fmaf(), which implement a fused multiply-add operation.
MFC Makefile,v 1.60
- Move the functions presently described in in ieee(3) to their own
manpages. They are not very related, so separating them makes it
easier to add meaningful cross-references and extend some of the
descriptions.
- Move the part of math(3) that discusses IEEE 754 to the ieee(3)
manpage.
MFC Makefile,v 1.62
Move machine-dependent crud to its own makefile.
MFC Makefile,v 1.64
Un-document the non-extant exp10() and exp10f() functions.
exp10() was a casualty of the transition away from the VAX.
Notes:
svn path=/stable/5/; revision=142863
|
| |
|
|
|
|
|
|
|
| |
Use hardware instructions for sqrt() and sqrtf().
In RELENG_5, these are called __ieee754_sqrt() and __ieee754_sqrtf().
Notes:
svn path=/stable/5/; revision=142862
|
| |
|
|
|
|
|
| |
amd64 assembly versions of sqrt(), lrint(), and llrint() using SSE2.
Notes:
svn path=/stable/5/; revision=142860
|
| |
|
|
|
|
|
|
|
| |
Remove the float versions of the i387 trig functions obtained from
NetBSD. They're buggy, particularly for inputs larger in
magnitude than 2**63.
Notes:
svn path=/stable/5/; revision=142859
|
| |
|
|
|
|
|
|
|
| |
Remove the i387 versions of atan(), atan2(), and atan2f().
They are slower than the MI routines on modern hardware,
except for degenerate cases such as the Pentium 4.
Notes:
svn path=/stable/5/; revision=142858
|
| |
|
|
|
|
|
|
|
| |
Remove i387 versions of asin() and acos(). Although the hardware
instruction was faster on the 486, it's slower than our MD version on
modern processors.
Notes:
svn path=/stable/5/; revision=142857
|
| |
|
|
|
|
|
|
|
|
|
|
| |
If x == y, return y, not x. C99 (though not IEEE 754) requires that
nextafter(+0.0, -0.0) returns -0.0 and nextafter(-0.0, +0.0) returns +0.0.
MFC s_nextafter.c,v 1.9 s_nextafterf.c,v 1.9
Update comment to reflect the code change in the previous revision.
Notes:
svn path=/stable/5/; revision=142853
|
| |
|
|
|
|
|
|
| |
Use the FP_ILOG macros from <math.h> rather than hardcoded return values.
Also be prepared for FP_ILOGBNAN != INT_MAX.
Notes:
svn path=/stable/5/; revision=142851
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Add and document ilogbl(), a long double version of ilogb().
MFC math.h,v 1.47
Whitespace nit.
MFC math.h,v 1.48
Implement floorl().
MFC math.h,v 1.49
Implement and document ceill().
MFC math.h,v 1.51
Set math_errhandling to MATH_ERREXCEPT. Now that we have fenv.h, we
basically support this, subject to gcc's lack of FENV_ACCESS support.
In any case, the previous setting of math_errhandling to 0 is not
allowed by POSIX.
MFC math.h,v 1.53
Only annotate pure routines with __pure2.
MFC math.h,v 1.54
Add fma() and fmaf(), which implement a fused multiply-add operation.
Notes:
svn path=/stable/5/; revision=142847
|
| |
|
|
|
|
|
| |
Reduce diffs against vendor source (Sun fdlibm 5.3).
Notes:
svn path=/stable/5/; revision=142846
|
| |
|
|
|
|
|
| |
Fixed too many of "the"
Notes:
svn path=/stable/5/; revision=142836
|
| |
|
|
|
|
|
|
|
| |
Scheduled mdoc(7) sweep.
Original revisions by: ru
Notes:
svn path=/stable/5/; revision=142749
|
| |
|
|
| |
Notes:
svn path=/stable/5/; revision=142450
|
| |
|
|
| |
Notes:
svn path=/stable/5/; revision=141453
|
| |
|
|
|
|
|
| |
s/isnormal/isfinite/ so subnormals are rounded correctly.
Notes:
svn path=/stable/5/; revision=140336
|
| |
|
|
|
|
|
| |
Mark all inline asms as volatile.
Notes:
svn path=/stable/5/; revision=140335
|
| |
|
|
|
|
|
| |
Mark all inline asms as volatile.
Notes:
svn path=/stable/5/; revision=140334
|
| |
|
|
|
|
|
| |
Remove unused file.
Notes:
svn path=/stable/5/; revision=140333
|
| |
|
|
|
|
|
|
| |
Add single-precision x86-optimized math routines.
Implement [l]lrint[f]() and [l]lround[f]().
Notes:
svn path=/stable/5/; revision=140332
|
| |
|
|
|
|
|
|
| |
Allow math.h to compile with versions of icc prior to 8.0.
Add MI implementations of [l]lrint[f]() and [l]lround[f]().
Notes:
svn path=/stable/5/; revision=140331
|
| |
|
|
|
|
|
| |
Various content and markup updates.
Notes:
svn path=/stable/5/; revision=140330
|
| |
|
|
|
|
|
| |
Cross reference lrint(3) and lround(3). Whitespace.
Notes:
svn path=/stable/5/; revision=140329
|
| |
|
|
|
|
|
| |
Cross-reference lrint(3) and lround(3).
Notes:
svn path=/stable/5/; revision=140328
|
| |
|
|
|
|
|
| |
Implement [l]lrint[f]() and [l]lround[f]().
Notes:
svn path=/stable/5/; revision=140327
|
| |
|
|
| |
Notes:
svn path=/stable/5/; revision=140276
|
| |
|
|
| |
Notes:
svn path=/stable/5/; revision=136863
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
/lib/{libm,libreadline}
/usr/lib/{libhistory,libopie,libpcap}
Versions of effected files being MFC-ed from commit done to HEAD:
Revision Changes Path
1.367 +15 -0 src/UPDATING
1.10 +1 -1 src/gnu/lib/libreadline/Makefile.inc
1.19 +1 -1 src/lib/libopie/Makefile
1.34 +1 -1 src/lib/libpcap/Makefile
1.52 +1 -0 src/lib/msun/Makefile
Approved by: re (scottl)
Notes:
svn path=/stable/5/; revision=136030
|
| |
|
|
| |
Notes:
svn path=/stable/5/; revision=133968
|
| |
|
|
| |
Notes:
svn path=/head/; revision=133289
|
| |
|
|
|
|
|
|
|
| |
in order to unbreak arm make world. The right way to do it with soft floats
will be figured out later.
Discussed with: das
Notes:
svn path=/head/; revision=133174
|
| |
|
|
|
|
|
|
|
|
| |
libc. The externally-visible effect of this is to add __isnanl() to
libm, which means that libm.so.2 can once again link against libc.so.4
when LD_BIND_NOW is set. This was broken by the addition of fdiml(),
which calls __isnanl().
Notes:
svn path=/head/; revision=133147
|
| |
|
|
| |
Notes:
svn path=/head/; revision=133146
|
| |
|
|
| |
Notes:
svn path=/head/; revision=132760
|
| |
|
|
|
|
|
|
|
|
|
| |
- It was added to libc instead of libm. Hopefully no programs rely
on this mistake.
- It didn't work properly on large long doubles because its argument
was converted to type double, resulting in undefined behavior.
Notes:
svn path=/head/; revision=132382
|
| |
|
|
|
|
|
|
| |
nearbyint(), round() and trunc() shouldn't be visible when compiling with
-D_XOPEN_SOURCE=500.
Notes:
svn path=/head/; revision=132292
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- Unlike the builtin relational operators, builtin floating-point
constants were not available until gcc 3.3, so account for this.[1]
- Apparently some versions of the Intel C Compiler fallaciously define
__GNUC__ without actually being compatible with the claimed gcc
version. Account for this, too.[2]
[1] Noticed by: Christian Hiris <4711@chello.at>
[2] Submitted by: Alexander Leidinger <Alexander@Leidinger.net>
Notes:
svn path=/head/; revision=132246
|
| |
|
|
|
|
|
| |
needed as of math.h v1.40, and its prototype is incorrect here.
Notes:
svn path=/head/; revision=131865
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
isnormal() the hard way, rather than relying on fpclassify(). This is
a lose in the sense that we need a total of 12 functions, but it is
necessary for binary compatibility because we have never bumped libm's
major version number. In particular, isinf(), isnan(), and isnanf()
were BSD libc functions before they were C99 macros, so we can't
reimplement them in terms of fpclassify() without adding a dependency
on libc.so.5. I have tried to arrange things so that programs that
could be compiled in FreeBSD 4.X will generate the same external
references when compiled in 5.X. At the same time, the new macros
should remain C99-compliant.
The isinf() and isnan() functions remain in libc for historical
reasons; however, I have moved the functions that implement the macros
isfinite() and isnormal() to libm where they belong. Moreover,
half a dozen MD versions of isinf() and isnan() have been replaced
with MI versions that work equally well.
Prodded by: kris
Notes:
svn path=/head/; revision=131852
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
builtins are available: HUGE_VAL, HUGE_VALF, HUGE_VALL, INFINITY,
and NAN. These macros now expand to floating-point constant
expressions rather than external references, as required by C99.
Other compilers will retain the historical behavior. Note that
it is not possible say, e.g.
#define HUGE_VAL 1.0e9999
because the above may result in diagnostics at translation time
and spurious exceptions at runtime. Hence the need for compiler
support for these features.
Also use builtins to implement the macros isgreater(),
isgreaterequal(), isless(), islessequal(), islessgreater(),
and isunordered() when such builtins are available.
Although the old macros are correct, the builtin versions
are much faster, and they avoid double-expansion problems.
Notes:
svn path=/head/; revision=131851
|
| |
|
|
|
|
|
|
|
|
| |
These trivial implementations are about 25 times slower than
rint{,f}() on x86 due to the FP environment save/restore.
They should eventually be redone in terms of fegetround() and
bit fiddling.
Notes:
svn path=/head/; revision=131676
|
| |
|
|
| |
Notes:
svn path=/head/; revision=131539
|