| www.delorie.com/archives/browse.cgi | search |
| From: | moshier AT mediaone DOT net () |
| Subject: | long double printf in libc 2.02 |
| Newsgroups: | comp.os.msdos.djgpp |
| X-Newsreader: | TIN [version 1.2 PL2] |
| Lines: | 41 |
| Message-ID: | <LjRZ1.56$2U3.561588@lwnws01.ne.mediaone.net> |
| Date: | Thu, 29 Oct 1998 03:30:51 GMT |
| NNTP-Posting-Host: | 24.128.118.69 |
| X-Trace: | lwnws01.ne.mediaone.net 909631851 24.128.118.69 (Wed, 28 Oct 1998 22:30:51 EDT) |
| NNTP-Posting-Date: | Wed, 28 Oct 1998 22:30:51 EDT |
| Organization: | Northeast Region--MediaOne |
| To: | djgpp AT delorie DOT com |
| DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
| Reply-To: | djgpp AT delorie DOT com |
djldv202.zip -- long double printf fixes for DJGPP v2.02.
This archive contains C source and object files to improve
floating point printf and scanf accuracy of D. J. Delorie's DJGPP C
library (version 2.02). With this change, the I/O accuracy
passes tests for compliance with IEEE 754 and 854 standards.
djgpp/src/libc/ansi/stdlib/strtod.c
djgpp/src/libc/ansi/stdio/doprnt.c
djgpp/src/libc/ansi/stdio/ioldoubl.c
ioldoubl.c is an extra-precision software floating point
arithmetic that includes binary <-> decimal conversion. It adds
about 15K bytes to the size of the library and a comparable
amount to the size of executable programs.
doprnt.c is modified to call the conversion routine in iodoubl.c
for long double `Le' printf format. It does not (yet) do so for
`Lf', though a function supporting that format is included.
strtod.c is modified to fix a problem with reading denormal doubles.
To install the change, delete doprnt.o and strtod. from libc.a and add the
three .o files to libc.a. The following commands will do that:
copy libc.a libc.a00 (make a backup!)
ar dv libc.a strtod.o
ar dv libc.a doprnt.o
ar rv libc.a doprnt.o ioldoubl.o strtod.o
ranlib libc.a
The archive containing source and object files is kept temporarily at
http://people.ne.mediaone.net/djldv202.zip .
Steve Moshier
(moshier AT mediaone DOT net)
October, 1998
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |