diff options
author | Eric Biggers <[email protected]> | 2024-04-11 09:23:58 -0700 |
---|---|---|
committer | Herbert Xu <[email protected]> | 2024-04-19 18:54:18 +0800 |
commit | 59e62b20acc3161cafe3dce52cd3d6211379c4c5 (patch) | |
tree | d875a64b766dd449e772506182e166b61bca35b9 /tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/EventClass.py | |
parent | 1b5ddb067df930c8232020cd059b2060275427cf (diff) |
crypto: x86/sha256-ni - optimize code size
- Load the SHA-256 round constants relative to a pointer that points
into the middle of the constants rather than to the beginning. Since
x86 instructions use signed offsets, this decreases the instruction
length required to access some of the later round constants.
- Use punpcklqdq or punpckhqdq instead of longer instructions such as
pshufd, pblendw, and palignr. This doesn't harm performance.
The end result is that sha256_ni_transform shrinks from 839 bytes to 791
bytes, with no loss in performance.
Suggested-by: Stefan Kanthak <[email protected]>
Signed-off-by: Eric Biggers <[email protected]>
Signed-off-by: Herbert Xu <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/EventClass.py')
0 files changed, 0 insertions, 0 deletions