summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorEric Biggers <ebiggers@google.com>2024-04-11 19:23:58 +0300
committerHerbert Xu <herbert@gondor.apana.org.au>2024-04-19 13:54:18 +0300
commit59e62b20acc3161cafe3dce52cd3d6211379c4c5 (patch)
treed875a64b766dd449e772506182e166b61bca35b9 /tools/perf/scripts/python/export-to-postgresql.py
parent1b5ddb067df930c8232020cd059b2060275427cf (diff)
downloadlinux-59e62b20acc3161cafe3dce52cd3d6211379c4c5.tar.xz
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 <stefan.kanthak@nexgo.de> Signed-off-by: Eric Biggers <ebiggers@google.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions