Lines Matching refs:bp
171 if (bp && ((uint32_t)bp >= (sizeof(buf) - (size_t)(margin)) || (force))) { \
172 if ((int)write(t->fd, buf, (size_t)bp) != bp) { \
174 bp, errno); \
177 t->c += (unsigned int)bp; \
178 bp = 0; \
401 int bp = 0;
403 bp += g16(&buf[bp], 0);
404 bp += g16(&buf[bp], 0);
405 bp += g32(&buf[bp], 0);
406 if ((int)write(t->fd, buf, (size_t)bp) != bp)
408 t->c += (unsigned int)bp;
409 bp = 0;
435 tif->owner->ofs_last_inst_file = t->c + (unsigned int)bp;
440 bp += wq32(&buf[bp], temp);
441 bp += wq32(&buf[bp], tif->file_index);
442 bp += wq32(&buf[bp], tif->total);
447 memcpy(&buf[bp], &tif->vli, (size_t)tif->count);
448 bp += tif->count;
453 memcpy(&buf[bp], &i->vli, (size_t)i->count);
454 bp += i->count;
550 int bp = 0, sline, chars, m;
572 bp += g16(&linetable[bp], 0);
573 bp += g16(&linetable[bp], 0);
574 bp += g32(&linetable[bp], 0);
592 bp += wq32(&linetable[bp], (uint32_t)t->chars_in_line);
593 if ((unsigned int)bp > sizeof(linetable) - 6) {
594 if ((int)write(t->fd, linetable, (unsigned int)bp) != bp) {
599 t->c += (unsigned int)bp;
600 bp = 0;
1052 if (bp) {
1053 if ((int)write(t->fd, linetable, (size_t)bp) != bp)
1055 t->c += (unsigned int)bp;
1056 bp = 0;
1080 bp = 0;
1103 int n, bp, sp = 0, do_parent;
1163 bp = 0;
1166 fp->ofs = t->c + (unsigned int)bp;
1170 bp += wq32(&buf[bp], fp->line_table_ofs);
1171 bp += wq32(&buf[bp], (uint32_t)fp->total_lines);
1172 bp += wq32(&buf[bp], (uint32_t)n);
1173 memcpy(&buf[bp], fp->filepath, (unsigned int)n);
1174 bp += n;
1188 g32(buf, t->c + (unsigned int)bp);
1193 if (lseek(t->fd, (off_t)(t->c + (unsigned int)bp), SEEK_SET) < 0)
1199 bp = 0;
1202 g32(buf + bp, fp->ofs);
1203 bp += 4;
1214 bp = 0;
1238 e->ofs = t->c + (unsigned int)bp;
1244 bp += wq32(&buf[bp], e->ofs_last_inst_file);
1245 bp += wq32(&buf[bp], e->child_count);
1246 bp += wq32(&buf[bp], e->instance_count);
1247 bp += wq32(&buf[bp], e->agg_inst_count);
1284 bp += wq32(&buf[bp], e1->ofs);
1285 bp += wq32(&buf[bp], e1->instance_count);
1286 bp += wq32(&buf[bp], e1->agg_inst_count);
1287 bp += wq32(&buf[bp], e1->agg_child_count);
1290 bp += wq32(&buf[bp], e1->suffix_len);
1291 memmove(&buf[bp], e1->suffix, e1->suffix_len);
1292 bp += (int)e1->suffix_len;
1294 bp += wq32(&buf[bp], 1);
1295 buf[bp++] = e1->c;