Update partial.rs

This commit is contained in:
goldenMetteyya 2019-04-10 00:03:51 +03:00
parent a65950ef26
commit c161e8ef9f

View File

@ -86,7 +86,7 @@ pub fn partial_bigint(op: &BigInt) -> (i64, i32) {
// // extract the top word of bits from a and b
// let h = a.digits()[n - 1].leading_zeros();
//let lg2 = last.leading_zeros();
let lg2 = u64_log2(last);
let lg2 = u64_log2(last) + 1;
println!("-------lg2 ------: {:?}", lg2);
let mut exp = lg2 as i32;