delorie.com/archives/browse.cgi | search |
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 };
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |