optimize transpose_in_place_square_small code

This commit is contained in:
honeywest 2023-04-29 16:55:14 +08:00
parent ae21ef8fd1
commit 1d8f71f84f

View File

@ -16,7 +16,7 @@ unsafe fn transpose_in_place_square_small<T>(
lb_size: usize, lb_size: usize,
x: 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 { for j in x..i {
swap( swap(
arr.get_unchecked_mut(i + (j << lb_stride)), arr.get_unchecked_mut(i + (j << lb_stride)),