Changeset 7c3fb9b in mainline for uspace/lib/softfloat/comparison.c
- Timestamp:
- 2018-05-17T08:29:01Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 6ff23ff
- Parents:
- fac0ac7
- git-author:
- Jiri Svoboda <jiri@…> (2018-05-16 17:28:17)
- git-committer:
- Jiri Svoboda <jiri@…> (2018-05-17 08:29:01)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/softfloat/comparison.c
rfac0ac7 r7c3fb9b 85 85 int is_float32_signan(float32 f) 86 86 { 87 /* SigNaN : exp = 0xff and fraction = 0xxxxx..x (binary), 88 * where at least one x is nonzero */ 87 /* 88 * SigNaN : exp = 0xff and fraction = 0xxxxx..x (binary), 89 * where at least one x is nonzero 90 */ 89 91 return ((f.parts.exp == 0xFF) && 90 92 (f.parts.fraction < 0x400000) && (f.parts.fraction)); … … 99 101 int is_float64_signan(float64 d) 100 102 { 101 /* SigNaN : exp = 0x7ff and fraction = 0xxxxx..x (binary), 102 * where at least one x is nonzero */ 103 /* 104 * SigNaN : exp = 0x7ff and fraction = 0xxxxx..x (binary), 105 * where at least one x is nonzero 106 */ 103 107 return ((d.parts.exp == 0x7FF) && 104 108 (d.parts.fraction) && (d.parts.fraction < 0x8000000000000ll)); … … 113 117 int is_float128_signan(float128 ld) 114 118 { 115 /* SigNaN : exp = 0x7fff and fraction = 0xxxxx..x (binary), 116 * where at least one x is nonzero */ 119 /* 120 * SigNaN : exp = 0x7fff and fraction = 0xxxxx..x (binary), 121 * where at least one x is nonzero 122 */ 117 123 return ((ld.parts.exp == 0x7FFF) && 118 124 (ld.parts.frac_hi || ld.parts.frac_lo) &&
Note:
See TracChangeset
for help on using the changeset viewer.