2 #include <../../config.h>
38 static long ListImpl_best_new_sizes[] = {
39 48, 112, 240, 496, 1008, 2032, 4080, 8176,
40 16368, 32752, 65520, 131056, 262128, 524272, 1048560,
41 2097136, 4194288, 8388592, 16777200, 33554416, 67108848,
42 134217712, 268435440, 536870896, 1073741808, 2147483632
46 for (
int i = 0;
i <
sizeof(ListImpl_best_new_sizes)/
sizeof(
long);
i++) {
47 if (count * size < ListImpl_best_new_sizes[
i]) {
48 return ListImpl_best_new_sizes[
i] / size;
55 #if defined(WIN32) || MAC
56 printf(
"internal error: list index %ld out of range\n",
i);
58 fprintf(stderr,
"internal error: list index %ld out of range\n",
i);
void ListImpl_range_error(long i)
implementList(__AnyPtrList, __AnyPtr) static long ListImpl_best_new_sizes[]
long ListImpl_best_new_count(long count, unsigned int size, unsigned int m)