Home | History | Annotate | Download | only in sunspider-0.9

Lines Matching full:perm1

8    var perm1 = Array(n);
14 for (var i = 0; i < n; i++) perm1[i] = i;
21 for(var i=0; i<n; i++) s += (perm1[i]+1).toString();
26 if (!(perm1[0] == 0 || perm1[m] == m)) {
27 for (var i = 0; i < n; i++) perm[i] = perm1[i];
42 for (var i = 0; i < n; i++) maxPerm[i] = perm1[i];
48 var perm0 = perm1[0];
52 perm1[i] = perm1[j];
55 perm1[r] = perm0;