]> Cypherpunks repositories - gostls13.git/commit
crypto/subtle: improve xorBytes assembler on PPC64
authorLynn Boger <laboger@linux.vnet.ibm.com>
Mon, 25 Sep 2023 15:49:11 +0000 (10:49 -0500)
committerLynn Boger <laboger@linux.vnet.ibm.com>
Fri, 6 Oct 2023 21:19:31 +0000 (21:19 +0000)
commit9b61b0054b34760506efe5a7763594d0188defce
treebacc6277755f6d6aad467ae465bf04592485f775
parentbe3d5fb6e6c9531e6c01dc909da710e1f596fb3a
crypto/subtle: improve xorBytes assembler on PPC64

This makes some improvements to the xorBytes assembler
implementation for PPC64 targets.

The loops to process large streams of bytes has been changed to
do 64 bytes at a time. Other changes were made to prevent
degradations in some of the common sizes like 8, 16.

The case for < 8 bytes on power10 has been modified to use
the LXVL and STXVL instructions.

Change-Id: I7477d12d5375d484af8c274443d595ccdafbda7c
Reviewed-on: https://go-review.googlesource.com/c/go/+/530877
Reviewed-by: Paul Murphy <murp@ibm.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Jayanth Krishnamurthy <jayanth.krishnamurthy@ibm.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Michael Pratt <mpratt@google.com>
Reviewed-by: Benny Siegert <bsiegert@gmail.com>
Run-TryBot: Lynn Boger <laboger@linux.vnet.ibm.com>
src/crypto/subtle/xor_ppc64x.s