-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chacha20: Remove mutable borrows from AVX2 backend (#268)
The use of `&mut StateWord` everywhere caused a `vmovdqa` to be inserted after almost every operation, and also caused the diagonalization to use `vpermilps` instead of seeing the optimisation to `vpshufd`. The new `State` struct helps to manage the passing-around of owned `StateWord`s.
- Loading branch information
Showing
1 changed file
with
146 additions
and
118 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