forked from wolfSSL/wolfssl
POLY1305 : clang 32 bit warning about macros
This commit is contained in:
@ -32,12 +32,21 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* auto detect between 32bit / 64bit */
|
/* auto detect between 32bit / 64bit */
|
||||||
#define HAS_SIZEOF_INT128_64BIT (defined(__SIZEOF_INT128__) && defined(__LP64__))
|
#if defined(__SIZEOF_INT128__) && defined(__LP64__)
|
||||||
#define HAS_MSVC_64BIT (defined(_MSC_VER) && defined(_M_X64))
|
#define WC_HAS_SIZEOF_INT128_64BIT
|
||||||
#define HAS_GCC_4_4_64BIT (defined(__GNUC__) && defined(__LP64__) && \
|
#endif
|
||||||
((__GNUC__ > 4) || ((__GNUC__ == 4) && (__GNUC_MINOR__ >= 4))))
|
|
||||||
|
|
||||||
#if (HAS_SIZEOF_INT128_64BIT || HAS_MSVC_64BIT || HAS_GCC_4_4_64BIT)
|
#if defined(_MSC_VER) && defined(_M_X64)
|
||||||
|
#define WC_HAS_MSVC_64BIT
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if (defined(__GNUC__) && defined(__LP64__) && \
|
||||||
|
((__GNUC__ > 4) || ((__GNUC__ == 4) && (__GNUC_MINOR__ >= 4))))
|
||||||
|
#define WC_HAS_GCC_4_4_64BIT
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if (defined(WC_HAS_SIZEOF_INT128_64BIT) || defined(WC_HAS_MSVC_64BIT) || \
|
||||||
|
defined(WC_HAS_GCC_4_4_64BIT))
|
||||||
#define POLY130564
|
#define POLY130564
|
||||||
#else
|
#else
|
||||||
#define POLY130532
|
#define POLY130532
|
||||||
|
Reference in New Issue
Block a user