Changes in uspace/lib/softfloat/comparison.c [7c3fb9b:3212921] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/softfloat/comparison.c
r7c3fb9b r3212921 85 85 int is_float32_signan(float32 f) 86 86 { 87 /* 88 * SigNaN : exp = 0xff and fraction = 0xxxxx..x (binary), 89 * where at least one x is nonzero 90 */ 87 /* SigNaN : exp = 0xff and fraction = 0xxxxx..x (binary), 88 * where at least one x is nonzero */ 91 89 return ((f.parts.exp == 0xFF) && 92 90 (f.parts.fraction < 0x400000) && (f.parts.fraction)); … … 101 99 int is_float64_signan(float64 d) 102 100 { 103 /* 104 * SigNaN : exp = 0x7ff and fraction = 0xxxxx..x (binary), 105 * where at least one x is nonzero 106 */ 101 /* SigNaN : exp = 0x7ff and fraction = 0xxxxx..x (binary), 102 * where at least one x is nonzero */ 107 103 return ((d.parts.exp == 0x7FF) && 108 104 (d.parts.fraction) && (d.parts.fraction < 0x8000000000000ll)); … … 117 113 int is_float128_signan(float128 ld) 118 114 { 119 /* 120 * SigNaN : exp = 0x7fff and fraction = 0xxxxx..x (binary), 121 * where at least one x is nonzero 122 */ 115 /* SigNaN : exp = 0x7fff and fraction = 0xxxxx..x (binary), 116 * where at least one x is nonzero */ 123 117 return ((ld.parts.exp == 0x7FFF) && 124 118 (ld.parts.frac_hi || ld.parts.frac_lo) &&
Note:
See TracChangeset
for help on using the changeset viewer.