libmicrohttpd2

HTTP server C library (MHD 2.x, alpha)
Log | Files | Refs | README | LICENSE

commit 2402ff84e9dfd0391aa4e6fabb774fbf50608a5b
parent fb10c20644bef6a46a7f1661aa25aa44943cf81f
Author: Evgeny Grin (Karlson2k) <k2k@drgrin.dev>
Date:   Sun, 31 Aug 2025 14:25:22 +0200

mhd_bithelpers.h: fixed some comments

Diffstat:
Msrc/mhd2/mhd_bithelpers.h | 26++++++++++++--------------
1 file changed, 12 insertions(+), 14 deletions(-)

diff --git a/src/mhd2/mhd_bithelpers.h b/src/mhd2/mhd_bithelpers.h @@ -75,7 +75,7 @@ mhd_DATA_TRUNCATION_RUNTIME_CHECK_DISABLE ((uint32_t) __builtin_bswap32 ((uint32_t) value32)) #elif defined(_MSC_FULL_VER) && (! defined(__clang__) || (defined(__c2__) && \ defined(__OPTIMIZE__))) -/* Clang/C2 may not inline this function if optimizations are turned off. */ +/* Clang/C2 may not inline this function if optimisations are turned off. */ # ifndef __clang__ # pragma intrinsic(_byteswap_ulong) # endif /* ! __clang__ */ @@ -98,7 +98,7 @@ mhd_DATA_TRUNCATION_RUNTIME_CHECK_DISABLE ((uint64_t)__builtin_bswap64 ((uint64_t) value64)) #elif defined(_MSC_FULL_VER) && (! defined(__clang__) || (defined(__c2__) && \ defined(__OPTIMIZE__))) -/* Clang/C2 may not inline this function if optimizations are turned off. */ +/* Clang/C2 may not inline this function if optimisations are turned off. */ # ifndef __clang__ # pragma intrinsic(_byteswap_uint64) # endif /* ! __clang__ */ @@ -122,10 +122,9 @@ mhd_DATA_TRUNCATION_RUNTIME_CHECK_DISABLE /* mhd_PUT_64BIT_LE (addr, value64) - * put native-endian 64-bit value64 to addr - * in little-endian mode. + * put 64-bit value64 to addr in little-endian mode. */ -/* Slow version that works with unaligned addr and with any bytes order */ +/* Slow version that works with unaligned addr and with any byte order */ #define mhd_PUT_64BIT_LE_SLOW(addr, value64) do { \ ((uint8_t*) (addr))[0] = (uint8_t) ((uint64_t) (value64)); \ ((uint8_t*) (addr))[1] = (uint8_t) (((uint64_t) (value64)) >> 8); \ @@ -164,10 +163,9 @@ mhd_PUT_64BIT_LE_UNALIGN (void *dst, uint64_t value) /* mhd_PUT_32BIT_LE (addr, value32) - * put native-endian 32-bit value32 to addr - * in little-endian mode. + * put 32-bit value32 to addr in little-endian mode. */ -/* Slow version that works with unaligned addr and with any bytes order */ +/* Slow version that works with unaligned addr and with any byte order */ #define mhd_PUT_32BIT_LE_SLOW(addr, value32) do { \ ((uint8_t*) (addr))[0] = (uint8_t) ((uint32_t) (value32)); \ ((uint8_t*) (addr))[1] = (uint8_t) (((uint32_t) (value32)) >> 8); \ @@ -202,10 +200,10 @@ mhd_PUT_32BIT_LE_UNALIGN (void *dst, uint32_t value) /* mhd_GET_32BIT_LE (addr) - * get little-endian 32-bit value storied at addr + * get little-endian 32-bit value stored at addr * and return it in native-endian mode. */ -/* Slow version that works with unaligned addr and with any bytes order */ +/* Slow version that works with unaligned addr and with any byte order */ #define mhd_GET_32BIT_LE_SLOW(addr) \ ( ( (uint32_t) (((const uint8_t*) addr)[0])) \ | (((uint32_t) (((const uint8_t*) addr)[1])) << 8) \ @@ -240,7 +238,7 @@ mhd_GET_32BIT_LE_UNALIGN (const void *addr) * put native-endian 64-bit value64 to addr * in big-endian mode. */ -/* Slow version that works with unaligned addr and with any bytes order */ +/* Slow version that works with unaligned addr and with any byte order */ #define mhd_PUT_64BIT_BE_SLOW(addr, value64) do { \ ((uint8_t*) (addr))[7] = (uint8_t) ((uint64_t) (value64)); \ ((uint8_t*) (addr))[6] = (uint8_t) (((uint64_t) (value64)) >> 8); \ @@ -325,7 +323,7 @@ mhd_PUT_64BIT_BE_UNALIGN (void *dst, uint64_t value) #endif /* mhd_BYTE_ORDER != mhd_LITTLE_ENDIAN */ /* mhd_GET_32BIT_BE (addr) - * get big-endian 32-bit value storied at addr + * get big-endian 32-bit value stored at addr * and return it in native-endian mode. */ #if mhd_BYTE_ORDER == mhd_BIG_ENDIAN @@ -352,7 +350,7 @@ mhd_PUT_64BIT_BE_UNALIGN (void *dst, uint64_t value) */ #if defined(_MSC_FULL_VER) && (! defined(__clang__) || (defined(__c2__) && \ defined(__OPTIMIZE__))) -/* Clang/C2 do not inline this function if optimizations are turned off. */ +/* Clang/C2 do not inline this function if optimisations are turned off. */ # ifndef __clang__ # pragma intrinsic(_rotr) # endif /* ! __clang__ */ @@ -383,7 +381,7 @@ mhd_ROTR32 (uint32_t value32, unsigned int bits) */ #if defined(_MSC_FULL_VER) && (! defined(__clang__) || (defined(__c2__) && \ defined(__OPTIMIZE__))) -/* Clang/C2 do not inline this function if optimizations are turned off. */ +/* Clang/C2 do not inline this function if optimisations are turned off. */ # ifndef __clang__ # pragma intrinsic(_rotl) # endif /* ! __clang__ */