summaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* Especially mention that setting errno to EINVAL in "no conversion" caseache2005-01-222-4/+8
| | | | | | is not portable. Asked by: joerg
* Add fma() and fmaf(), which implement a fused multiply-add operation.das2005-01-228-3/+412
|
* Replace the ldexp() implementation in libc with a renamed copy of thedas2005-01-226-739/+123
| | | | | | | | | | | | | | | | scalbn() implementation from libm. (The two functions are defined to be identical, but ldexp() lives in libc for backwards compatibility.) The old ldexp() implementation... - was more complicated than this one - set errno instead of raising FP exceptions - got some corner cases wrong (e.g. ldexp(1.0, 2000) in round-to-zero mode) The new implementation lives in libc/gen instead of libc/$MACHINE_ARCH/gen, since we don't need N copies of a machine-independent file. The amd64 and i386 platforms retain their fast and correct MD implementations and override this one.
* Fixed xrefs.ru2005-01-211-1/+1
|
* Fixed punctuation in xrefs.ru2005-01-212-3/+3
|
* Whitespace/style tweaking of prev. commit.ache2005-01-216-24/+18
| | | | Noted by: bde
* Reflect the reality; only crypt(3) uses /etc/auth.confru2005-01-211-1/+1
| | | | for the time being.
* Fixed xref.ru2005-01-213-4/+4
|
* Fixed xrefs.ru2005-01-211-3/+3
|
* POSIX says that 0[xX] prefix is _optional_ even in base 16 case, make itache2005-01-216-6/+30
| | | | | | | | | | really so. "If the value of base is 16, the characters 0x or 0X may optionally precede the sequence of letters and digits, following the sign if present." Found by: joerg
* Sort sections.ru2005-01-20104-816/+816
|
* Support 'CE' records in Rockridge extensionskientzle2005-01-201-59/+155
| | | | | (specifies that record is extended elsewhere on the disk).
* Cut out the gordian handling of subnormals by bit fiddling, anddas2005-01-181-128/+15
| | | | | | | | | | instead use the FPU to convert subnormals to normals. (NB: Further simplification is possible, such as using the FPU for the rounding step.) This fixes a bug reported by stefanf where long double subnormals in the Intel 80-bit format would be output with one fewer digit than necessary when the default precision was used.
* Correct the values of FLT_ROUNDS for the FE_UPWARD and FE_DOWNWARD cases.das2005-01-181-2/+2
|
* Implement a custom print formatter (archive_string_vsprintf)kientzle2005-01-164-14/+90
| | | | | | | | | | | | | | for libarchive error messages. Mostly, this avoids a portability headache related to copying va_list arguments (some FreeBSD 5 platforms require va_copy; FreeBSD 4 doesn't support va_copy at all). It also dramatically reduces the size of libarchive for embedded applications: a minimal "untar" program using libarchive can now be under 64k statically linked (as opposed to ~100k using library *printf() functions). MFC after: 14 days
* Use the \*(If string provided by mdoc(7), to represent infinity.ru2005-01-162-18/+11
|
* Removed redundant .br call.ru2005-01-161-1/+0
|
* Standardize 2 error messages: start with lowercase letter.charnier2005-01-161-2/+2
|
* Removed empty line.ru2005-01-151-1/+0
|
* Eliminate macro calls inside literal displays.ru2005-01-154-5/+5
|
* Fixed markup bug.ru2005-01-151-10/+22
|
* Markup: convert a display to a list.ru2005-01-151-10/+19
|
* Markup style.ru2005-01-152-6/+2
|
* Add a file missed in the previous commit:das2005-01-151-0/+5
| | | | | | Eliminate gdtoa.mk and move its contents to ${MACHINE_ARCH}/Makefile.inc. The purpose of having a separate file involved an abandoned scheme that would have kept contrib/gdtoa out of the include path for the rest of libc.
* Eliminate gdtoa.mk and move its contents to ${MACHINE_ARCH}/Makefile.inc.das2005-01-1514-38/+20
| | | | | The purpose of having a separate file involved an abandoned scheme that would have kept contrib/gdtoa out of the include path for the rest of libc.
* amd64 assembly versions of sqrt(), lrint(), and llrint() using SSE2.das2005-01-154-0/+77
|
* Most libm routines depend on the rounding mode and/or set exceptiondas2005-01-151-31/+29
| | | | | | | | | | | | | | flags, so they are not pure. Remove the __pure2 annotation from them. I believe that the following routines and their float and long double counterparts are the only ones here that can be __pure2: copysign is* fabs finite fmax fmin fpclassify ilogb nan signbit When gcc supports FENV_ACCESS, perhaps there will be a new annotation that allows the other functions to be considered pure when FENV_ACCESS is off. Discussed with: bde
* Braino. Revert rev 1.50.das2005-01-151-0/+7
| | | | Pointy hat to: das
* Remove numerous references to VAX floating-point and the setting ofdas2005-01-1412-204/+44
| | | | | | errno, replacing them with a discussion of IEEE exceptions where appropriate. Cross-reference fenv(3) whenever exceptions are mentioned.
* Set math_errhandling to MATH_ERREXCEPT. Now that we have fenv.h, wedas2005-01-141-1/+1
| | | | | | 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.
* Remove some #if 0'd code.das2005-01-141-7/+0
|
* Markup fixes.ru2005-01-141-6/+6
|
* Tiny markup nits.ru2005-01-144-22/+23
|
* Mark all inline asms that read the floating-point control or statusdas2005-01-147-11/+11
| | | | | | | registers as volatile. Instructions that *wrote* to FP state were already marked volatile, but apparently gcc has license to move non-volatile asms past volatile asms. This broke amd64's feupdateenv at -O2 due to a WAR conflict between fnstsw and fldenv there.
* Fixed too many of "the", and enclose multi-word argument in double quotes.stefanf2005-01-131-4/+3
| | | | Obtained from: ru
* Import the subset of J.T. Conklin's single-precision x86-optimizeddas2005-01-1317-2/+280
| | | | | | | math routines that appear to be (a) correct and (b) faster than their MI counterparts on my Pentium 4. Obtained from: NetBSD
* remember to reset nextgrp in getnetgrent(), so that subsequent calls to ↵jon2005-01-131-0/+1
| | | | | | getnetgrent() doesn't return bogus information. MFC after: 3 days
* The isnormal() in rev 1.2 should have been isfinite() so subnormalsdas2005-01-132-2/+2
| | | | | | round correctly. Noticed by: stefanf
* Things that are broken, unneeded, and unused since 1997 belong in the attic.das2005-01-131-55/+0
|
* Markup nits.ru2005-01-133-33/+27
|
* Fixed too many of "the", and enclose multi-word argument in double quotes.ru2005-01-131-4/+3
|
* Implement and document ceill().stefanf2005-01-134-8/+117
|
* Bump .Dd for the last commit.stefanf2005-01-131-1/+1
|
* Revert last delta. The ASCII code 0 character is "NUL",ru2005-01-131-2/+2
| | | | not "NULL", see ascii(7).
* Hook up and document floorl().stefanf2005-01-122-5/+16
|
* Implement floorl().stefanf2005-01-122-1/+98
|
* Whitespace nit.stefanf2005-01-121-1/+1
|
* Bring some file descriptions in line with reality.kientzle2005-01-121-6/+31
| | | | | Also, add some hints to help people understand which functions are most appropriate for typical uses.
* Fix some signed/unsigned comparisons. Fix prototypes while I'm here.brian2005-01-121-3/+6
| | | | | | PR: 28890 Submitted by: matthias.andree at web dot de MFC after: 7 days
* Add MI implementations of [l]lrint[f]() and [l]lround[f]().das2005-01-1110-4/+200
| | | | Discussed with: bde
OpenPOWER on IntegriCloud