Commit 17923320 by Doug Evans

(FLO_union_type): Add packed attribute to `bits'.

From-SVN: r8074
parent 0e227018
...@@ -235,8 +235,7 @@ typedef struct ...@@ -235,8 +235,7 @@ typedef struct
} fraction; } fraction;
} fp_number_type; } fp_number_type;
typedef typedef union
union
{ {
FLO_type value; FLO_type value;
#ifdef _DEBUG_BITFLOAT #ifdef _DEBUG_BITFLOAT
...@@ -245,18 +244,17 @@ union ...@@ -245,18 +244,17 @@ union
struct struct
{ {
#ifndef FLOAT_BIT_ORDER_MISMATCH #ifndef FLOAT_BIT_ORDER_MISMATCH
unsigned int sign:1; unsigned int sign:1 __attribute__ ((packed));
unsigned int exp:EXPBITS; unsigned int exp:EXPBITS __attribute__ ((packed));
fractype fraction:FRACBITS; fractype fraction:FRACBITS __attribute__ ((packed));
#else #else
fractype fraction:FRACBITS; fractype fraction:FRACBITS __attribute__ ((packed));
unsigned int exp:EXPBITS; unsigned int exp:EXPBITS __attribute__ ((packed));
unsigned int sign:1; unsigned int sign:1 __attribute__ ((packed));
#endif #endif
} }
bits; bits;
} }
FLO_union_type; FLO_union_type;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment