mirror of
https://github.com/vlang/v.git
synced 2025-09-13 22:42:26 +03:00
math.big: fix toom-cook 3-way multiplication (#24888)
This commit is contained in:
parent
54fec7b772
commit
f06def7d6d
3 changed files with 34 additions and 14 deletions
|
@ -108,9 +108,9 @@ fn subtract_digit_array(operand_a []u32, operand_b []u32, mut storage []u32) {
|
|||
shrink_tail_zeros(mut storage)
|
||||
}
|
||||
|
||||
const karatsuba_multiplication_limit = 240
|
||||
const karatsuba_multiplication_limit = 70
|
||||
|
||||
const toom3_multiplication_limit = 10_000
|
||||
const toom3_multiplication_limit = 360
|
||||
|
||||
@[inline]
|
||||
fn multiply_digit_array(operand_a []u32, operand_b []u32, mut storage []u32) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue