Port-vax archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: pbulk bootstrap: `awk` running into FP overflow during bison build (Grater picture: How to bootstrap pkgsrc / pbulk?)



>> [...], but I think it would be a reasonable idea to map F_floating,
>> D_floating and G_floating quantities respectively to the `float',
>> `double' and `long double' data types.

Better would be float = F, double = D or G, long double = H.  Better
from an ideal theoretical perspective, that is; the lack of hardware
support for H-float could be a problem in practice.

>> Not that I have checked in the standard, but having a data type that
>> narrows the mantissa when converted to a larger type sounds not
>> especially good :-)

C99 specifies that "[t]he set of values of the type float is a subset
of the set of values of the type double; the set of values of the type
double is a subset of the set of values of the type long double", so
mapping double to D-float and long double to G-float would be a spec
violation.  (It's a violation I doubt would matter much in practice,
mind you, but still strictly a spec violation.)

I don't have any more recent C spec on hand to check.

/~\ The ASCII				  Mouse
\ / Ribbon Campaign
 X  Against HTML		mouse%rodents-montreal.org@localhost
/ \ Email!	     7D C8 61 52 5D E7 2D 39  4E F1 31 3E E8 B3 27 4B


Home | Main Index | Thread Index | Old Index