Searched refs:max_capacity_power_of_2 (Results 1 – 1 of 1) sorted by relevance
391 static int cdeque_init(struct cdeque* d, int max_capacity_power_of_2) { in cdeque_init() argument392 if(d == NULL || max_capacity_power_of_2 == 0) in cdeque_init()395 d->cap_mask = max_capacity_power_of_2 - 1; in cdeque_init()398 if((max_capacity_power_of_2 & d->cap_mask) != 0) in cdeque_init()402 d->arr = malloc(sizeof(void*) * max_capacity_power_of_2); in cdeque_init()