Searched refs:sort_comp (Results 1 – 2 of 2) sorted by relevance
| /src/sys/contrib/openzfs/module/lua/ |
| H A D | ltablib.c | 169 static int sort_comp (lua_State *L, int a, int b) { in sort_comp() function 190 if (sort_comp(L, -1, -2)) /* a[u] < a[l]? */ in auxsort() 198 if (sort_comp(L, -2, -1)) /* a[i]<a[l]? */ in auxsort() 203 if (sort_comp(L, -1, -2)) /* a[u]<a[i]? */ in auxsort() 217 while (lua_rawgeti(L, 1, ++i), sort_comp(L, -1, -2)) { in auxsort() 222 while (lua_rawgeti(L, 1, --j), sort_comp(L, -3, -1)) { in auxsort()
|
| /src/contrib/lua/src/ |
| H A D | ltablib.c | 275 static int sort_comp (lua_State *L, int a, int b) { in sort_comp() function 304 while ((void)lua_geti(L, 1, ++i), sort_comp(L, -1, -2)) { in partition() 311 while ((void)lua_geti(L, 1, --j), sort_comp(L, -3, -1)) { in partition() 353 if (sort_comp(L, -1, -2)) /* a[up] < a[lo]? */ in auxsort() 365 if (sort_comp(L, -2, -1)) /* a[p] < a[lo]? */ in auxsort() 370 if (sort_comp(L, -1, -2)) /* a[up] < a[p]? */ in auxsort()
|