CryptoAlg-629: Remove prefetch from select_w7 #82
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Issues:
Resolves CryptoAlg-629
Description of changes:
This PR addresses the comments from @sebpop on the assembly functions developed to support ARMv8-optimized P-256 implementation.
Removed the prefetch instruction from select_w7 to
There was a noticeable small improvement in the performance of ECDSA sign (0.6%) and ECDH (0.2%) where multiplying by the base point is employed. It's more noticeable in ECDSA sign than ECDH since multiplication by the base point dominates ECDSA sign operation, but is only the first part of ECDH which also contains multiplication by an arbitrary public point which is a slower operation.
These improvements are understandably negligible, but they only show that prefetch, which may improve performance in some cases such as tree traversal and on platforms where there isn't a good hardware-supported prefetch, in this case, affects the performance (slightly) negatively.
Addressed other comments on the development application such as removing the
.arch
directive and the-march
compilation option.Enabled P-256 optimizations by default on ARMv8
which means reverting "CryptoAlg-530: Add ci test with -DOPENSSL_AARCH64_P256=1"
commit 270f803
Call-outs:
N/A
Testing:
Tested on ARMv8 EC2 instance.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.