-
Notifications
You must be signed in to change notification settings - Fork 612
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(simd.h): gather_mask was wrong for no-simd fallback
The operation it's supposed to be performing is to merge in the gathered value where the mask is set, and leave mask=0 lanes unchanged. But for our "no SIMD" fallback (i.e., no AVX2 for 4- and 8-wide), we incorrectly implemented it as setting the unmasked lanes to 0! This was quite wrong, and unfortunately masked by the fact that our test of the function initialized a variable to 0. Change to a better number. The best number. Signed-off-by: Larry Gritz <[email protected]>
- Loading branch information
Showing
2 changed files
with
7 additions
and
7 deletions.
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