|
|
@ -54,7 +54,8 @@ static __inline void **get_mutable_bucket(const chunked_vector *buckets, |
|
|
|
return &buckets->rest_[rest_index][index % VECTOR_CHUNK_SIZE]; |
|
|
|
return &buckets->rest_[rest_index][index % VECTOR_CHUNK_SIZE]; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
static __inline void *get_bucket(const chunked_vector *buckets, uint32_t index) { |
|
|
|
static __inline void *get_bucket(const chunked_vector *buckets, |
|
|
|
|
|
|
|
uint32_t index) { |
|
|
|
if (index < VECTOR_CHUNK_SIZE) { |
|
|
|
if (index < VECTOR_CHUNK_SIZE) { |
|
|
|
return buckets->first_[index]; |
|
|
|
return buckets->first_[index]; |
|
|
|
} |
|
|
|
} |
|
|
|