Newsgroups: comp.os.msdos.djgpp From: moshier AT world DOT std DOT com (Stephen L Moshier) Subject: long double printf fixes Message-ID: Organization: The World @ Software Tool & Die Date: Wed, 5 Feb 1997 02:46:44 GMT Lines: 41 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp djldv201.zip -- long double printf fixes for DJGPP v2.01. 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.01). With this change, the I/O accuracy passes tests for compliance with IEEE 754 and 854 standards. djgpp/libsrc/c/io/doprnt.c djgpp/libsrc/c/lib/ioldoubl.c strtod.c has been fixed in DJGPP version 2.01. It no longer requires a change. 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. To install the change, delete doprnt.o from libc.a and add the two .o files to libc.a. The following commands will do that: copy libc.a libc.a00 (make a backup!) ar dv libc.a doprnt.o ar rv libc.a doprnt.o ioldoubl.o ranlib libc.a The archive containing source and object files is at ftp://ftp.std.com/pub/astronomy/djldv201.zip . Steve Moshier (moshier AT world DOT std DOT com) February, 1997