Lines Matching refs:bufcntp
124 if (*d->bufcntp + 4 > d->bufsize) in data_prefix()
125 return *d->bufcntp + 4 - d->bufsize; in data_prefix()
127 d->bufp[(*d->bufcntp)++] = '%'; in data_prefix()
128 d->bufp[(*d->bufcntp)++] = ch; in data_prefix()
129 d->bufp[(*d->bufcntp)++] = 's'; in data_prefix()
130 d->bufp[(*d->bufcntp)++] = ':'; in data_prefix()
166 size_t *bufcntp = d->bufcntp; in general_mod$r_m() local
204 if (*bufcntp + n + 1 > bufsize) in general_mod$r_m()
205 return *bufcntp + n + 1 - bufsize; in general_mod$r_m()
207 memcpy (&bufp[*bufcntp], tmpbuf, n + 1); in general_mod$r_m()
208 *bufcntp += n; in general_mod$r_m()
278 if (*bufcntp + n + 1 > bufsize) in general_mod$r_m()
279 return *bufcntp + n + 1 - bufsize; in general_mod$r_m()
281 memcpy (&bufp[*bufcntp], tmpbuf, n + 1); in general_mod$r_m()
282 *bufcntp += n; in general_mod$r_m()
376 if (*bufcntp + (cp - tmpbuf) > bufsize) in general_mod$r_m()
377 return *bufcntp + (cp - tmpbuf) - bufsize; in general_mod$r_m()
379 memcpy (&bufp[*bufcntp], tmpbuf, cp - tmpbuf); in general_mod$r_m()
380 *bufcntp += cp - tmpbuf; in general_mod$r_m()
399 size_t *bufcntp = d->bufcntp; in FCT_MOD$R_M() local
400 char *buf = d->bufp + *bufcntp; in FCT_MOD$R_M()
401 size_t avail = d->bufsize - *bufcntp; in FCT_MOD$R_M()
409 *bufcntp += needed; in FCT_MOD$R_M()
429 size_t *bufcntp = d->bufcntp; in FCT_Mod$R_m() local
430 size_t avail = d->bufsize - *bufcntp; in FCT_Mod$R_m()
431 int needed = snprintf (&d->bufp[*bufcntp], avail, "%%xmm%" PRIxFAST8, in FCT_Mod$R_m()
435 *d->bufcntp += needed; in FCT_Mod$R_m()
471 size_t *bufcntp = d->bufcntp; in generic_abs() local
472 size_t avail = d->bufsize - *bufcntp; in generic_abs()
473 int needed = snprintf (&d->bufp[*bufcntp], avail, "%s0x%" ABSPRIFMT, in generic_abs()
477 *bufcntp += needed; in generic_abs()
507 size_t *bufcntp = d->bufcntp; in FCT_ax() local
511 if (*bufcntp + 4 - is_16bit > bufsize) in FCT_ax()
512 return *bufcntp + 4 - is_16bit - bufsize; in FCT_ax()
514 bufp[(*bufcntp)++] = '%'; in FCT_ax()
516 bufp[(*bufcntp)++] = ( in FCT_ax()
521 bufp[(*bufcntp)++] = 'a'; in FCT_ax()
522 bufp[(*bufcntp)++] = 'x'; in FCT_ax()
534 size_t *bufcntp = d->bufcntp; in FCT_ax$w() local
538 if (*bufcntp + 3 > bufsize) in FCT_ax$w()
539 return *bufcntp + 3 - bufsize; in FCT_ax$w()
541 bufp[(*bufcntp)++] = '%'; in FCT_ax$w()
542 bufp[(*bufcntp)++] = 'a'; in FCT_ax$w()
543 bufp[(*bufcntp)++] = 'l'; in FCT_ax$w()
556 size_t *bufcntp = d->bufcntp; in FCT_crdb() local
561 size_t avail = d->bufsize - *bufcntp; in FCT_crdb()
562 int needed = snprintf (&d->bufp[*bufcntp], avail, "%%%s%" PRIx32, in FCT_crdb()
566 *bufcntp += needed; in FCT_crdb()
593 size_t *bufcntp = d->bufcntp; in FCT_disp8() local
594 size_t avail = d->bufsize - *bufcntp; in FCT_disp8()
595 int needed = snprintf (&d->bufp[*bufcntp], avail, "0x%" PRIx32, in FCT_disp8()
600 *bufcntp += needed; in FCT_disp8()
624 size_t *bufcntp = d->bufcntp; in FCT_ds_xx() local
625 size_t avail = d->bufsize - *bufcntp; in FCT_ds_xx()
626 int needed = snprintf (&d->bufp[*bufcntp], avail, "(%%%s%s)", in FCT_ds_xx()
635 *bufcntp += needed; in FCT_ds_xx()
658 size_t *bufcntp = d->bufcntp; in FCT_dx() local
660 if (*bufcntp + 7 > d->bufsize) in FCT_dx()
661 return *bufcntp + 7 - d->bufsize; in FCT_dx()
663 memcpy (&d->bufp[*bufcntp], "(%dx)", 5); in FCT_dx()
664 *bufcntp += 5; in FCT_dx()
673 size_t *bufcntp = d->bufcntp; in FCT_es_di() local
674 size_t avail = d->bufsize - *bufcntp; in FCT_es_di()
675 int needed = snprintf (&d->bufp[*bufcntp], avail, "%%es:(%%%sdi)", in FCT_es_di()
684 *bufcntp += needed; in FCT_es_di()
693 size_t *bufcntp = d->bufcntp; in FCT_imm() local
694 size_t avail = d->bufsize - *bufcntp; in FCT_imm()
701 needed = snprintf (&d->bufp[*bufcntp], avail, "$0x%" PRIx16, word); in FCT_imm()
710 needed = snprintf (&d->bufp[*bufcntp], avail, "$0x%" PRIx64, in FCT_imm()
714 needed = snprintf (&d->bufp[*bufcntp], avail, "$0x%" PRIx32, word); in FCT_imm()
718 *bufcntp += needed; in FCT_imm()
729 size_t *bufcntp = d->bufcntp; in FCT_imm$w() local
730 size_t avail = d->bufsize - *bufcntp; in FCT_imm$w()
734 int needed = snprintf (&d->bufp[*bufcntp], avail, "$0x%" PRIxFAST8, word); in FCT_imm$w()
737 *bufcntp += needed; in FCT_imm$w()
750 size_t *bufcntp = d->bufcntp; in FCT_imm64$w() local
751 size_t avail = d->bufsize - *bufcntp; in FCT_imm64$w()
758 needed = snprintf (&d->bufp[*bufcntp], avail, "$0x%" PRIx64, word); in FCT_imm64$w()
765 needed = snprintf (&d->bufp[*bufcntp], avail, "$0x%" PRIx32, word); in FCT_imm64$w()
769 *bufcntp += needed; in FCT_imm64$w()
778 size_t *bufcntp = d->bufcntp; in FCT_imms() local
779 size_t avail = d->bufsize - *bufcntp; in FCT_imms()
784 int needed = snprintf (&d->bufp[*bufcntp], avail, "$0x%" PRIx64, in FCT_imms()
787 int needed = snprintf (&d->bufp[*bufcntp], avail, "$0x%" PRIx32, in FCT_imms()
792 *bufcntp += needed; in FCT_imms()
801 size_t *bufcntp = d->bufcntp; in FCT_imm$s() local
802 size_t avail = d->bufsize - *bufcntp; in FCT_imm$s()
812 int needed = snprintf (&d->bufp[*bufcntp], avail, "$0x%" PRIx64, in FCT_imm$s()
815 int needed = snprintf (&d->bufp[*bufcntp], avail, "$0x%" PRIx32, word); in FCT_imm$s()
819 *bufcntp += needed; in FCT_imm$s()
826 int needed = snprintf (&d->bufp[*bufcntp], avail, "$0x%" PRIx16, word); in FCT_imm$s()
829 *bufcntp += needed; in FCT_imm$s()
841 size_t *bufcntp = d->bufcntp; in FCT_imm16() local
842 size_t avail = d->bufsize - *bufcntp; in FCT_imm16()
843 int needed = snprintf (&d->bufp[*bufcntp], avail, "$0x%" PRIx16, word); in FCT_imm16()
846 *bufcntp += needed; in FCT_imm16()
854 size_t *bufcntp = d->bufcntp; in FCT_imms8() local
855 size_t avail = d->bufsize - *bufcntp; in FCT_imms8()
862 needed = snprintf (&d->bufp[*bufcntp], avail, "$0x%" PRIx64, in FCT_imms8()
866 needed = snprintf (&d->bufp[*bufcntp], avail, "$0x%" PRIx32, in FCT_imms8()
870 *bufcntp += needed; in FCT_imms8()
878 size_t *bufcntp = d->bufcntp; in FCT_imm8() local
879 size_t avail = d->bufsize - *bufcntp; in FCT_imm8()
883 int needed = snprintf (&d->bufp[*bufcntp], avail, "$0x%" PRIx32, in FCT_imm8()
887 *bufcntp += needed; in FCT_imm8()
895 size_t *bufcntp = d->bufcntp; in FCT_rel() local
896 size_t avail = d->bufsize - *bufcntp; in FCT_rel()
901 int needed = snprintf (&d->bufp[*bufcntp], avail, "0x%" PRIx64, in FCT_rel()
905 int needed = snprintf (&d->bufp[*bufcntp], avail, "0x%" PRIx32, in FCT_rel()
911 *bufcntp += needed; in FCT_rel()
922 size_t *bufcntp = d->bufcntp; in FCT_mmxreg() local
923 size_t avail = d->bufsize - *bufcntp; in FCT_mmxreg()
924 int needed = snprintf (&d->bufp[*bufcntp], avail, "%%mm%" PRIxFAST8, byte); in FCT_mmxreg()
927 *bufcntp += needed; in FCT_mmxreg()
945 size_t *bufcntp = d->bufcntp; in FCT_mod$r_m() local
947 if (*bufcntp + 5 - is_16bit > d->bufsize) in FCT_mod$r_m()
948 return *bufcntp + 5 - is_16bit - d->bufsize; in FCT_mod$r_m()
949 bufp[(*bufcntp)++] = '%'; in FCT_mod$r_m()
955 cp = stpcpy (&bufp[*bufcntp], hiregs[modrm & 7]); in FCT_mod$r_m()
962 cp = stpcpy (&bufp[*bufcntp], dregs[modrm & 7] + is_16bit); in FCT_mod$r_m()
965 bufp[*bufcntp] = 'r'; in FCT_mod$r_m()
968 *bufcntp = cp - bufp; in FCT_mod$r_m()
987 size_t *bufcntp = d->bufcntp; in FCT_moda$r_m() local
988 if (*bufcntp + 3 > d->bufsize) in FCT_moda$r_m()
989 return *bufcntp + 3 - d->bufsize; in FCT_moda$r_m()
991 memcpy (&d->bufp[*bufcntp], "???", 3); in FCT_moda$r_m()
992 *bufcntp += 3; in FCT_moda$r_m()
1024 size_t *bufcntp = d->bufcntp; in FCT_mod$r_m$w() local
1026 if (*bufcntp + 5 > d->bufsize) in FCT_mod$r_m$w()
1027 return *bufcntp + 5 - d->bufsize; in FCT_mod$r_m$w()
1031 bufp[(*bufcntp)++] = '%'; in FCT_mod$r_m$w()
1037 *bufcntp += snprintf (bufp + *bufcntp, d->bufsize - *bufcntp, in FCT_mod$r_m$w()
1041 char *cp = stpcpy (bufp + *bufcntp, hiregs[modrm & 7]); in FCT_mod$r_m$w()
1043 *bufcntp = cp - bufp; in FCT_mod$r_m$w()
1049 bufp[(*bufcntp)++] = "acdb"[modrm & 3]; in FCT_mod$r_m$w()
1050 bufp[(*bufcntp)++] = "lh"[(modrm & 4) >> 2]; in FCT_mod$r_m$w()
1057 bufp[(*bufcntp)++] = '%'; in FCT_mod$r_m$w()
1063 cp = stpcpy (&bufp[*bufcntp], hiregs[modrm & 7]); in FCT_mod$r_m$w()
1070 cp = stpcpy (&bufp[*bufcntp], dregs[modrm & 7] + is_16bit); in FCT_mod$r_m$w()
1073 bufp[*bufcntp] = 'r'; in FCT_mod$r_m$w()
1076 *bufcntp = cp - bufp; in FCT_mod$r_m$w()
1092 size_t *bufcntp = d->bufcntp; in FCT_mod$8r_m() local
1094 if (*bufcntp + 3 > d->bufsize) in FCT_mod$8r_m()
1095 return *bufcntp + 3 - d->bufsize; in FCT_mod$8r_m()
1096 bufp[(*bufcntp)++] = '%'; in FCT_mod$8r_m()
1097 bufp[(*bufcntp)++] = "acdb"[modrm & 3]; in FCT_mod$8r_m()
1098 bufp[(*bufcntp)++] = "lh"[(modrm & 4) >> 2]; in FCT_mod$8r_m()
1117 size_t *bufcntp = d->bufcntp; in FCT_mod$16r_m() local
1118 if (*bufcntp + 3 > d->bufsize) in FCT_mod$16r_m()
1119 return *bufcntp + 3 - d->bufsize; in FCT_mod$16r_m()
1120 d->bufp[(*bufcntp)++] = '%'; in FCT_mod$16r_m()
1121 memcpy (&d->bufp[*bufcntp], dregs[byte] + 1, sizeof (dregs[0]) - 1); in FCT_mod$16r_m()
1122 *bufcntp += 2; in FCT_mod$16r_m()
1142 size_t *bufcntp = d->bufcntp; in FCT_mod$64r_m() local
1143 if (*bufcntp + 4 > d->bufsize) in FCT_mod$64r_m()
1144 return *bufcntp + 4 - d->bufsize; in FCT_mod$64r_m()
1145 char *cp = &d->bufp[*bufcntp]; in FCT_mod$64r_m()
1149 *bufcntp = cp - d->bufp; in FCT_mod$64r_m()
1168 size_t *bufcntp = d->bufcntp; in FCT_reg() local
1169 if (*bufcntp + 5 > d->bufsize) in FCT_reg()
1170 return *bufcntp + 5 - d->bufsize; in FCT_reg()
1171 d->bufp[(*bufcntp)++] = '%'; in FCT_reg()
1175 *bufcntp += snprintf (&d->bufp[*bufcntp], d->bufsize - *bufcntp, "r%d", in FCT_reg()
1178 d->bufp[(*bufcntp)++] = 'd'; in FCT_reg()
1183 memcpy (&d->bufp[*bufcntp], dregs[byte] + is_16bit, 3 - is_16bit); in FCT_reg()
1186 d->bufp[*bufcntp] = 'r'; in FCT_reg()
1188 *bufcntp += 3 - is_16bit; in FCT_reg()
1223 size_t *bufcntp = d->bufcntp; in FCT_reg64() local
1224 if (*bufcntp + 5 > d->bufsize) in FCT_reg64()
1225 return *bufcntp + 5 - d->bufsize; in FCT_reg64()
1226 d->bufp[(*bufcntp)++] = '%'; in FCT_reg64()
1230 *bufcntp += snprintf (&d->bufp[*bufcntp], d->bufsize - *bufcntp, "r%d", in FCT_reg64()
1233 d->bufp[(*bufcntp)++] = 'd'; in FCT_reg64()
1238 memcpy (&d->bufp[*bufcntp], aregs[byte], 3); in FCT_reg64()
1239 *bufcntp += 3; in FCT_reg64()
1256 size_t *bufcntp = d->bufcntp; in FCT_reg$w() local
1257 if (*bufcntp + 4 > d->bufsize) in FCT_reg$w()
1258 return *bufcntp + 4 - d->bufsize; in FCT_reg$w()
1260 d->bufp[(*bufcntp)++] = '%'; in FCT_reg$w()
1266 *bufcntp += snprintf (d->bufp + *bufcntp, d->bufsize - *bufcntp, in FCT_reg$w()
1270 char* cp = stpcpy (d->bufp + *bufcntp, rex_8bit[byte]); in FCT_reg$w()
1272 *bufcntp = cp - d->bufp; in FCT_reg$w()
1278 d->bufp[(*bufcntp)++] = "acdb"[byte & 3]; in FCT_reg$w()
1279 d->bufp[(*bufcntp)++] = "lh"[byte >> 2]; in FCT_reg$w()
1310 size_t *bufcntp = d->bufcntp; in FCT_freg() local
1311 size_t avail = d->bufsize - *bufcntp; in FCT_freg()
1312 int needed = snprintf (&d->bufp[*bufcntp], avail, "%%st(%" PRIx32 ")", in FCT_freg()
1316 *bufcntp += needed; in FCT_freg()
1344 size_t *bufcntp = d->bufcntp; in FCT_sel() local
1345 size_t avail = d->bufsize - *bufcntp; in FCT_sel()
1346 int needed = snprintf (&d->bufp[*bufcntp], avail, "$0x%" PRIx16, absval); in FCT_sel()
1349 *bufcntp += needed; in FCT_sel()
1361 size_t *bufcntp = d->bufcntp; in FCT_sreg2() local
1363 if (*bufcntp + 3 > d->bufsize) in FCT_sreg2()
1364 return *bufcntp + 3 - d->bufsize; in FCT_sreg2()
1366 bufp[(*bufcntp)++] = '%'; in FCT_sreg2()
1367 bufp[(*bufcntp)++] = "ecsd"[byte & 3]; in FCT_sreg2()
1368 bufp[(*bufcntp)++] = 's'; in FCT_sreg2()
1384 size_t *bufcntp = d->bufcntp; in FCT_sreg3() local
1386 if (*bufcntp + 3 > d->bufsize) in FCT_sreg3()
1387 return *bufcntp + 3 - d->bufsize; in FCT_sreg3()
1389 bufp[(*bufcntp)++] = '%'; in FCT_sreg3()
1390 bufp[(*bufcntp)++] = "ecsdfg"[byte & 7]; in FCT_sreg3()
1391 bufp[(*bufcntp)++] = 's'; in FCT_sreg3()
1411 size_t *bufcntp = d->bufcntp; in FCT_xmmreg() local
1412 size_t avail = d->bufsize - *bufcntp; in FCT_xmmreg()
1413 int needed = snprintf (&d->bufp[*bufcntp], avail, "%%xmm%" PRIxFAST8, byte); in FCT_xmmreg()
1416 *bufcntp += needed; in FCT_xmmreg()