diff options
author | DJ Delorie <dj@redhat.com> | 2008-10-27 18:25:21 +0000 |
---|---|---|
committer | DJ Delorie <dj@redhat.com> | 2008-10-27 18:25:21 +0000 |
commit | aed1add31bf14e0cf760f01ac02437988b5762c3 (patch) | |
tree | aed74a60e958fae99dbc27b9032af421751ce3ff /libdecnumber/decSingle.h | |
parent | e8ecdb5c3b219e270f6f3589129d49598e118fc5 (diff) | |
download | gdb-aed1add31bf14e0cf760f01ac02437988b5762c3.zip gdb-aed1add31bf14e0cf760f01ac02437988b5762c3.tar.gz gdb-aed1add31bf14e0cf760f01ac02437988b5762c3.tar.bz2 |
merge from gcc
Diffstat (limited to 'libdecnumber/decSingle.h')
-rw-r--r-- | libdecnumber/decSingle.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libdecnumber/decSingle.h b/libdecnumber/decSingle.h index 8dd1bd3..bae3984 100644 --- a/libdecnumber/decSingle.h +++ b/libdecnumber/decSingle.h @@ -59,9 +59,11 @@ #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; /* ---------------------------------------------------------------- */ |