mirror of
https://github.com/aicodix/code.git
synced 2026-04-27 14:30:36 +00:00
use faster vqtbl1q_u8 on ARM64
This commit is contained in:
parent
986059694e
commit
2b7645ced3
2 changed files with 13 additions and 1 deletions
|
|
@ -51,11 +51,15 @@ public:
|
|||
{
|
||||
if (s < 0)
|
||||
s += WIDTH;
|
||||
TYPE ret;
|
||||
#ifdef __aarch64__
|
||||
ret.m = vqtbl1q_s8(a.m, vunsigned(rot[s]).m);
|
||||
#else
|
||||
int8x8x2_t b { vget_low_s8(a.m), vget_high_s8(a.m) };
|
||||
int8x8_t c = vtbl2_s8(b, vget_low_s8(rot[s].m));
|
||||
int8x8_t d = vtbl2_s8(b, vget_high_s8(rot[s].m));
|
||||
TYPE ret;
|
||||
ret.m = vcombine_s8(c, d);
|
||||
#endif
|
||||
return ret;
|
||||
}
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue