aboutsummaryrefslogtreecommitdiff
path: root/libdecnumber/decDouble.h
diff options
context:
space:
mode:
authorDJ Delorie <dj@redhat.com>2008-10-27 18:25:21 +0000
committerDJ Delorie <dj@redhat.com>2008-10-27 18:25:21 +0000
commitaed1add31bf14e0cf760f01ac02437988b5762c3 (patch)
treeaed74a60e958fae99dbc27b9032af421751ce3ff /libdecnumber/decDouble.h
parente8ecdb5c3b219e270f6f3589129d49598e118fc5 (diff)
downloadgdb-aed1add31bf14e0cf760f01ac02437988b5762c3.zip
gdb-aed1add31bf14e0cf760f01ac02437988b5762c3.tar.gz
gdb-aed1add31bf14e0cf760f01ac02437988b5762c3.tar.bz2
merge from gcc
Diffstat (limited to 'libdecnumber/decDouble.h')
-rw-r--r--libdecnumber/decDouble.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/libdecnumber/decDouble.h b/libdecnumber/decDouble.h
index 32eba39..53fcf40 100644
--- a/libdecnumber/decDouble.h
+++ b/libdecnumber/decDouble.h
@@ -58,9 +58,11 @@
#include "decContext.h"
#include "decQuad.h"
- /* The decDouble decimal 64-bit type, accessible by bytes */
- typedef struct {
+ /* The decDouble decimal 64-bit type, accessible by various types */
+ typedef union {
uint8_t bytes[DECDOUBLE_Bytes]; /* fields: 1, 5, 8, 50 bits */
+ uint16_t shorts[DECDOUBLE_Bytes/2];
+ uint32_t words[DECDOUBLE_Bytes/4];
} decDouble;
/* ---------------------------------------------------------------- */