www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/10/30/15:42:08

Message-Id: <199810302031.PAA03525@delorie.com>
Date: Fri, 30 Oct 1998 15:30:56 -0500 (EST)
From: Stephen L Moshier <moshier AT mediaone DOT net>
X-Sender: moshier AT moshier DOT ne DOT mediaone DOT net
To: djgpp-announce AT delorie DOT com
Subject: long double library for 2.02
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com

simtelnet/gnu/djgpp/v2tk/
smldbl11.zip B     92,314 981029 Steve Moshier's long double library for 2.02

This archive contains C source and object files to improve floating
point printf and scanf accuracy of the DJGPP C library (version 2.01
or 2.02).  With this change, the I/O accuracy passes tests for
compliance with IEEE 754 and 854 standards.

    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.

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 strtod.o
 ranlib libc.a

For test programs, see http://www.netlib.org/cephes/ieetst.shar .
For a library of long double precision math functions, see
http://www.netlib.org/cephes/ldouble.shar .

Steve Moshier
(moshier AT na-net DOT ornl DOT gov)
October, 1998

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019