Searched refs:n_left (Results 1 - 2 of 2) sorted by relevance

/PHP_TRUNK/ext/standard/
H A Darray.c1751 int j, n_elems, rnd_idx, n_left; local
1761 n_left = n_elems;
1765 while (--n_left) {
1767 RAND_RANGE(rnd_idx, 0, n_left, PHP_RAND_MAX);
1768 if (rnd_idx != n_left) {
1769 temp = elems[n_left];
1770 elems[n_left] = elems[rnd_idx];
H A Dstring.c5348 long n_elems, rnd_idx, n_left; local
5358 n_left = n_elems;
5360 while (--n_left) {
5362 RAND_RANGE(rnd_idx, 0, n_left, PHP_RAND_MAX);
5363 if (rnd_idx != n_left) {
5364 temp = str[n_left];
5365 str[n_left] = str[rnd_idx];

Completed in 17 milliseconds