libosmocore 1.11.0.30-c17053.202506162026
Osmocom core library
|
#include <osmocom/core/bit32gen.h>
Go to the source code of this file.
Data Structures | |
struct | osmo_unaligned_cpu32 |
Macros | |
#define | OSMO_JHASH_MIX(a, b, c) |
#define | OSMO_JHASH_FINAL(a, b, c) |
#define | JHASH_INITVAL 0xdeadbeef |
Functions | |
static uint32_t | osmo_rol32 (uint32_t word, unsigned int shift) |
rol32 - rotate a 32-bit value left @word: value to rotate @shift: bits to roll | |
struct osmo_unaligned_cpu32 | __attribute__ ((__packed__)) |
static uint32_t | osmo_get_unaligned_cpu32 (const void *p) |
static uint32_t | osmo_jhash (const void *key, uint32_t length, uint32_t initval) |
static uint32_t | osmo_jhash2 (const uint32_t *k, uint32_t length, uint32_t initval) |
Variables | |
uint32_t | x |
#define JHASH_INITVAL 0xdeadbeef |
struct osmo_unaligned_cpu32 __attribute__ | ( | (__packed__) | ) |
References osmo_unaligned_cpu32::x.
Referenced by osmo_jhash().
References c, JHASH_INITVAL, length, osmo_get_unaligned_cpu32(), OSMO_JHASH_FINAL, and OSMO_JHASH_MIX.
References c, JHASH_INITVAL, length, OSMO_JHASH_FINAL, and OSMO_JHASH_MIX.
rol32 - rotate a 32-bit value left @word: value to rotate @shift: bits to roll
uint32_t x |
Referenced by __attribute__(), leading_bits(), osmo_base64_decode(), osmo_bit_reversal(), osmo_constant_time_cmp(), osmo_isqrt32(), osmo_revbytebits_32(), osmo_revbytebits_8(), osmo_store16be(), osmo_store16be_ext(), osmo_store16le(), osmo_store16le_ext(), osmo_store32be(), osmo_store32be_ext(), osmo_store32le(), osmo_store32le_ext(), osmo_store64be(), osmo_store64be_ext(), osmo_store64le(), and osmo_store64le_ext().