fptypes.h (10480:5d4ebc92d32e) | fptypes.h (11708:0bb9093e4bbd) |
---|---|
1/* 2 * Copyright (c) 2014, Andreas Sandberg 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * --- 55 unchanged lines hidden (view full) --- 64typedef union { 65 struct { 66 /** Raw representation of the integer part bit and the 67 * fraction. Note that unlike 64-bit floating point 68 * representations the integer bit is explicit. */ 69 uint64_t fi; 70 /** Raw representation of sign bit and exponent */ 71 uint16_t se; | 1/* 2 * Copyright (c) 2014, Andreas Sandberg 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * --- 55 unchanged lines hidden (view full) --- 64typedef union { 65 struct { 66 /** Raw representation of the integer part bit and the 67 * fraction. Note that unlike 64-bit floating point 68 * representations the integer bit is explicit. */ 69 uint64_t fi; 70 /** Raw representation of sign bit and exponent */ 71 uint16_t se; |
72 /** Add explicit padding to ensure this data structure 73 * is properly aligned. 74 */ 75 uint16_t pad[3]; |
|
72 } repr; 73 /** 74 * Represented as a char array, mainly intended for debug dumping 75 * and serialization. 76 */ | 76 } repr; 77 /** 78 * Represented as a char array, mainly intended for debug dumping 79 * and serialization. 80 */ |
77 char bits[10]; | 81 char bits[16]; |
78} fp80_t; 79 80/** @} */ 81 82#ifdef __cplusplus 83} /* extern "C" */ 84#endif 85 86#endif | 82} fp80_t; 83 84/** @} */ 85 86#ifdef __cplusplus 87} /* extern "C" */ 88#endif 89 90#endif |