mirror of
https://github.com/logos-storage/plonky2.git
synced 2026-01-03 22:33:06 +00:00
Merge pull request #1012 from honeywest/transpose
optimize transpose_in_place_square_small code
This commit is contained in:
commit
5dc043aa4c
@ -16,7 +16,7 @@ unsafe fn transpose_in_place_square_small<T>(
|
||||
lb_size: usize,
|
||||
x: usize,
|
||||
) {
|
||||
for i in x..x + (1 << lb_size) {
|
||||
for i in x + 1..x + (1 << lb_size) {
|
||||
for j in x..i {
|
||||
swap(
|
||||
arr.get_unchecked_mut(i + (j << lb_stride)),
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user