Changeset 7c3fb9b in mainline for uspace/lib/softint/generic/multiplication.c
- Timestamp:
- 2018-05-17T08:29:01Z (6 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/softint/generic/multiplication.c
rfac0ac7 r7c3fb9b 93 93 } 94 94 95 /* (if OF checked) a1 or b1 is zero => result fits in 64 bits, 95 /* 96 * (if OF checked) a1 or b1 is zero => result fits in 64 bits, 96 97 * no need to another overflow check 97 98 */ … … 107 108 t2 += t1; 108 109 109 /* t2 & (1ull << 63) - if this bit is set in unsigned long long, 110 * result does not fit in signed one */ 110 /* 111 * t2 & (1ull << 63) - if this bit is set in unsigned long long, 112 * result does not fit in signed one 113 */ 111 114 if (SOFTINT_CHECK_OF && ((t2 < t1) || (t2 & (1ull << 63)))) { 112 115 /* Error, overflow */
Note:
See TracChangeset
for help on using the changeset viewer.