Go to the source code of this file.
|
#define | QHASH_LOG2_KEYS_PER_BUCKET 2 |
|
#define | QHASH_KEYS_PER_BUCKET (1 << QHASH_LOG2_KEYS_PER_BUCKET) |
|
#define | qhash_resize(v, n) (v) = _qhash_resize ((v), (n), sizeof ((v)[0])) |
|
#define | qhash_foreach(var, v, body) |
|
#define | qhash_set_multiple(v, keys, n, results) (v) = _qhash_set_multiple ((v), sizeof ((v)[0]), (keys), (n), (results)) |
|
#define | qhash_unset_multiple(v, keys, n, results) _qhash_unset_multiple ((v), sizeof ((v)[0]), (keys), (n), (results)) |
|
#define | qhash_get(v, key) |
|
#define | qhash_set(v, k) |
|
#define | qhash_unset(v, k) |
|
◆ qhash_foreach
#define qhash_foreach |
( |
|
var, |
|
|
|
v, |
|
|
|
body |
|
) |
| |
◆ qhash_get
#define qhash_get |
( |
|
v, |
|
|
|
key |
|
) |
| |
Value:({ \
uword _qhash_get_k = (
key); \
qhash_get_first_match ((v), &_qhash_get_k, 1, &_qhash_get_k); \
})
Definition at line 115 of file qhash.h.
◆ QHASH_KEYS_PER_BUCKET
◆ QHASH_LOG2_KEYS_PER_BUCKET
#define QHASH_LOG2_KEYS_PER_BUCKET 2 |
◆ qhash_resize
#define qhash_resize |
( |
|
v, |
|
|
|
n |
|
) |
| (v) = _qhash_resize ((v), (n), sizeof ((v)[0])) |
◆ qhash_set
#define qhash_set |
( |
|
v, |
|
|
|
k |
|
) |
| |
Value:({ \
uword _qhash_set_k = (k); \
qhash_set_multiple ((v), &_qhash_set_k, 1, &_qhash_set_k); \
_qhash_set_k; \
})
Definition at line 121 of file qhash.h.
◆ qhash_set_multiple
#define qhash_set_multiple |
( |
|
v, |
|
|
|
keys, |
|
|
|
n, |
|
|
|
results |
|
) |
| (v) = _qhash_set_multiple ((v), sizeof ((v)[0]), (keys), (n), (results)) |
◆ qhash_unset
#define qhash_unset |
( |
|
v, |
|
|
|
k |
|
) |
| |
Value:({ \
uword _qhash_unset_k = (k); \
qhash_unset_multiple ((v), &_qhash_unset_k, 1, &_qhash_unset_k); \
_qhash_unset_k; \
})
Definition at line 128 of file qhash.h.
◆ qhash_unset_multiple
#define qhash_unset_multiple |
( |
|
v, |
|
|
|
keys, |
|
|
|
n, |
|
|
|
results |
|
) |
| _qhash_unset_multiple ((v), sizeof ((v)[0]), (keys), (n), (results)) |
◆ qhash_elts()
static uword qhash_elts |
( |
void * |
v | ) |
|
|
inlinestatic |
◆ qhash_get_first_match()
u32 qhash_get_first_match |
( |
void * |
v, |
|
|
uword * |
search_keys, |
|
|
uword |
n_search_keys, |
|
|
uword * |
matching_key |
|
) |
| |
◆ qhash_get_multiple()
void qhash_get_multiple |
( |
void * |
v, |
|
|
uword * |
search_keys, |
|
|
uword |
n_search_keys, |
|
|
u32 * |
result_indices |
|
) |
| |
◆ qhash_hash_mix()
◆ qhash_header()
static qhash_t* qhash_header |
( |
void * |
v | ) |
|
|
inlinestatic |
◆ qhash_n_overflow()
static uword qhash_n_overflow |
( |
void * |
v | ) |
|
|
inlinestatic |