Check if assembler is compatible with AMD64 assembly implementations cipher-amd64-optimizations
authorJussi Kivilinna <jussi.kivilinna@iki.fi>
Thu, 20 Jun 2013 11:20:36 +0000 (14:20 +0300)
committerJussi Kivilinna <jussi.kivilinna@iki.fi>
Thu, 20 Jun 2013 11:20:36 +0000 (14:20 +0300)
commit3544fa8aa63bef9a35abf236e9376191b5ec206b
tree3e48b8009b02dfd544efc5199abc780dcca5a9d1
parentec2f8de409a93c80efa658134df22074a9bca5a4
Check if assembler is compatible with AMD64 assembly implementations

* cipher/blowfish-amd64.S: Enable only if
HAVE_COMPATIBLE_GCC_AMD64_PLATFORM_AS is defined.
* cipher/camellia-aesni-avx-amd64.S: Ditto.
* cipher/camellia-aesni-avx2-amd64.S: Ditto.
* cipher/cast5-amd64.S: Ditto.
* cipher/rinjdael-amd64.S: Ditto.
* cipher/serpent-avx2-amd64.S: Ditto.
* cipher/serpent-sse2-amd64.S: Ditto.
* cipher/twofish-amd64.S: Ditto.
* cipher/blowfish.c: Use AMD64 assembly implementation only if
HAVE_COMPATIBLE_GCC_AMD64_PLATFORM_AS is defined
* cipher/camellia-glue.c: Ditto.
* cipher/cast5.c: Ditto.
* cipher/rijndael.c: Ditto.
* cipher/serpent.c: Ditto.
* cipher/twofish.c: Ditto.
* configure.ac: Check gcc/as compatibility with AMD64 assembly
implementations.
--

Later these checks can be split and assembly implementations adapted to handle
different platforms, but for now disable AMD64 assembly implementations if
assembler does not look to be able to handle them.

Signed-off-by: Jussi Kivilinna <jussi.kivilinna@iki.fi>
15 files changed:
cipher/blowfish-amd64.S
cipher/blowfish.c
cipher/camellia-aesni-avx-amd64.S
cipher/camellia-aesni-avx2-amd64.S
cipher/camellia-glue.c
cipher/cast5-amd64.S
cipher/cast5.c
cipher/rijndael-amd64.S
cipher/rijndael.c
cipher/serpent-avx2-amd64.S
cipher/serpent-sse2-amd64.S
cipher/serpent.c
cipher/twofish-amd64.S
cipher/twofish.c
configure.ac