Searched refs:sort_comp (Results 1 – 2 of 2) sorted by relevance
/freebsd/sys/contrib/openzfs/module/lua/ |
H A D | ltablib.c | 168 static int sort_comp (lua_State *L, int a, int b) { in sort_comp() function 189 if (sort_comp(L, -1, -2)) /* a[u] < a[l]? */ in auxsort() 197 if (sort_comp(L, -2, -1)) /* a[i]<a[l]? */ in auxsort() 202 if (sort_comp(L, -1, -2)) /* a[u]<a[i]? */ in auxsort() 216 while (lua_rawgeti(L, 1, ++i), sort_comp(L, -1, -2)) { in auxsort() 221 while (lua_rawgeti(L, 1, --j), sort_comp(L, -3, -1)) { in auxsort()
|
/freebsd/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()
|