delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/1996/07/30/22:14:34

Date: Tue, 30 Jul 1996 22:04:35 -0400
Message-Id: <199607310204.WAA02012@delorie.com>
From: DJ Delorie <dj>
To: sandmann AT clio DOT rice DOT edu
CC: pietervk AT minf DOT vub DOT ac DOT be, djgpp-workers AT delorie DOT com
In-reply-to: <9607301454.AA13818@clio.rice.edu> (sandmann@clio.rice.edu)
Subject: Re: Long double support

> New idea - #define HIGH_PRECSION_IO before including stdio.h, and it
> does the appropriate defines?  (printf/scanf/etc)

If we did this, we'd have to comply with POSIX namespace rules for
"feature macros".  However, I prefer the "better function in libm"
solution, since not everyone #include's stdio.h just to get printf.

> Why not just bloat libm or create a new library to provide this functionality
> instead?  I'm not sure even high precision numerical simulations need
> printf to be that accurate in most cases.  I may need it in the matrix
> invert, but I don't care if the answers are different in th 15th decimal.

This is one of the proposed solutions.  libc's printf will still
support long doubles, but will simply cast them to double and use the
existing double code.

- Raw text -


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