]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - libdecnumber/decSingle.h
merge from gcc
[thirdparty/binutils-gdb.git] / libdecnumber / decSingle.h
index 8dd1bd38ac0d8a9e504e74f08ed47226cad1d30f..bae39848eed7d084eec80b440265f4e223d008cd 100644 (file)
   #include "decQuad.h"
   #include "decDouble.h"
 
-  /* The decSingle decimal 32-bit type, accessible by bytes */
-  typedef struct {
+  /* The decSingle decimal 32-bit type, accessible by various types */
+  typedef union {
     uint8_t bytes[DECSINGLE_Bytes];    /* fields: 1, 5, 6, 20 bits */
+    uint16_t shorts[DECSINGLE_Bytes/2];
+    uint32_t words[DECSINGLE_Bytes/4];
     } decSingle;
 
   /* ---------------------------------------------------------------- */