32 const uint8_t *q = (uint8_t *)p;
34 for(i = 0; i <
n; r |= ((uint64_t)q[i] << (8 * i)), i++);
49 const uint8_t *q = (uint8_t *)p;
51 for(i = 0; i <
n; r |= ((uint64_t)q[i] << (64 - 8* (1 + i))), i++);
64 const uint8_t *q = (uint8_t *)p;
66 for(i = 0; i <
n; r |= ((uint64_t)q[i] << (64 - 8* (1 + i + (
sizeof(r) -
n)))), i++);
79 uint8_t *q = (uint8_t *)p;
81 for(i = 0; i <
n; q[i] = (
x >> i * 8) & 0xFF, i++);
92 uint8_t *q = (uint8_t *)p;
94 for(i = 0; i <
n; q[i] = (
x >> ((
n - 1 - i) * 8)) & 0xFF, i++);
static uint64_t osmo_load64le_ext(const void *p, uint8_t n)
load unaligned n-byte integer (little-endian encoding) into uint64_t, into the least significant octe...
Definition: bit64gen.h:28
static uint64_t osmo_load64le(const void *p)
load unaligned 64-bit integer (little-endian encoding)
Definition: bit64gen.h:102
static void osmo_store64be(uint64_t x, void *p)
store unaligned 64-bit integer (big-endian encoding)
Definition: bit64gen.h:121
static uint64_t osmo_load64be_ext(const void *p, uint8_t n)
load unaligned n-byte integer (big-endian encoding) into uint64_t, into the MOST significant octets.
Definition: bit64gen.h:45
static uint64_t osmo_load64be(const void *p)
load unaligned 64-bit integer (big-endian encoding)
Definition: bit64gen.h:108
static void osmo_store64be_ext(uint64_t x, void *p, uint8_t n)
store unaligned n-byte integer (big-endian encoding) from uint64_t
Definition: bit64gen.h:89
static uint64_t osmo_load64be_ext_2(const void *p, uint8_t n)
load unaligned n-byte integer (big-endian encoding) into uint64_t, into the least significant octets.
Definition: bit64gen.h:60
static void osmo_store64le(uint64_t x, void *p)
store unaligned 64-bit integer (little-endian encoding)
Definition: bit64gen.h:115
static void osmo_store64le_ext(uint64_t x, void *p, uint8_t n)
store unaligned n-byte integer (little-endian encoding) from uint64_t
Definition: bit64gen.h:76
write Write running configuration to or terminal n Write configuration to the copy running config startup Copy configuration n Copy running config to n Copy running config to startup write Write running configuration to or terminal n Write to terminal n
#define OSMO_ASSERT(exp)
Helper macro to terminate when an assertion fails.
Definition: utils.h:113
uint32_t x
Definition: jhash.h:0