void smartlist_ensure_capacity(int *capacity, int size) { int higher = *capacity; if (size > higher) { if (size <= 16) { while (size > higher) { higher *= 2; } } } }
compiled with -O2, VRP1 seems guilty.
void smartlist_ ensure_ capacity( int *capacity, int size) {
int higher = *capacity;
if (size > higher) {
if (size <= 16) {
while (size > higher) {
higher *= 2;
}
}
}
}
compiled with -O2, VRP1 seems guilty.