Lines Matching refs:childpos
55 Py_ssize_t startpos, endpos, childpos, limit; in siftup() local
72 childpos = 2*pos + 1; /* leftmost child position */ in siftup()
73 if (childpos + 1 < endpos) { in siftup()
75 arr[childpos], in siftup()
76 arr[childpos + 1], in siftup()
80 childpos += ((unsigned)cmp ^ 1); /* increment when cmp==0 */ in siftup()
89 tmp1 = arr[childpos]; in siftup()
91 arr[childpos] = tmp2; in siftup()
93 pos = childpos; in siftup()
409 Py_ssize_t startpos, endpos, childpos, limit; in siftup_max() local
426 childpos = 2*pos + 1; /* leftmost child position */ in siftup_max()
427 if (childpos + 1 < endpos) { in siftup_max()
429 arr[childpos + 1], in siftup_max()
430 arr[childpos], in siftup_max()
434 childpos += ((unsigned)cmp ^ 1); /* increment when cmp==0 */ in siftup_max()
443 tmp1 = arr[childpos]; in siftup_max()
445 arr[childpos] = tmp2; in siftup_max()
447 pos = childpos; in siftup_max()