forked from adegtyarev/streebog
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use unaligned SSE2 instructions for loading data.
When using the functions in gost3411-2012-core.c in the context of a shared library `const unsigned char *data` can be passed in from unaligned memory. Using `_mm_loadu_si128` over `_mm_load_si128` does not imply any speed penalty on recent (Sandy Bridge and later) CPUs.
- Loading branch information
1 parent
432d5de
commit c94d6ca
Showing
2 changed files
with
16 additions
and
16 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