Lines Matching refs:bufcntp
121 if (*d->bufcntp + 4 > d->bufsize)
122 return *d->bufcntp + 4 - d->bufsize;
124 d->bufp[(*d->bufcntp)++] = '%';
125 d->bufp[(*d->bufcntp)++] = ch;
126 d->bufp[(*d->bufcntp)++] = 's';
127 d->bufp[(*d->bufcntp)++] = ':';
163 size_t *bufcntp = d->bufcntp;
201 if (*bufcntp + n + 1 > bufsize)
202 return *bufcntp + n + 1 - bufsize;
204 memcpy (&bufp[*bufcntp], tmpbuf, n + 1);
205 *bufcntp += n;
275 if (*bufcntp + n + 1 > bufsize)
276 return *bufcntp + n + 1 - bufsize;
278 memcpy (&bufp[*bufcntp], tmpbuf, n + 1);
279 *bufcntp += n;
373 if (*bufcntp + (cp - tmpbuf) > bufsize)
374 return *bufcntp + (cp - tmpbuf) - bufsize;
376 memcpy (&bufp[*bufcntp], tmpbuf, cp - tmpbuf);
377 *bufcntp += cp - tmpbuf;
396 size_t *bufcntp = d->bufcntp;
397 char *buf = d->bufp + *bufcntp;
398 size_t avail = d->bufsize - *bufcntp;
406 *bufcntp += needed;
426 size_t *bufcntp = d->bufcntp;
427 size_t avail = d->bufsize - *bufcntp;
428 int needed = snprintf (&d->bufp[*bufcntp], avail, "%%xmm%" PRIxFAST8,
432 *d->bufcntp += needed;
468 size_t *bufcntp = d->bufcntp;
469 size_t avail = d->bufsize - *bufcntp;
470 int needed = snprintf (&d->bufp[*bufcntp], avail, "%s0x%" ABSPRIFMT,
474 *bufcntp += needed;
504 size_t *bufcntp = d->bufcntp;
508 if (*bufcntp + 4 - is_16bit > bufsize)
509 return *bufcntp + 4 - is_16bit - bufsize;
511 bufp[(*bufcntp)++] = '%';
513 bufp[(*bufcntp)++] = (
518 bufp[(*bufcntp)++] = 'a';
519 bufp[(*bufcntp)++] = 'x';
531 size_t *bufcntp = d->bufcntp;
535 if (*bufcntp + 3 > bufsize)
536 return *bufcntp + 3 - bufsize;
538 bufp[(*bufcntp)++] = '%';
539 bufp[(*bufcntp)++] = 'a';
540 bufp[(*bufcntp)++] = 'l';
553 size_t *bufcntp = d->bufcntp;
558 size_t avail = d->bufsize - *bufcntp;
559 int needed = snprintf (&d->bufp[*bufcntp], avail, "%%%s%" PRIx32,
563 *bufcntp += needed;
590 size_t *bufcntp = d->bufcntp;
591 size_t avail = d->bufsize - *bufcntp;
592 int needed = snprintf (&d->bufp[*bufcntp], avail, "0x%" PRIx32,
597 *bufcntp += needed;
621 size_t *bufcntp = d->bufcntp;
622 size_t avail = d->bufsize - *bufcntp;
623 int needed = snprintf (&d->bufp[*bufcntp], avail, "(%%%s%s)",
632 *bufcntp += needed;
655 size_t *bufcntp = d->bufcntp;
657 if (*bufcntp + 7 > d->bufsize)
658 return *bufcntp + 7 - d->bufsize;
660 memcpy (&d->bufp[*bufcntp], "(%dx)", 5);
661 *bufcntp += 5;
670 size_t *bufcntp = d->bufcntp;
671 size_t avail = d->bufsize - *bufcntp;
672 int needed = snprintf (&d->bufp[*bufcntp], avail, "%%es:(%%%sdi)",
681 *bufcntp += needed;
690 size_t *bufcntp = d->bufcntp;
691 size_t avail = d->bufsize - *bufcntp;
698 needed = snprintf (&d->bufp[*bufcntp], avail, "$0x%" PRIx16, word);
707 needed = snprintf (&d->bufp[*bufcntp], avail, "$0x%" PRIx64,
711 needed = snprintf (&d->bufp[*bufcntp], avail, "$0x%" PRIx32, word);
715 *bufcntp += needed;
726 size_t *bufcntp = d->bufcntp;
727 size_t avail = d->bufsize - *bufcntp;
731 int needed = snprintf (&d->bufp[*bufcntp], avail, "$0x%" PRIxFAST8, word);
734 *bufcntp += needed;
747 size_t *bufcntp = d->bufcntp;
748 size_t avail = d->bufsize - *bufcntp;
755 needed = snprintf (&d->bufp[*bufcntp], avail, "$0x%" PRIx64, word);
762 needed = snprintf (&d->bufp[*bufcntp], avail, "$0x%" PRIx32, word);
766 *bufcntp += needed;
775 size_t *bufcntp = d->bufcntp;
776 size_t avail = d->bufsize - *bufcntp;
781 int needed = snprintf (&d->bufp[*bufcntp], avail, "$0x%" PRIx64,
784 int needed = snprintf (&d->bufp[*bufcntp], avail, "$0x%" PRIx32,
789 *bufcntp += needed;
798 size_t *bufcntp = d->bufcntp;
799 size_t avail = d->bufsize - *bufcntp;
809 int needed = snprintf (&d->bufp[*bufcntp], avail, "$0x%" PRIx64,
812 int needed = snprintf (&d->bufp[*bufcntp], avail, "$0x%" PRIx32, word);
816 *bufcntp += needed;
823 int needed = snprintf (&d->bufp[*bufcntp], avail, "$0x%" PRIx16, word);
826 *bufcntp += needed;
838 size_t *bufcntp = d->bufcntp;
839 size_t avail = d->bufsize - *bufcntp;
840 int needed = snprintf (&d->bufp[*bufcntp], avail, "$0x%" PRIx16, word);
843 *bufcntp += needed;
851 size_t *bufcntp = d->bufcntp;
852 size_t avail = d->bufsize - *bufcntp;
859 needed = snprintf (&d->bufp[*bufcntp], avail, "$0x%" PRIx64,
863 needed = snprintf (&d->bufp[*bufcntp], avail, "$0x%" PRIx32,
867 *bufcntp += needed;
875 size_t *bufcntp = d->bufcntp;
876 size_t avail = d->bufsize - *bufcntp;
880 int needed = snprintf (&d->bufp[*bufcntp], avail, "$0x%" PRIx32,
884 *bufcntp += needed;
892 size_t *bufcntp = d->bufcntp;
893 size_t avail = d->bufsize - *bufcntp;
898 int needed = snprintf (&d->bufp[*bufcntp], avail, "0x%" PRIx64,
902 int needed = snprintf (&d->bufp[*bufcntp], avail, "0x%" PRIx32,
908 *bufcntp += needed;
919 size_t *bufcntp = d->bufcntp;
920 size_t avail = d->bufsize - *bufcntp;
921 int needed = snprintf (&d->bufp[*bufcntp], avail, "%%mm%" PRIxFAST8, byte);
924 *bufcntp += needed;
942 size_t *bufcntp = d->bufcntp;
944 if (*bufcntp + 5 - is_16bit > d->bufsize)
945 return *bufcntp + 5 - is_16bit - d->bufsize;
946 bufp[(*bufcntp)++] = '%';
952 cp = stpcpy (&bufp[*bufcntp], hiregs[modrm & 7]);
959 cp = stpcpy (&bufp[*bufcntp], dregs[modrm & 7] + is_16bit);
962 bufp[*bufcntp] = 'r';
965 *bufcntp = cp - bufp;
984 size_t *bufcntp = d->bufcntp;
985 if (*bufcntp + 3 > d->bufsize)
986 return *bufcntp + 3 - d->bufsize;
988 memcpy (&d->bufp[*bufcntp], "???", 3);
989 *bufcntp += 3;
1021 size_t *bufcntp = d->bufcntp;
1023 if (*bufcntp + 5 > d->bufsize)
1024 return *bufcntp + 5 - d->bufsize;
1028 bufp[(*bufcntp)++] = '%';
1034 *bufcntp += snprintf (bufp + *bufcntp, d->bufsize - *bufcntp,
1038 char *cp = stpcpy (bufp + *bufcntp, hiregs[modrm & 7]);
1040 *bufcntp = cp - bufp;
1046 bufp[(*bufcntp)++] = "acdb"[modrm & 3];
1047 bufp[(*bufcntp)++] = "lh"[(modrm & 4) >> 2];
1054 bufp[(*bufcntp)++] = '%';
1060 cp = stpcpy (&bufp[*bufcntp], hiregs[modrm & 7]);
1067 cp = stpcpy (&bufp[*bufcntp], dregs[modrm & 7] + is_16bit);
1070 bufp[*bufcntp] = 'r';
1073 *bufcntp = cp - bufp;
1089 size_t *bufcntp = d->bufcntp;
1091 if (*bufcntp + 3 > d->bufsize)
1092 return *bufcntp + 3 - d->bufsize;
1093 bufp[(*bufcntp)++] = '%';
1094 bufp[(*bufcntp)++] = "acdb"[modrm & 3];
1095 bufp[(*bufcntp)++] = "lh"[(modrm & 4) >> 2];
1114 size_t *bufcntp = d->bufcntp;
1115 if (*bufcntp + 3 > d->bufsize)
1116 return *bufcntp + 3 - d->bufsize;
1117 d->bufp[(*bufcntp)++] = '%';
1118 memcpy (&d->bufp[*bufcntp], dregs[byte] + 1, sizeof (dregs[0]) - 1);
1119 *bufcntp += 2;
1139 size_t *bufcntp = d->bufcntp;
1140 if (*bufcntp + 4 > d->bufsize)
1141 return *bufcntp + 4 - d->bufsize;
1142 char *cp = &d->bufp[*bufcntp];
1146 *bufcntp = cp - d->bufp;
1165 size_t *bufcntp = d->bufcntp;
1166 if (*bufcntp + 5 > d->bufsize)
1167 return *bufcntp + 5 - d->bufsize;
1168 d->bufp[(*bufcntp)++] = '%';
1172 *bufcntp += snprintf (&d->bufp[*bufcntp], d->bufsize - *bufcntp, "r%d",
1175 d->bufp[(*bufcntp)++] = 'd';
1180 memcpy (&d->bufp[*bufcntp], dregs[byte] + is_16bit, 3 - is_16bit);
1183 d->bufp[*bufcntp] = 'r';
1185 *bufcntp += 3 - is_16bit;
1220 size_t *bufcntp = d->bufcntp;
1221 if (*bufcntp + 5 > d->bufsize)
1222 return *bufcntp + 5 - d->bufsize;
1223 d->bufp[(*bufcntp)++] = '%';
1227 *bufcntp += snprintf (&d->bufp[*bufcntp], d->bufsize - *bufcntp, "r%d",
1230 d->bufp[(*bufcntp)++] = 'd';
1235 memcpy (&d->bufp[*bufcntp], aregs[byte], 3);
1236 *bufcntp += 3;
1253 size_t *bufcntp = d->bufcntp;
1254 if (*bufcntp + 4 > d->bufsize)
1255 return *bufcntp + 4 - d->bufsize;
1257 d->bufp[(*bufcntp)++] = '%';
1263 *bufcntp += snprintf (d->bufp + *bufcntp, d->bufsize - *bufcntp,
1267 char* cp = stpcpy (d->bufp + *bufcntp, rex_8bit[byte]);
1269 *bufcntp = cp - d->bufp;
1275 d->bufp[(*bufcntp)++] = "acdb"[byte & 3];
1276 d->bufp[(*bufcntp)++] = "lh"[byte >> 2];
1307 size_t *bufcntp = d->bufcntp;
1308 size_t avail = d->bufsize - *bufcntp;
1309 int needed = snprintf (&d->bufp[*bufcntp], avail, "%%st(%" PRIx32 ")",
1313 *bufcntp += needed;
1341 size_t *bufcntp = d->bufcntp;
1342 size_t avail = d->bufsize - *bufcntp;
1343 int needed = snprintf (&d->bufp[*bufcntp], avail, "$0x%" PRIx16, absval);
1346 *bufcntp += needed;
1358 size_t *bufcntp = d->bufcntp;
1360 if (*bufcntp + 3 > d->bufsize)
1361 return *bufcntp + 3 - d->bufsize;
1363 bufp[(*bufcntp)++] = '%';
1364 bufp[(*bufcntp)++] = "ecsd"[byte & 3];
1365 bufp[(*bufcntp)++] = 's';
1381 size_t *bufcntp = d->bufcntp;
1383 if (*bufcntp + 3 > d->bufsize)
1384 return *bufcntp + 3 - d->bufsize;
1386 bufp[(*bufcntp)++] = '%';
1387 bufp[(*bufcntp)++] = "ecsdfg"[byte & 7];
1388 bufp[(*bufcntp)++] = 's';
1408 size_t *bufcntp = d->bufcntp;
1409 size_t avail = d->bufsize - *bufcntp;
1410 int needed = snprintf (&d->bufp[*bufcntp], avail, "%%xmm%" PRIxFAST8, byte);
1413 *bufcntp += needed;