#include <stdint.h>
#include <stddef.h>
#include <derive-c/core/math.h>
#include <derive-c/core/prelude.h>
Go to the source code of this file.
◆ _dc_ankerl_dfd
◆ _dc_ankerl_buckets_capacity()
| DC_INTERNAL size_t _dc_ankerl_buckets_capacity |
( |
size_t | for_items | ) |
|
|
static |
Definition at line 11 of file utils.h.
11 {
14 }
16}
static const size_t dc_ankerl_initial_items
static DC_INLINE DC_CONST size_t dc_math_next_power_of_2(size_t x)
◆ _dc_ankerl_dfd_decrement_for_backshift()
Definition at line 32 of file utils.h.
32 {
36 }
38}
static const _dc_ankerl_dfd _dc_ankerl_dfd_max
static const _dc_ankerl_dfd _dc_ankerl_dfd_none
#define DC_ASSERT(expr,...)
◆ _dc_ankerl_dfd_increment()
◆ _dc_ankerl_dfd_new()
◆ _dc_ankerl_fingerprint_from_hash()
| DC_INTERNAL uint8_t _dc_ankerl_fingerprint_from_hash |
( |
size_t | hash | ) |
|
|
static |
Definition at line 18 of file utils.h.
18 {
19 uint8_t fp = (uint8_t)(hash >> (sizeof(size_t) * 8U - 8U));
20 return (fp == 0) ? 1U : fp;
21}
◆ _dc_ankerl_mdata_present()
◆ DC_STATIC_ASSERT() [1/2]
◆ DC_STATIC_ASSERT() [2/2]
◆ get_index() [1/2]
Definition at line 99 of file utils.h.
99 {
100 return (size_t)bucket->index_lo + ((size_t)bucket->index_hi << 32);
101}
◆ get_index() [2/2]
Definition at line 73 of file utils.h.
73 {
74 return (size_t)bucket->index;
75}
◆ new()
Definition at line 63 of file utils.h.
64 {
67 .mdata = mdata,
68 .index = (uint16_t)(index),
69 };
70}
DC_STATIC_CONSTANT size_t max_index_exclusive
#define DC_ASSUME(expr,...)
◆ _dc_ankerl_dfd_max
◆ _dc_ankerl_dfd_none
◆ dc_ankerl_initial_items
| const size_t dc_ankerl_initial_items = 256 |
|
static |
◆ max_index_exclusive