aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/math/bigint/divide.cpp
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2018-03-01 16:54:27 -0500
committerJack Lloyd <[email protected]>2018-03-01 16:54:27 -0500
commit2bea955063e1df520531339a9f7e39531f68a2ca (patch)
treeea31f94d7091dc334363171287370a519375bdff /src/lib/math/bigint/divide.cpp
parent03e3d3dac4b50a6da3cfec2971460c1182cebd9d (diff)
Remove MP_WORD_BITS constant
Use the BOTAN_MP_WORD_BITS consistently
Diffstat (limited to 'src/lib/math/bigint/divide.cpp')
-rw-r--r--src/lib/math/bigint/divide.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/math/bigint/divide.cpp b/src/lib/math/bigint/divide.cpp
index 13696d6d3..63326d655 100644
--- a/src/lib/math/bigint/divide.cpp
+++ b/src/lib/math/bigint/divide.cpp
@@ -101,7 +101,7 @@ void divide(const BigInt& x, const BigInt& y_arg, BigInt& q, BigInt& r)
return;
}
- BigInt temp = y << (MP_WORD_BITS * (n-t));
+ BigInt temp = y << (BOTAN_MP_WORD_BITS * (n-t));
while(r >= temp) { r -= temp; q_words[n-t] += 1; }
@@ -123,11 +123,11 @@ void divide(const BigInt& x, const BigInt& y_arg, BigInt& q, BigInt& r)
q_words[j-t-1] -= 1;
}
- r -= (q_words[j-t-1] * y) << (MP_WORD_BITS * (j-t-1));
+ r -= (q_words[j-t-1] * y) << (BOTAN_MP_WORD_BITS * (j-t-1));
if(r.is_negative())
{
- r += y << (MP_WORD_BITS * (j-t-1));
+ r += y << (BOTAN_MP_WORD_BITS * (j-t-1));
q_words[j-t-1] -= 1;
}
}