Optimisation in aligned_vector_extend
This commit is contained in:
parent
38c7967ae2
commit
b6a5ac6ce6
|
@ -106,9 +106,7 @@ void* aligned_vector_resize(AlignedVector* vector, const unsigned int element_co
|
||||||
}
|
}
|
||||||
|
|
||||||
void* aligned_vector_extend(AlignedVector* vector, const unsigned int additional_count) {
|
void* aligned_vector_extend(AlignedVector* vector, const unsigned int additional_count) {
|
||||||
const unsigned int current = vector->size;
|
return aligned_vector_resize(vector, vector->size + additional_count);
|
||||||
aligned_vector_resize(vector, vector->size + additional_count);
|
|
||||||
return aligned_vector_at(vector, current);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void aligned_vector_shrink_to_fit(AlignedVector* vector) {
|
void aligned_vector_shrink_to_fit(AlignedVector* vector) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user