Skip to content

Commit edd235e

Browse files
committed
Flip direction
1 parent e3df03a commit edd235e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

include/boost/int128/detail/common_div.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ BOOST_INT128_HOST_DEVICE constexpr void knuth_divide(std::uint32_t (&u)[u_size],
129129
while (q_hat > UINT32_MAX ||
130130
(q_hat * vn[n-2]) > ((r_hat << 32) | un[j+n-2]))
131131
{
132-
q_hat--;
132+
--q_hat;
133133
r_hat += vn[n-1];
134134
if (r_hat > UINT32_MAX)
135135
{

0 commit comments

Comments
 (0)