mirror of
https://github.com/aicodix/code.git
synced 2026-04-28 09:43:11 +00:00
keep the result symmetric
This commit is contained in:
parent
7e589c85ef
commit
ca2e77b282
1 changed files with 2 additions and 2 deletions
|
|
@ -146,9 +146,9 @@ struct PolarHelper<SIMD<int8_t, WIDTH>>
|
|||
static TYPE madd(TYPE a, TYPE b, TYPE c)
|
||||
{
|
||||
#ifdef __ARM_NEON
|
||||
return vqadd(vmul(a, vmax(b, vdup<TYPE>(-127))), c);
|
||||
return vmax(vqadd(vmul(a, vmax(b, vdup<TYPE>(-127))), c), vdup<TYPE>(-127));
|
||||
#else
|
||||
return vqadd(vsign(vmax(b, vdup<TYPE>(-127)), a), c);
|
||||
return vmax(vqadd(vsign(vmax(b, vdup<TYPE>(-127)), a), c), vdup<TYPE>(-127));
|
||||
#endif
|
||||
}
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue