diff options
| author | Ard Biesheuvel <[email protected]> | 2019-11-08 12:22:27 +0000 |
|---|---|---|
| committer | Herbert Xu <[email protected]> | 2019-11-17 01:02:42 +0000 |
| commit | c12d3362a74bf0cd9e1d488918d40607b62a3104 (patch) | |
| tree | 64959cb56d0c20f365e28e3f45b9ce9d6a779d13 /lib/crypto/blake2s-generic.c | |
| parent | crypto: mips/poly1305 - incorporate OpenSSL/CRYPTOGAMS optimized implementation (diff) | |
| download | kernel-c12d3362a74bf0cd9e1d488918d40607b62a3104.tar.gz kernel-c12d3362a74bf0cd9e1d488918d40607b62a3104.zip | |
int128: move __uint128_t compiler test to Kconfig
In order to use 128-bit integer arithmetic in C code, the architecture
needs to have declared support for it by setting ARCH_SUPPORTS_INT128,
and it requires a version of the toolchain that supports this at build
time. This is why all existing tests for ARCH_SUPPORTS_INT128 also test
whether __SIZEOF_INT128__ is defined, since this is only the case for
compilers that can support 128-bit integers.
Let's fold this additional test into the Kconfig declaration of
ARCH_SUPPORTS_INT128 so that we can also use the symbol in Makefiles,
e.g., to decide whether a certain object needs to be included in the
first place.
Cc: Masahiro Yamada <[email protected]>
Signed-off-by: Ard Biesheuvel <[email protected]>
Signed-off-by: Herbert Xu <[email protected]>
Diffstat (limited to 'lib/crypto/blake2s-generic.c')
0 files changed, 0 insertions, 0 deletions
