Comment 2 for bug 1395019

Revision history for this message
In , Glisse-6 (glisse-6) wrote :

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.