diff options
author | Amitay Isaacs <amitay@ozlabs.org> | 2021-03-29 18:20:53 +1100 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2021-04-08 12:18:09 +0100 |
commit | 5de32f22e731ea151e1c5aac7703cde2573cb4a4 (patch) | |
tree | 19a9a93e24ec4ca4f516e248391dcb3e87801c44 /crypto/poly1305/poly1305.c | |
parent | bbed0d1cbd436af6797d7837e270bff4ca4d5a10 (diff) |
Use numbers definition of int128_t and uint128_t
Signed-off-by: Amitay Isaacs <amitay@ozlabs.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/14784)
Diffstat (limited to 'crypto/poly1305/poly1305.c')
-rw-r--r-- | crypto/poly1305/poly1305.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/crypto/poly1305/poly1305.c b/crypto/poly1305/poly1305.c index 127ce7da2f..be41a6d354 100644 --- a/crypto/poly1305/poly1305.c +++ b/crypto/poly1305/poly1305.c @@ -94,11 +94,10 @@ poly1305_blocks(void *ctx, const unsigned char *inp, size_t len, u32 padbit); (a ^ ((a ^ b) | ((a - b) ^ b))) >> (sizeof(a) * 8 - 1) \ ) -# if (defined(__SIZEOF_INT128__) && __SIZEOF_INT128__==16) && \ - (defined(__SIZEOF_LONG__) && __SIZEOF_LONG__==8) +# if defined(INT64_MAX) && defined(INT128_MAX) typedef unsigned long u64; -typedef __uint128_t u128; +typedef uint128_t u128; typedef struct { u64 h[3]; |