Derive-C
Loading...
Searching...
No Matches
utils.h
Go to the documentation of this file.
1
#pragma once
2
3
#include <stdbool.h>
4
#include <stddef.h>
5
6
static
inline
bool
deque_rebalance_policy
(
size_t
total_size,
size_t
front_size) {
7
return
total_size > 4 &&
8
(front_size > total_size / 2 + 1 || (total_size - front_size) > total_size / 2 + 1);
9
}
deque_rebalance_policy
static bool deque_rebalance_policy(size_t total_size, size_t front_size)
Definition
utils.h:6
src
derive-c
structures
deque
utils.h
Generated by
1.14.0