Changeset 7afd2aca in mainline for softfloat/include/softfloat.h
- Timestamp:
- 2005-12-07T22:37:49Z (20 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 36aee474
- Parents:
- ebff5e8
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
softfloat/include/softfloat.h
rebff5e8 r7afd2aca 35 35 struct { 36 36 #ifdef __BIG_ENDIAN__ 37 __u 8sign:1;38 __u 8exp:8;37 __u32 sign:1; 38 __u32 exp:8; 39 39 __u32 mantisa:23; 40 #else 41 #ifdef __LITTLE_ENDIAN__ 40 #elif defined __LITTLE_ENDIAN__ 42 41 __u32 mantisa:23; 43 __u 8exp:8;44 __u 8sign:1;42 __u32 exp:8; 43 __u32 sign:1; 45 44 #else 45 #error "Unknown endians." 46 46 #endif 47 47 } parts __attribute__ ((packed)); 48 } float32 _t;48 } float32; 49 49 50 50 typedef union { … … 52 52 struct { 53 53 #ifdef __BIG_ENDIAN__ 54 __u8 sign:1; 55 __u8 exp:11; 56 __u32 mantisa:52; 57 #else 58 #ifdef __LITTLE_ENDIAN__ 59 __u32 mantisa:52; 60 __u8 exp:11; 61 __u8 sign:1; 54 __u64 sign:1; 55 __u64 exp:11; 56 __u64 mantisa:52; 57 #elif defined __LITTLE_ENDIAN__ 58 __u64 mantisa:52; 59 __u64 exp:11; 60 __u64 sign:1; 62 61 #else 62 #error "Unknown endians." 63 63 #endif 64 64 } parts __attribute__ ((packed)); 65 } float64 _t;65 } float64; 66 66 67 67 #define FLOAT32_MAX 0x7f800000
Note:
See TracChangeset
for help on using the changeset viewer.