43,16 → 43,16 |
uint32_t binary; |
|
struct { |
#if defined(ARCH_IS_BIG_ENDIAN) |
#if defined(__BE__) |
uint32_t sign:1; |
uint32_t exp:8; |
uint32_t fraction:23; |
#elif defined(ARCH_IS_LITTLE_ENDIAN) |
#elif defined(__LE__) |
uint32_t fraction:23; |
uint32_t exp:8; |
uint32_t sign:1; |
#else |
#error "Unknown endians." |
#error Unknown endianess |
#endif |
} parts __attribute__ ((packed)); |
} float32; |
62,16 → 62,16 |
uint64_t binary; |
|
struct { |
#if defined(ARCH_IS_BIG_ENDIAN) |
#if defined(__BE__) |
uint64_t sign:1; |
uint64_t exp:11; |
uint64_t fraction:52; |
#elif defined(ARCH_IS_LITTLE_ENDIAN) |
#elif defined(__LE__) |
uint64_t fraction:52; |
uint64_t exp:11; |
uint64_t sign:1; |
#else |
#error "Unknown endians." |
#error Unknown endianess |
#endif |
} parts __attribute__ ((packed)); |
} float64; |
109,7 → 109,5 |
|
#endif |
|
|
/** @} |
*/ |
|