Lines Matching defs:size
57 * - Capacity is the size of the underlying vector.
105 moduloAdd(uint32_t op1, uint32_t op2, uint32_t size)
107 return (op1 + op2) % size;
112 moduloSub(uint32_t op1, uint32_t op2, uint32_t size)
114 int32_t ret = sub(op1, op2, size);
115 return ret >= 0 ? ret : ret + size;
119 sub(uint32_t op1, uint32_t op2, uint32_t size)
122 return (op1 - op2) % size;
124 return -((op2 - op1) % size);
413 explicit CircularQueue(uint32_t size = 0)
414 : _capacity(size), _head(1), _tail(0), _empty(true), _round(0)
416 Base::resize(size);
497 uint32_t size() const
582 * the (size-1)^{th} element, or if the head is the n^{th} element and