summaryrefslogtreecommitdiffhomepage
path: root/src/crypto
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2017-10-31 11:15:18 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2017-10-31 17:25:23 +0100
commitd380e45121453cd6aca71372a81b9246b216b0e7 (patch)
treeecf25368ed8983bf9165fb695e6130b8094617f0 /src/crypto
parent5e4473dec28ef67b2d2467f85c8611c5f005d98a (diff)
curve25519: only enable int128 if compiler support is sound
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'src/crypto')
-rw-r--r--src/crypto/curve25519.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/crypto/curve25519.c b/src/crypto/curve25519.c
index c594a56..afc2a99 100644
--- a/src/crypto/curve25519.c
+++ b/src/crypto/curve25519.c
@@ -206,7 +206,7 @@ void __init curve25519_fpu_init(void)
void __init curve25519_fpu_init(void) { }
#endif
-#ifdef __SIZEOF_INT128__
+#if defined(CONFIG_ARCH_SUPPORTS_INT128) && defined(__SIZEOF_INT128__)
typedef u64 limb;
typedef limb felem[5];
typedef __uint128_t u128;