Changeset e591928 in mainline
- Timestamp:
- 2006-03-16T11:04:52Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- b81e7c6
- Parents:
- 585819d
- Location:
- softfloat/generic
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
softfloat/generic/comparison.c
r585819d re591928 33 33 { /* NaN : exp = 0xff and nonzero fraction */ 34 34 return ((f.parts.exp==0xFF)&&(f.parts.fraction)); 35 } ;35 } 36 36 37 37 inline int isFloat64NaN(float64 d) 38 38 { /* NaN : exp = 0x7ff and nonzero fraction */ 39 39 return ((d.parts.exp==0x7FF)&&(d.parts.fraction)); 40 } ;40 } 41 41 42 42 inline int isFloat32SigNaN(float32 f) 43 43 { /* SigNaN : exp = 0xff fraction = 0xxxxx..x (binary), where at least one x is nonzero */ 44 44 return ((f.parts.exp==0xFF)&&(f.parts.fraction<0x400000)&&(f.parts.fraction)); 45 } ;45 } 46 46 47 47 inline int isFloat64SigNaN(float64 d) 48 48 { /* SigNaN : exp = 0x7ff fraction = 0xxxxx..x (binary), where at least one x is nonzero */ 49 49 return ((d.parts.exp==0x7FF)&&(d.parts.fraction)&&(d.parts.fraction<0x8000000000000ll)); 50 } ;50 } 51 51 52 52 inline int isFloat32Infinity(float32 f) 53 53 { 54 54 return ((f.parts.exp==0xFF)&&(f.parts.fraction==0x0)); 55 } ;55 } 56 56 57 57 inline int isFloat64Infinity(float64 d) 58 58 { 59 59 return ((d.parts.exp==0x7FF)&&(d.parts.fraction==0x0)); 60 } ;60 } 61 61 62 62 inline int isFloat32Zero(float32 f) -
softfloat/generic/conversion.c
r585819d re591928 443 443 int counter; 444 444 int32_t exp; 445 int32_t j;445 uint32_t j; 446 446 float32 result; 447 447 -
softfloat/generic/softfloat.c
r585819d re591928 481 481 { 482 482 /* TODO: */ 483 } 484 483 float32 fa; 484 fa.binary = FLOAT32_NAN; 485 return fa.f; 486 } 487
Note:
See TracChangeset
for help on using the changeset viewer.