Derive-C
Loading...
Searching...
No Matches
utils.h File Reference
#include <stdbool.h>
#include <stddef.h>
Include dependency graph for utils.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

static bool deque_rebalance_policy (size_t total_size, size_t front_size)

Function Documentation

◆ deque_rebalance_policy()

bool deque_rebalance_policy ( size_t total_size,
size_t front_size )
inlinestatic

Definition at line 6 of file utils.h.

6 {
7 return total_size > 4 &&
8 (front_size > total_size / 2 + 1 || (total_size - front_size) > total_size / 2 + 1);
9}
Here is the caller graph for this function: