Derive-C
Loading...
Searching...
No Matches
utils.h
Go to the documentation of this file.
1#pragma once
2#include <stddef.h>
3#include <stdint.h>
4
6
7static inline size_t dc_apply_capacity_policy(size_t capacity) {
8 // TODO(oliverkillane): play with overallocation policy
10}
11
12static size_t const DC_INITIAL_CAPACITY = 32;
static size_t capacity()
Definition template.h:66
static size_t dc_apply_capacity_policy(size_t capacity)
Definition utils.h:7
static size_t const DC_INITIAL_CAPACITY
Definition utils.h:12
static DC_INLINE DC_CONST size_t dc_math_next_power_of_2(size_t x)
Definition math.h:48