Home GnuPG

sha512/sha256: remove assembler macros from AMD64 implementations

Description

sha512/sha256: remove assembler macros from AMD64 implementations

* configure.ac (gcry_cv_gcc_platform_as_ok_for_intel_syntax): Remove
assembler macro check from Intel syntax assembly support check.
* cipher/sha256-avx-amd64.S: Replace assembler macros with C
preprocessor counterparts.
* cipher/sha256-avx2-bmi2-amd64.S: Ditto.
* cipher/sha256-ssse3-amd64.S: Ditto.
* cipher/sha512-avx-amd64.S: Ditto.
* cipher/sha512-avx2-bmi2-amd64.S: Ditto.
* cipher/sha512-ssse3-amd64.S: Ditto.

Removing GNU assembler macros allows building these implementations with
clang.

  • GnuPG-bug-id: T5255
  • Signed-off-by: Jussi Kivilinna <jussi.kivilinna@iki.fi>