We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d8f6fb4 commit 18df371Copy full SHA for 18df371
libc/src/__support/big_int.h
@@ -1008,10 +1008,9 @@ struct BigInt {
1008
BigInt quotient;
1009
if (remainder >= divider) {
1010
BigInt subtractor = divider;
1011
- // TODO: failure here
1012
int cur_bit =
1013
- (multiword::countl_zero(subtractor.val) -
1014
- multiword::countl_zero(remainder.val));
+ multiword::countl_zero(subtractor.val) -
+ multiword::countl_zero(remainder.val);
1015
subtractor <<= static_cast<size_t>(cur_bit);
1016
for (; cur_bit >= 0 && remainder > 0; --cur_bit, subtractor >>= 1) {
1017
if (remainder < subtractor)
0 commit comments