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
6static 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}
static bool deque_rebalance_policy(size_t total_size, size_t front_size)
Definition utils.h:6