Dash Core Source Documentation (0.16.0.1)
Find detailed information regarding the Dash Core source code.
Go to the documentation of this file. 5 #ifndef BITCOIN_CRYPTO_COMMON_H 6 #define BITCOIN_CRYPTO_COMMON_H 8 #if defined(HAVE_CONFIG_H) 9 #include <config/dash-config.h> 17 uint16_t
static inline ReadLE16(
const unsigned char* ptr)
24 uint32_t
static inline ReadLE32(
const unsigned char* ptr)
31 uint64_t
static inline ReadLE64(
const unsigned char* ptr)
38 void static inline WriteLE16(
unsigned char* ptr, uint16_t x)
44 void static inline WriteLE32(
unsigned char* ptr, uint32_t x)
50 void static inline WriteLE64(
unsigned char* ptr, uint64_t x)
56 uint32_t
static inline ReadBE32(
const unsigned char* ptr)
63 uint64_t
static inline ReadBE64(
const unsigned char* ptr)
70 void static inline WriteBE32(
unsigned char* ptr, uint32_t x)
76 void static inline WriteBE64(
unsigned char* ptr, uint64_t x)
85 #if HAVE_DECL___BUILTIN_CLZL 86 if (
sizeof(
unsigned long) >=
sizeof(uint64_t)) {
87 return x ? 8 *
sizeof(
unsigned long) - __builtin_clzl(x) : 0;
90 #if HAVE_DECL___BUILTIN_CLZLL 91 if (
sizeof(
unsigned long long) >=
sizeof(uint64_t)) {
92 return x ? 8 *
sizeof(
unsigned long long) - __builtin_clzll(x) : 0;
103 #endif // BITCOIN_CRYPTO_COMMON_H static void WriteLE16(unsigned char *ptr, uint16_t x)
static void WriteLE64(unsigned char *ptr, uint64_t x)
uint64_t htobe64(uint64_t host_64bits)
static void WriteLE32(unsigned char *ptr, uint32_t x)
uint32_t be32toh(uint32_t big_endian_32bits)
static void WriteBE64(unsigned char *ptr, uint64_t x)
static uint16_t ReadLE16(const unsigned char *ptr)
uint32_t htole32(uint32_t host_32bits)
uint32_t htobe32(uint32_t host_32bits)
uint64_t be64toh(uint64_t big_endian_64bits)
static uint32_t ReadBE32(const unsigned char *ptr)
static uint64_t ReadBE64(const unsigned char *ptr)
uint16_t le16toh(uint16_t little_endian_16bits)
static uint64_t CountBits(uint64_t x)
Return the smallest number n such that (x >> n) == 0 (or 64 if the highest bit in x is set...
static uint32_t ReadLE32(const unsigned char *ptr)
uint16_t htole16(uint16_t host_16bits)
uint64_t le64toh(uint64_t little_endian_64bits)
void * memcpy(void *a, const void *b, size_t c)
uint64_t htole64(uint64_t host_64bits)
static uint64_t ReadLE64(const unsigned char *ptr)
static void WriteBE32(unsigned char *ptr, uint32_t x)
uint32_t le32toh(uint32_t little_endian_32bits)