Check-in Number:
|
798 | |
Date: |
2001-Aug-30 13:15:54 (local)
2001-Aug-30 11:15:54 (UTC) |
User: | simons |
Branch: | |
Comment: |
Removed the bitfield specifications from myfloat_t and mydouble_t
because some compilers cannot handle bitfield elements that are bigger
than an integer and we need this for the 52-bit fraction part in
mydouble_t. By omitting the qualifiers, we waste a few byte on the
stack, but that's way better than trying to deal with this problem by
splitting fractions into two integers. |
Tickets: |
|
Inspections: |
|
Files: |
|
ossp-pkg/xds/xds_engine_xdr.c 1.9 -> 1.10
--- xds_engine_xdr.c 2001/08/30 10:42:09 1.9
+++ xds_engine_xdr.c 2001/08/30 11:15:54 1.10
@@ -299,9 +299,9 @@
typedef struct
{
- xds_uint8_t sign :1;
- xds_uint32_t fraction :23;
- xds_int8_t exponent :8;
+ xds_uint8_t sign; /* :1 */
+ xds_uint32_t fraction; /* :23 */
+ xds_int8_t exponent; /* :8 */
}
myfloat_t;
@@ -458,9 +458,9 @@
typedef struct
{
- xds_uint8_t sign :1;
- xds_uint64_t fraction :52;
- xds_int16_t exponent :11;
+ xds_uint8_t sign; /* :1 */
+ xds_uint64_t fraction; /* :52 */
+ xds_int16_t exponent; /* :11 */
}
mydouble_t;
|
|