mirror of
https://github.com/amadvance/snapraid.git
synced 2026-10-26 19:01:57 -04:00
Change RAID AVX512/GFNI functions to use forward iterations
This commit is contained in:
parent
6cb3d86f66
commit
1e63403bf2
3 changed files with 145 additions and 276 deletions
|
|
@ -59,17 +59,6 @@ void **raid_malloc_vector_align(int nd, int n, size_t size, size_t align_size, s
|
|||
va += size + displacement_size;
|
||||
}
|
||||
|
||||
/*
|
||||
* Reverse order of the data blocks
|
||||
* because they are usually accessed from the last one
|
||||
*/
|
||||
for (i = 0; i < nd / 2; ++i) {
|
||||
void *ptr = v[i];
|
||||
|
||||
v[i] = v[nd - 1 - i];
|
||||
v[nd - 1 - i] = ptr;
|
||||
}
|
||||
|
||||
return v;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue