Lines Matching defs:tail
12 int tail;
16 #define CIRC_CNT(head,tail,size) (((head) - (tail)) & ((size)-1))
19 as a completely full buffer has head == tail, which is the same as
21 #define CIRC_SPACE(head,tail,size) CIRC_CNT((tail),((head)+1),(size))
24 accessing head and tail more than once, so they can change
26 #define CIRC_CNT_TO_END(head,tail,size) \
27 ({int end = (size) - (tail); \
32 #define CIRC_SPACE_TO_END(head,tail,size) \
34 int n = (end + (tail)) & ((size)-1); \