diff options
| author | Ard Biesheuvel <[email protected]> | 2020-07-08 12:11:18 +0300 |
|---|---|---|
| committer | Herbert Xu <[email protected]> | 2020-07-16 21:49:04 +1000 |
| commit | e79a31715193686e92dadb4caedfbb1f5de3659c (patch) | |
| tree | fe9d960b52083a72242d8c1a5ecbd0db8b90ff3d /tools/perf/scripts/python | |
| parent | 06cc2afbbdf9a9e8df3e2f8db724997dd6e1b4ac (diff) | |
crypto: x86/chacha-sse3 - use unaligned loads for state array
Due to the fact that the x86 port does not support allocating objects
on the stack with an alignment that exceeds 8 bytes, we have a rather
ugly hack in the x86 code for ChaCha to ensure that the state array is
aligned to 16 bytes, allowing the SSE3 implementation of the algorithm
to use aligned loads.
Given that the performance benefit of using of aligned loads appears to
be limited (~0.25% for 1k blocks using tcrypt on a Corei7-8650U), and
the fact that this hack has leaked into generic ChaCha code, let's just
remove it.
Cc: Martin Willi <[email protected]>
Cc: Herbert Xu <[email protected]>
Cc: Eric Biggers <[email protected]>
Signed-off-by: Ard Biesheuvel <[email protected]>
Reviewed-by: Martin Willi <[email protected]>
Reviewed-by: Eric Biggers <[email protected]>
Signed-off-by: Herbert Xu <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions