ext: Update fputils to rev 13589cd
authorAndreas Sandberg <andreas.sandberg@arm.com>
Fri, 18 Nov 2016 18:08:20 +0000 (18:08 +0000)
committerAndreas Sandberg <andreas.sandberg@arm.com>
Fri, 18 Nov 2016 18:08:20 +0000 (18:08 +0000)
This patch updates fputils to the latest revision (13589cd) from the
upstream repository (github.com/andysan/fputils).

ext/fputils/fpbits.h
ext/fputils/include/fputils/fptypes.h

index f85a3b2f0b9a424b93c050e2a7f56799c8dd72d5..207531556da2c1254dc44e3ade6d6cb66ac4adb8 100644 (file)
@@ -84,6 +84,7 @@ build_fp64(int sign, uint64_t frac, int exp)
 
 #define BUILD_FP80(sign, frac, exp)                             \
     {                                                           \
+        .repr.pad = { 0 },                                      \
         .repr.se = BUILD_FP80_SE(sign, exp),                    \
         .repr.fi = BUILD_FP80_FI(frac, exp)                     \
     }
index 714ddd439ededea423e31ceafc411c59a7537a7e..2ccf6df2677b5e005128732b5f243232d78c3230 100644 (file)
@@ -69,12 +69,16 @@ typedef union  {
         uint64_t fi;
         /** Raw representation of sign bit and exponent */
         uint16_t se;
+        /** Add explicit padding to ensure this data structure
+         * is properly aligned.
+         */
+        uint16_t pad[3];
     } repr;
     /**
      * Represented as a char array, mainly intended for debug dumping
      * and serialization.
      */
-    char bits[10];
+    char bits[16];
 } fp80_t;
 
 /** @} */