Lines Matching refs:arraylen
24 test_sort(const char *desc, int *nums, const int arraylen) in test_sort() argument
29 SDL_Log("test: %s arraylen=%d", desc, arraylen); in test_sort()
31 SDL_qsort(nums, arraylen, sizeof (nums[0]), num_compare); in test_sort()
34 for (i = 1; i < arraylen; i++) { in test_sort()
77 const int arraylen = itervals[iteration]; in main() local
80 for (i = 0; i < arraylen; i++) { in main()
83 test_sort("already sorted", nums, arraylen); in main()
85 for (i = 0; i < arraylen; i++) { in main()
88 nums[arraylen-1] = -1; in main()
89 test_sort("already sorted except last element", nums, arraylen); in main()
91 for (i = 0; i < arraylen; i++) { in main()
92 nums[i] = (arraylen-1) - i; in main()
94 test_sort("reverse sorted", nums, arraylen); in main()
96 for (i = 0; i < arraylen; i++) { in main()
99 test_sort("random sorted", nums, arraylen); in main()