parent
bae9d5d780
commit
c5dff4b817
@ -283,22 +283,22 @@ Curl_sha512_256_finish(unsigned char *digest,
|
|||||||
#ifdef __GNUC__
|
#ifdef __GNUC__
|
||||||
# if defined(__has_attribute) && defined(__STDC_VERSION__)
|
# if defined(__has_attribute) && defined(__STDC_VERSION__)
|
||||||
# if __has_attribute(always_inline) && __STDC_VERSION__ >= 199901
|
# if __has_attribute(always_inline) && __STDC_VERSION__ >= 199901
|
||||||
# define MHDX_INLINE CURL_INLINE __attribute__((always_inline))
|
# define CURL_FORCEINLINE CURL_INLINE __attribute__((always_inline))
|
||||||
# endif
|
# endif
|
||||||
# endif
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !defined(MHDX_INLINE) && \
|
#if !defined(CURL_FORCEINLINE) && \
|
||||||
defined(_MSC_VER) && !defined(__GNUC__) && !defined(__clang__)
|
defined(_MSC_VER) && !defined(__GNUC__) && !defined(__clang__)
|
||||||
# if _MSC_VER >= 1400
|
# if _MSC_VER >= 1400
|
||||||
# define MHDX_INLINE __forceinline
|
# define CURL_FORCEINLINE __forceinline
|
||||||
# endif
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !defined(MHDX_INLINE)
|
#if !defined(CURL_FORCEINLINE)
|
||||||
/* Assume that 'CURL_INLINE' keyword works or the
|
/* Assume that 'CURL_INLINE' keyword works or the
|
||||||
* macro was already defined correctly. */
|
* macro was already defined correctly. */
|
||||||
# define MHDX_INLINE CURL_INLINE
|
# define CURL_FORCEINLINE CURL_INLINE
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Bits manipulation macros and functions.
|
/* Bits manipulation macros and functions.
|
||||||
@ -328,7 +328,7 @@ Curl_sha512_256_finish(unsigned char *digest,
|
|||||||
/* Defined as a function. The macro version may duplicate the binary code
|
/* Defined as a function. The macro version may duplicate the binary code
|
||||||
* size as each argument is used twice, so if any calculation is used
|
* size as each argument is used twice, so if any calculation is used
|
||||||
* as an argument, the calculation could be done twice. */
|
* as an argument, the calculation could be done twice. */
|
||||||
static MHDX_INLINE curl_uint64_t
|
static CURL_FORCEINLINE curl_uint64_t
|
||||||
MHDx_rotr64(curl_uint64_t value, unsigned int bits)
|
MHDx_rotr64(curl_uint64_t value, unsigned int bits)
|
||||||
{
|
{
|
||||||
bits %= 64;
|
bits %= 64;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user