Rev 688 | Rev 731 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 688 | Rev 697 | ||
---|---|---|---|
Line 27... | Line 27... | ||
27 | */ |
27 | */ |
28 | 28 | ||
29 | #ifndef __SFTYPES_H__ |
29 | #ifndef __SFTYPES_H__ |
30 | #define __SFTYPES_H__ |
30 | #define __SFTYPES_H__ |
31 | 31 | ||
32 | - | ||
33 | typedef union { |
32 | typedef union { |
34 | float f; |
33 | float f; |
35 | __u32 binary; |
34 | __u32 binary; |
36 | 35 | ||
37 | struct { |
36 | struct { |
Line 77... | Line 76... | ||
77 | #define FLOAT32_NAN 0x7F800001 |
76 | #define FLOAT32_NAN 0x7F800001 |
78 | #define FLOAT32_SIGNAN 0x7FC00000 |
77 | #define FLOAT32_SIGNAN 0x7FC00000 |
79 | #define FLOAT32_INF 0x7F800000 |
78 | #define FLOAT32_INF 0x7F800000 |
80 | 79 | ||
81 | #define FLOAT32_MANTISA_SIZE 23 |
80 | #define FLOAT32_MANTISA_SIZE 23 |
- | 81 | #define FLOAT64_MANTISA_SIZE 52 |
|
82 | 82 | ||
83 | #define FLOAT32_BIAS 0x7F |
83 | #define FLOAT32_BIAS 0x7F |
84 | #define FLOAT64_BIAS 0x3FF |
84 | #define FLOAT64_BIAS 0x3FF |
85 | #define FLOAT80_BIAS 0x3FFF |
85 | #define FLOAT80_BIAS 0x3FFF |
86 | 86 |