GNU libmicrohttpd 1.0.1
|
macros for bits manipulations More...
Go to the source code of this file.
Macros | |
#define | __has_builtin(x) |
#define | _MHD_has_builtin_dummy 1 |
#define | _MHD_BYTES_SWAP32(value32) |
#define | _MHD_BYTES_SWAP64(value64) |
#define | _MHD_PUT_64BIT_LE_SLOW(addr, value64) |
#define | _MHD_PUT_64BIT_LE(addr, value64) |
#define | _MHD_PUT_64BIT_LE_UNALIGNED 1 |
#define | _MHD_PUT_32BIT_LE(addr, value32) |
#define | _MHD_PUT_32BIT_LE_UNALIGNED 1 |
#define | _MHD_GET_32BIT_LE(addr) |
#define | _MHD_GET_32BIT_LE_UNALIGNED 1 |
#define | _MHD_PUT_64BIT_BE_SLOW(addr, value64) |
#define | _MHD_PUT_64BIT_BE(addr, value64) |
#define | _MHD_PUT_64BIT_BE_UNALIGNED 1 |
#define | _MHD_GET_64BIT_BE(addr) |
#define | _MHD_GET_64BIT_BE_ALLOW_UNALIGNED 1 |
#define | _MHD_PUT_32BIT_BE(addr, value32) |
#define | _MHD_PUT_32BIT_BE_UNALIGNED 1 |
#define | _MHD_GET_32BIT_BE(addr) |
#define | _MHD_GET_32BIT_BE_UNALIGNED 1 |
Functions | |
_MHD_static_inline void | _MHD_PUT_64BIT_LE_SAFE (void *dst, uint64_t value) |
_MHD_static_inline void | _MHD_PUT_64BIT_BE_SAFE (void *dst, uint64_t value) |
_MHD_static_inline uint32_t | _MHD_ROTR32 (uint32_t value32, int bits) |
_MHD_static_inline uint32_t | _MHD_ROTL32 (uint32_t value32, int bits) |
_MHD_static_inline uint64_t | _MHD_ROTR64 (uint64_t value64, int bits) |
macros for bits manipulations
Definition in file mhd_bithelpers.h.
#define __has_builtin | ( | x | ) |
Definition at line 44 of file mhd_bithelpers.h.
#define _MHD_BYTES_SWAP32 | ( | value32 | ) |
Definition at line 66 of file mhd_bithelpers.h.
#define _MHD_BYTES_SWAP64 | ( | value64 | ) |
Definition at line 89 of file mhd_bithelpers.h.
#define _MHD_GET_32BIT_BE | ( | addr | ) |
Definition at line 295 of file mhd_bithelpers.h.
#define _MHD_GET_32BIT_BE_UNALIGNED 1 |
Definition at line 301 of file mhd_bithelpers.h.
#define _MHD_GET_32BIT_LE | ( | addr | ) |
Definition at line 185 of file mhd_bithelpers.h.
#define _MHD_GET_32BIT_LE_UNALIGNED 1 |
Definition at line 191 of file mhd_bithelpers.h.
#define _MHD_GET_64BIT_BE | ( | addr | ) |
Definition at line 247 of file mhd_bithelpers.h.
#define _MHD_GET_64BIT_BE_ALLOW_UNALIGNED 1 |
Definition at line 257 of file mhd_bithelpers.h.
#define _MHD_has_builtin_dummy 1 |
Definition at line 45 of file mhd_bithelpers.h.
#define _MHD_PUT_32BIT_BE | ( | addr, | |
value32 ) |
Definition at line 273 of file mhd_bithelpers.h.
Referenced by MHD_SHA1_finish(), and MHD_SHA256_finish().
#define _MHD_PUT_32BIT_BE_UNALIGNED 1 |
Definition at line 280 of file mhd_bithelpers.h.
#define _MHD_PUT_32BIT_LE | ( | addr, | |
value32 ) |
Definition at line 163 of file mhd_bithelpers.h.
Referenced by MHD_MD5_finish().
#define _MHD_PUT_32BIT_LE_UNALIGNED 1 |
Definition at line 170 of file mhd_bithelpers.h.
#define _MHD_PUT_64BIT_BE | ( | addr, | |
value64 ) |
Definition at line 218 of file mhd_bithelpers.h.
Referenced by _MHD_PUT_64BIT_BE_SAFE(), and MHD_SHA512_256_finish().
#define _MHD_PUT_64BIT_BE_SLOW | ( | addr, | |
value64 ) |
Definition at line 200 of file mhd_bithelpers.h.
Referenced by _MHD_PUT_64BIT_BE_SAFE().
#define _MHD_PUT_64BIT_BE_UNALIGNED 1 |
Definition at line 220 of file mhd_bithelpers.h.
#define _MHD_PUT_64BIT_LE | ( | addr, | |
value64 ) |
Definition at line 124 of file mhd_bithelpers.h.
Referenced by _MHD_PUT_64BIT_LE_SAFE().
#define _MHD_PUT_64BIT_LE_SLOW | ( | addr, | |
value64 ) |
Definition at line 106 of file mhd_bithelpers.h.
Referenced by _MHD_PUT_64BIT_LE_SAFE().
#define _MHD_PUT_64BIT_LE_UNALIGNED 1 |
Definition at line 135 of file mhd_bithelpers.h.
_MHD_static_inline void _MHD_PUT_64BIT_BE_SAFE | ( | void * | dst, |
uint64_t | value ) |
Definition at line 225 of file mhd_bithelpers.h.
References _MHD_PUT_64BIT_BE, _MHD_PUT_64BIT_BE_SLOW, and _MHD_UINT64_ALIGN.
Referenced by MHD_SHA1_finish(), and MHD_SHA256_finish().
_MHD_static_inline void _MHD_PUT_64BIT_LE_SAFE | ( | void * | dst, |
uint64_t | value ) |
Definition at line 140 of file mhd_bithelpers.h.
References _MHD_PUT_64BIT_LE, _MHD_PUT_64BIT_LE_SLOW, and _MHD_UINT64_ALIGN.
Referenced by MHD_MD5_finish().
_MHD_static_inline uint32_t _MHD_ROTL32 | ( | uint32_t | value32, |
int | bits ) |
Rotate left 32-bit value by number of bits. bits parameter must be more than zero and must be less than 32.
Definition at line 352 of file mhd_bithelpers.h.
Referenced by calculate_add_nonce_with_retry(), and fast_simple_hash().
_MHD_static_inline uint32_t _MHD_ROTR32 | ( | uint32_t | value32, |
int | bits ) |
Rotate right 32-bit value by number of bits. bits parameter must be more than zero and must be less than 32.
Definition at line 322 of file mhd_bithelpers.h.
Referenced by calculate_add_nonce_with_retry().
_MHD_static_inline uint64_t _MHD_ROTR64 | ( | uint64_t | value64, |
int | bits ) |
Rotate right 64-bit value by number of bits. bits parameter must be more than zero and must be less than 64.
Definition at line 382 of file mhd_bithelpers.h.