-
Notifications
You must be signed in to change notification settings - Fork 260
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
arm neon qdmull: Fix SQDMULL implementation for 32-bit inputs. (#1255)
The non-vectorized SQDMULL implementation was wrong for 32-bit inputs. It incorrectly checked one of the operands to see if the value would overflow before doubling it, not the result of the initial multiplication. It now matches the 16-bit operand version, and also matches hardware. A test has been added for the scalar form of the function, testing a range of values that will saturate when multiplied and doubled. This set of test vectors was produced on an ARMv9 machine (Google Cloud box), failed tests on x86 with the existing code, and passes with the modified code.
- Loading branch information
Showing
2 changed files
with
86 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters