Fix arm crypto logic issue in config_asm.h#1324
Fix arm crypto logic issue in config_asm.h#1324antznin wants to merge 1 commit intoweidai11:masterfrom
Conversation
The current logic for enabling or disabling the CRYPTOPP_ARM_*_AVAILABLE macros seems wrong, because we do an OR between all of the conditions following `defined(__ARM_FEATURE_CRYPTO)`. Fix the logic so that the CRYPTOPP_ARM_*_AVAILABLE macros are set if __ARM_FEATURE_CRYPTO is set _AND_ any of the following condition is true. Signed-off-by: Antonin Godard <antonin.godard@bootlin.com>
OR'ed condition contains a list of known and allowed compilers; otherwise |
That was the case before my patch, yes. Now after my modification, a known and allowed compiler must be used and So I'm not sure I understand your comment. |
Incorrect interpretation of code logic. |
Sure, I can change the code so |
|
This PR goes against portability, because any non-listed compiler would require source code changes. |
The current logic for enabling or disabling the
CRYPTOPP_ARM_*_AVAILABLEmacros seems wrong, because we do an OR between all of the conditions followingdefined(__ARM_FEATURE_CRYPTO). Fix the logic so that theCRYPTOPP_ARM_*_AVAILABLEmacros are set if __ARM_FEATURE_CRYPTO is set AND any of the following condition is true.