mirror of
https://github.com/amadvance/snapraid.git
synced 2026-10-26 19:01:57 -04:00
Add dedicated XOR-only fast path for NEON rec1of1
This commit is contained in:
parent
232526fa53
commit
58468cfb55
1 changed files with 8 additions and 4 deletions
12
raid/neon.c
12
raid/neon.c
|
|
@ -1377,10 +1377,14 @@ void raid_gen6_neon_aes(int nd, size_t size, void **vv)
|
|||
void raid_rec1_neon(int nr, int *id, int *ip, int nd, size_t size, void **vv)
|
||||
{
|
||||
BUG_ON(nr != 1);
|
||||
if (ip[0] == 0)
|
||||
raid_recX_neon_12(1, 1, id, ip, nd, size, vv);
|
||||
else
|
||||
raid_recX_neon_12(1, 0, id, ip, nd, size, vv);
|
||||
|
||||
/* if recovering with P uses the delta function */
|
||||
if (ip[0] == 0) {
|
||||
raid_rec1of1(id, nd, size, vv);
|
||||
return;
|
||||
}
|
||||
|
||||
raid_recX_neon_12(1, 0, id, ip, nd, size, vv);
|
||||
}
|
||||
|
||||
void raid_rec2_neon(int nr, int *id, int *ip, int nd, size_t size, void **vv)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue