Lines Matching refs:head
11 int head;
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) \
28 int n = ((head) + end) & ((size)-1); \
32 #define CIRC_SPACE_TO_END(head,tail,size) \
33 ({int end = (size) - 1 - (head); \