Derive-C
Loading...
Searching...
No Matches
utils.h File Reference
#include <stddef.h>
#include <stdint.h>
#include <derive-c/core/prelude.h>

Go to the source code of this file.

Functions

static size_t dc_apply_capacity_policy (size_t capacity)

Variables

static size_t const DC_INITIAL_CAPACITY = 32

Function Documentation

◆ dc_apply_capacity_policy()

size_t dc_apply_capacity_policy ( size_t capacity)
inlinestatic

Definition at line 7 of file utils.h.

7 {
8 // TODO(oliverkillane): play with overallocation policy
10}
static size_t capacity()
Definition template.h:66
static DC_INLINE DC_CONST size_t dc_math_next_power_of_2(size_t x)
Definition math.h:48

Variable Documentation

◆ DC_INITIAL_CAPACITY

size_t const DC_INITIAL_CAPACITY = 32
static

Definition at line 12 of file utils.h.