Lines Matching defs:tail
138 const size_t tail = meta->kfm_tail;
141 return (head <= tail ? tail - head : nbytes + tail - head);
156 const size_t tail = meta->kfm_tail;
158 if (head <= tail) {
159 if (size <= tail - head) {
167 } else if (size <= nbytes + tail - head) {
191 const size_t tail = meta->kfm_tail;
193 if (head <= tail) {
194 if (size <= tail - head) {
204 } else if (size <= nbytes + tail - head) {
229 const size_t tail = meta->kfm_tail;
231 if (tail <= head) {
232 if (size <= head - tail) {
233 memcpy(dst + tail, src, size);
234 meta->kfm_tail = tail + size;
238 if (size <= nbytes - tail) {
239 memcpy(dst + tail, src, size);
240 meta->kfm_tail = tail + size;
241 } else if (size <= nbytes + tail - head) {
242 memcpy(dst + tail, src, nbytes - tail);
243 memcpy(dst, src + nbytes - tail,
244 size - (nbytes - tail));
245 meta->kfm_tail = size - (nbytes - tail);