Lines Matching refs:cp
361 #define dasmb(x) *cp++ = (unsigned char)(x)
367 do { *((unaligned_short *)cp) = (unsigned short)(x); cp+=2; } while (0)
369 do { *((unaligned_int *)cp) = (unsigned int)(x); cp+=4; } while (0)
371 do { *((unaligned_uint64_t *)cp) = (uint64_t)(x); cp+=8; } while (0)
382 unsigned char *cp = base; in dasm_encode() local
398 case DASM_DISP: if (!mark) mark = cp; { in dasm_encode()
407 db: if (!mark) mark = cp; mark[-2] += 2; mark = NULL; goto wb; in dasm_encode()
414 unsigned char *ex = cp - (t&7); in dasm_encode()
422 while (++ex < cp) ex[-1] = *ex; in dasm_encode()
424 cp--; in dasm_encode()
429 else if (n == 4 && t < 0x20) { cp[-1] ^= n; *cp++ = 0x20; } in dasm_encode()
430 cp[-1] ^= n; in dasm_encode()
435 case DASM_REL_A: rel_a: n -= (int)(ptrdiff_t)(cp+4); goto wd; /* !x64 */ in dasm_encode()
439 n = *pb - ((int)(cp-base) + 4-shrink); in dasm_encode()
441 if (shrink == 4) { cp--; cp[-1] = *cp-0x10; } else cp[-1] = 0xeb; in dasm_encode()
468 case DASM_SPACE: { int fill = *p++; while (n--) *cp++ = fill; break; } in dasm_encode()
471 while (((cp-base) & n)) *cp++ = 0x90; /* nop */ in dasm_encode()
473 case DASM_EXTERN: n = DASM_EXTERN(Dst, cp, p[1], *p); p += 2; goto wd; in dasm_encode()
474 case DASM_MARK: mark = cp; break; in dasm_encode()
476 default: *cp++ = action; break; in dasm_encode()
484 if (base + D->codesize != cp) /* Check for phase errors. */ in dasm_encode()