]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
tidy-up: rename `MHDX_INLINE` to `CURL_FORCEINLINE`
authorViktor Szakats <commit@vsz.me>
Fri, 27 Dec 2024 22:35:48 +0000 (23:35 +0100)
committerViktor Szakats <commit@vsz.me>
Sat, 28 Dec 2024 09:34:35 +0000 (10:34 +0100)
Closes #15839

lib/curl_sha512_256.c

index b8cf9b3002451b1e6bdcab5c76463c06e2e2c5f3..35926ef32ba775b3049b3becd24063eb690982e4 100644 (file)
@@ -283,22 +283,22 @@ Curl_sha512_256_finish(unsigned char *digest,
 #ifdef __GNUC__
 #  if defined(__has_attribute) && defined(__STDC_VERSION__)
 #    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
 
-#if !defined(MHDX_INLINE) && \
+#if !defined(CURL_FORCEINLINE) && \
   defined(_MSC_VER) && !defined(__GNUC__) && !defined(__clang__)
 #  if _MSC_VER >= 1400
-#    define MHDX_INLINE __forceinline
+#    define CURL_FORCEINLINE __forceinline
 #  endif
 #endif
 
-#if !defined(MHDX_INLINE)
+#if !defined(CURL_FORCEINLINE)
    /* Assume that 'CURL_INLINE' keyword works or the
     * macro was already defined correctly. */
-#  define MHDX_INLINE CURL_INLINE
+#  define CURL_FORCEINLINE CURL_INLINE
 #endif
 
 /* 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
  * size as each argument is used twice, so if any calculation is used
  * 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)
 {
   bits %= 64;