| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
PR: 90333
|
|
|
|
|
|
|
| |
this or the deprecated POSIX functions {e,g,f}cvt() have
newer versions that do not (rely on them).
Requested by: marius
|
|
|
|
|
|
|
|
| |
this is used by some 3rd party applications when {e,f,g}cvt() are
not found. POSIX defines the xcvt() funtions but says they are
deprecated in favor or sprintf(). We'll import these functions
from OpenBSD and remove __gdtoa() from the exported interfaces
when libc version is bumped.
|
| |
|
|
|
|
| |
Reviewed by: davidxu
|
|
|
|
| |
I never got around to making use of it.
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
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.
|
|
|
|
|
|
| |
shift-too-large compile error
reviewed by: das
|
|
|
|
| |
and %A, which print floating-point numbers in hexadecimal.
|
|
|
|
|
| |
incorrectly on architectures without an explicit normalization
bit (sparc64, powerpc).
|
|
|
|
|
|
|
| |
in contributed sources with just a hack made possible
by bsd.sys.mk,v 1.33. This is better because it just
nulls out the warning flags rather than adding gcc(1)
specific -w option to CFLAGS.
|
|
|
|
|
|
| |
used with the contrib/ gdtoa sources as they aren't WARNS-clean.
Submitted by: ru
|
|
|
|
|
|
| |
Use the latter for gdtoa.
Requested by: deischen (far too long ago)
|
|
|
|
| |
This is the version I *meant* to commit last week.
|
|
|
|
|
|
|
| |
In support of this, add some MD macros to assist in converting long
doubles to the format expected by gdtoa().
Reviewed by: silence on standards@
|
|
|
|
| |
OK'ed by: das
|
|
package, a more recent, generalized set of routines. Among the
changes:
- Declare strtof() and strtold() in stdlib.h.
- Add glue to libc to support these routines for all kinds
of ``long double''.
- Update printf() to reflect the fact that dtoa works slightly
differently now.
As soon as I see that nothing has blown up, I will kill
src/lib/libc/stdlib/strtod.c. Soon printf() will be able
to use the new routines to output long doubles without loss
of precision, but numerous bugs in the existing code must
be addressed first.
Reviewed by: bde (briefly), mike (mentor), obrien
|