Lines Matching refs:step
9 int64_t step = 1; in _jbi_consume_eq() local
29 if (step > 0) { in _jbi_consume_eq()
30 --step; in _jbi_consume_eq()
31 } else if (step < 0) { in _jbi_consume_eq()
32 ++step; in _jbi_consume_eq()
34 if (!step) { in _jbi_consume_eq()
41 step = 1; in _jbi_consume_eq()
42 rc = consumer(ctx, 0, id, &step, &matched, 0); in _jbi_consume_eq()
45 } while (step && !(rc = iwkv_cursor_to(cur, step > 0 ? midx->cursor_step : cursor_reverse_step))); in _jbi_consume_eq()
72 int64_t step = 1; in _jbi_consume_in_node() local
112 if (step > 0) { in _jbi_consume_in_node()
113 --step; in _jbi_consume_in_node()
114 } else if (step < 0) { in _jbi_consume_in_node()
115 ++step; in _jbi_consume_in_node()
117 if (!step) { in _jbi_consume_in_node()
123 step = 1; in _jbi_consume_in_node()
124 rc = consumer(ctx, 0, id, &step, &matched, 0); in _jbi_consume_in_node()
127 } while (step && !(rc = iwkv_cursor_to(cur, IWKV_CURSOR_PREV))); // !!! only one direction in _jbi_consume_in_node()
148 int64_t step = 1, prev_id = 0; in _jbi_consume_scan() local
183 if (step > 0) { in _jbi_consume_scan()
184 --step; in _jbi_consume_scan()
185 } else if (step < 0) { in _jbi_consume_scan()
186 ++step; in _jbi_consume_scan()
188 if (!step) { in _jbi_consume_scan()
203 step = 1; in _jbi_consume_scan()
205 rc = consumer(ctx, 0, id, &step, &matched, 0); in _jbi_consume_scan()
211 prev_id = step < 1 ? 0 : id; in _jbi_consume_scan()
214 } while (step && !(rc = iwkv_cursor_to(cur, step > 0 ? midx->cursor_step : cursor_reverse_step))); in _jbi_consume_scan()
229 int64_t step = 1, prev_id = 0; in _jbi_consume_noxpr_scan() local
241 if (step > 0) { in _jbi_consume_noxpr_scan()
242 --step; in _jbi_consume_noxpr_scan()
243 } else if (step < 0) { in _jbi_consume_noxpr_scan()
244 ++step; in _jbi_consume_noxpr_scan()
246 if (!step) { in _jbi_consume_noxpr_scan()
251 step = 1; in _jbi_consume_noxpr_scan()
253 rc = consumer(ctx, 0, id, &step, &matched, 0); in _jbi_consume_noxpr_scan()
255 prev_id = step < 1 ? 0 : id; in _jbi_consume_noxpr_scan()
258 } while (step && !(rc = iwkv_cursor_to(cur, step > 0 ? midx->cursor_step : cursor_reverse_step))); in _jbi_consume_noxpr_scan()