Changeset a96c570 in mainline for softfloat/generic/comparison.c
- Timestamp:
- 2006-01-22T15:51:00Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- bff16dd
- Parents:
- 4a5abddd
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
softfloat/generic/comparison.c
r4a5abddd ra96c570 41 41 42 42 inline int isFloat32SigNaN(float32 f) 43 { /* SigNaN : exp = 0xff mantisa = 1xxxxx..x (binary), where at least one x is nonzero */44 return ((f.parts.exp==0xFF)&&(f.parts.mantisa >0x400000));43 { /* SigNaN : exp = 0xff mantisa = 0xxxxx..x (binary), where at least one x is nonzero */ 44 return ((f.parts.exp==0xFF)&&(f.parts.mantisa<0x400000)&&(f.parts.mantisa)); 45 45 }; 46 46 47 47 inline int isFloat64SigNaN(float64 d) 48 { /* SigNaN : exp = 0x7ff mantisa = 1xxxxx..x (binary), where at least one x is nonzero */49 return ((d.parts.exp==0x7FF)&&(d.parts.mantisa >0x8000000000000ll));48 { /* SigNaN : exp = 0x7ff mantisa = 0xxxxx..x (binary), where at least one x is nonzero */ 49 return ((d.parts.exp==0x7FF)&&(d.parts.mantisa)&&(d.parts.mantisa<0x8000000000000ll)); 50 50 }; 51 51
Note:
See TracChangeset
for help on using the changeset viewer.