Changeset 750636a in mainline for uspace/lib/softfloat/include/sftypes.h
- Timestamp:
- 2011-05-06T14:21:25Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 7b90778d, b5e68c8
- Parents:
- 042fbe0
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/softfloat/include/sftypes.h
r042fbe0 r750636a 55 55 #error Unknown endianess 56 56 #endif 57 57 } parts __attribute__ ((packed)); 58 58 } float32; 59 59 … … 77 77 } float64; 78 78 79 #define FLOAT32_MAX 0x7f80000080 #define FLOAT32_MIN 0xff80000079 #define FLOAT32_MAX 0x7f800000 80 #define FLOAT32_MIN 0xff800000 81 81 #define FLOAT64_MAX 82 82 #define FLOAT64_MIN … … 86 86 * comparing with these constants is not sufficient. 87 87 */ 88 #define FLOAT32_NAN 0x7FC0000189 #define FLOAT32_SIGNAN 0x7F80000190 #define FLOAT32_INF 0x7F80000091 88 92 #define FLOAT 64_NAN 0x7FF8000000000001ll93 #define FLOAT 64_SIGNAN 0x7FF0000000000001ll94 #define FLOAT 64_INF 0x7FF0000000000000ll89 #define FLOAT32_NAN 0x7FC00001 90 #define FLOAT32_SIGNAN 0x7F800001 91 #define FLOAT32_INF 0x7F800000 95 92 96 #define FLOAT32_FRACTION_SIZE 23 97 #define FLOAT64_FRACTION_SIZE 52 93 #define FLOAT64_NAN 0x7FF8000000000001ll 94 #define FLOAT64_SIGNAN 0x7FF0000000000001ll 95 #define FLOAT64_INF 0x7FF0000000000000ll 98 96 99 #define FLOAT32_ HIDDEN_BIT_MASK 0x800000100 #define FLOAT64_ HIDDEN_BIT_MASK 0x10000000000000ll97 #define FLOAT32_FRACTION_SIZE 23 98 #define FLOAT64_FRACTION_SIZE 52 101 99 102 #define FLOAT32_ MAX_EXPONENT 0xFF103 #define FLOAT64_ MAX_EXPONENT 0x7FF100 #define FLOAT32_HIDDEN_BIT_MASK 0x800000 101 #define FLOAT64_HIDDEN_BIT_MASK 0x10000000000000ll 104 102 105 #define FLOAT32_BIAS 0x7F 106 #define FLOAT64_BIAS 0x3FF 107 #define FLOAT80_BIAS 0x3FFF 103 #define FLOAT32_MAX_EXPONENT 0xFF 104 #define FLOAT64_MAX_EXPONENT 0x7FF 108 105 106 #define FLOAT32_BIAS 0x7F 107 #define FLOAT64_BIAS 0x3FF 108 #define FLOAT80_BIAS 0x3FFF 109 109 110 110 #endif
Note:
See TracChangeset
for help on using the changeset viewer.