Searched refs:r (Results 1 – 2 of 2) sorted by relevance
/ext-ds/src/ds/ |
H A D | ds_vector.c | 387 void ds_vector_rotate(ds_vector_t *vector, zend_long r) in ds_vector_rotate() argument 397 if (r < 0) r = n - (llabs(r) % n); in ds_vector_rotate() 398 else if (r > n) r = r % n; in ds_vector_rotate() 401 if (r == 0 || r == n) return; in ds_vector_rotate() 404 b = a + r; // Pivot in ds_vector_rotate()
|
H A D | ds_deque.c | 121 zend_long r = deque->capacity - h; // Number of values on the right. in ds_deque_reset_head() local 125 if (r < (h - t)) { in ds_deque_reset_head() 126 ds_deque_memmove(deque, r, 0, t); in ds_deque_reset_head() 127 ds_deque_memmove(deque, 0, h, r); in ds_deque_reset_head() 134 memcpy(&buffer[0], &deque->buffer[h], r * sizeof(zval)); in ds_deque_reset_head() 135 memcpy(&buffer[r], &deque->buffer[0], t * sizeof(zval)); in ds_deque_reset_head()
|
Completed in 7 milliseconds