diff options
author | Shane Lontis <shane.lontis@oracle.com> | 2019-04-08 15:22:18 +1000 |
---|---|---|
committer | Pauli <paul.dale@oracle.com> | 2019-04-11 08:40:40 +1000 |
commit | 3a86f1db282569c538273cc48462a3fa5fcffa39 (patch) | |
tree | a93a796321d450ededebe3e793fb62adc744afb9 /crypto/ec/curve448/curve448utils.h | |
parent | 491360e7ab2f09fdaadfcd9ff84c425c8f4e5b03 (diff) |
Fixed linux_x86_icc compiler errors in EC code related to __uint128_t/__int128_t
Reviewed-by: Richard Levitte <levitte@openssl.org>
Reviewed-by: Paul Dale <paul.dale@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/8697)
Diffstat (limited to 'crypto/ec/curve448/curve448utils.h')
-rw-r--r-- | crypto/ec/curve448/curve448utils.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/crypto/ec/curve448/curve448utils.h b/crypto/ec/curve448/curve448utils.h index 9c4952be11..0ac69a6688 100644 --- a/crypto/ec/curve448/curve448utils.h +++ b/crypto/ec/curve448/curve448utils.h @@ -1,5 +1,5 @@ /* - * Copyright 2017-2018 The OpenSSL Project Authors. All Rights Reserved. + * Copyright 2017-2019 The OpenSSL Project Authors. All Rights Reserved. * Copyright 2015 Cryptography Research, Inc. * * Licensed under the Apache License 2.0 (the "License"). You may not use @@ -24,7 +24,9 @@ */ # ifndef C448_WORD_BITS # if (defined(__SIZEOF_INT128__) && (__SIZEOF_INT128__ == 16)) \ - && !defined(__sparc__) + && !defined(__sparc__) \ + && (!defined(__SIZEOF_LONG__) || (__SIZEOF_LONG__ == 8)) + # define C448_WORD_BITS 64 /* The number of bits in a word */ # else # define C448_WORD_BITS 32 /* The number of bits in a word */ |