ext: Update fputils to rev 13589cd

This patch updates fputils to the latest revision (13589cd) from the
upstream repository (github.com/andysan/fputils).
This commit is contained in:
Andreas Sandberg 2016-11-18 18:08:20 +00:00
parent b8a162087d
commit af934452af
2 changed files with 6 additions and 1 deletions

View file

@ -84,6 +84,7 @@ build_fp64(int sign, uint64_t frac, int exp)
#define BUILD_FP80(sign, frac, exp) \ #define BUILD_FP80(sign, frac, exp) \
{ \ { \
.repr.pad = { 0 }, \
.repr.se = BUILD_FP80_SE(sign, exp), \ .repr.se = BUILD_FP80_SE(sign, exp), \
.repr.fi = BUILD_FP80_FI(frac, exp) \ .repr.fi = BUILD_FP80_FI(frac, exp) \
} }

View file

@ -69,12 +69,16 @@ typedef union {
uint64_t fi; uint64_t fi;
/** Raw representation of sign bit and exponent */ /** Raw representation of sign bit and exponent */
uint16_t se; uint16_t se;
/** Add explicit padding to ensure this data structure
* is properly aligned.
*/
uint16_t pad[3];
} repr; } repr;
/** /**
* Represented as a char array, mainly intended for debug dumping * Represented as a char array, mainly intended for debug dumping
* and serialization. * and serialization.
*/ */
char bits[10]; char bits[16];
} fp80_t; } fp80_t;
/** @} */ /** @} */