1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

math.big: improve multiplication performance (#15200)

This commit is contained in:
Subhomoy Haldar
2022-07-24 22:05:37 +05:30
committed by GitHub
parent 2d7406a8cd
commit 297cb5f89c
4 changed files with 158 additions and 36 deletions

View File

@@ -24,9 +24,9 @@ fn test_add_in_place() {
assert a == [u32(0x17ff72ad), 0x1439]
}
fn test_lshift_byte_in_place() {
fn test_lshift_digits_in_place() {
mut a := [u32(5), 6, 7, 8]
lshift_byte_in_place(mut a, 2)
lshift_digits_in_place(mut a, 2)
assert a == [u32(0), 0, 5, 6, 7, 8]
}