Rev 660 | Rev 734 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 660 | Rev 688 | ||
---|---|---|---|
Line 42... | Line 42... | ||
42 | inline int isFloat32Infinity(float32 f) |
42 | inline int isFloat32Infinity(float32 f) |
43 | { |
43 | { |
44 | return ((f.parts.exp==0xFF)&&(f.parts.mantisa==0x0)); |
44 | return ((f.parts.exp==0xFF)&&(f.parts.mantisa==0x0)); |
45 | }; |
45 | }; |
46 | 46 | ||
- | 47 | inline int isFloat32Zero(float32 f) |
|
- | 48 | { |
|
- | 49 | return (((f.binary) & 0x7FFFFFFF) == 0); |
|
- | 50 | } |
|
- | 51 | ||
47 | /** |
52 | /** |
48 | * @return 1, if both floats are equal - but NaNs are not recognized |
53 | * @return 1, if both floats are equal - but NaNs are not recognized |
49 | */ |
54 | */ |
50 | inline int isFloat32eq(float32 a, float32 b) |
55 | inline int isFloat32eq(float32 a, float32 b) |
51 | { |
56 | { |