| delorie.com/archives/browse.cgi | search |
> Date: Mon, 18 May 2015 08:16:36 -0400
> From: DJ Delorie <dj AT delorie DOT com>
>
>
> I tested this with Linux gcc 5.1 and got the same bit patterns for
> both cases:
>
> typedef struct {
> unsigned mantissal:32;
> unsigned mantissah:20;
> unsigned exponent:11;
> unsigned sign:1;
> } double_t;
> double gdm = ((double)1.79769313486231570815e+308L);
> double_t ddm = { 0xffffffffU, 0xfffff, 0x7fe, 0x0 };
But with the one in DJGPP's headers, we are not at the mercy of the
compiler's bugs^H^H^H^Hfeatures...
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |