Mail Archives: djgpp/1995/12/28/11:33:45
hpux has these in "values.h," as :
* DSIGNIF - the number of significant bits in a double
* FSIGNIF - the number of significant bits in a float
* _DEXPLEN - the number of bits for the exponent of a double
* _FEXPLEN - the number of bits for the exponent of a float
#define _DEXPLEN 11 <----- same as djgppv2
#define _HIDDENBIT 1 <----- same as djgppv2
#define _FEXPLEN 8 <----- same as djgppv2
#define BITS(type) (BITSPERBYTE * (int)sizeof(type))
#define DSIGNIF (BITS(double) - _DEXPLEN + _HIDDENBIT - 1)
#define FSIGNIF (BITS(float) - _FEXPLEN + _HIDDENBIT - 1)
* DMAXPOWTWO - the largest power of two exactly representable as a double
* FMAXPOWTWO - the largest power of two exactly representable as a float
#define DMAXPOWTWO ((double)(1L << BITS(long) - 2) * \
(1L << DSIGNIF - BITS(long) + 1))
#define FMAXPOWTWO ((float)(1L << FSIGNIF - 1))
------------------------------------------------------------------------------
This is all that has to do with D/FSIGNIF.
Hope this helps,
Osman
- Raw text -