summaryrefslogtreecommitdiffstats
path: root/Python/mysnprintf.c
diff options
context:
space:
mode:
Diffstat (limited to 'Python/mysnprintf.c')
0 files changed, 0 insertions, 0 deletions
l opt">{ return oparg <= 0xff ? 1 : oparg <= 0xffff ? 2 : oparg <= 0xffffff ? 3 : 4; } /* Spits out op/oparg pair using ilen bytes. codestr should be pointed at the desired location of the first EXTENDED_ARG */ static void write_op_arg(_Py_CODEUNIT *codestr, unsigned char opcode, unsigned int oparg, int ilen) { switch (ilen) { case 4: *codestr++ = PACKOPARG(EXTENDED_ARG, (oparg >> 24) & 0xff); case 3: *codestr++ = PACKOPARG(EXTENDED_ARG, (oparg >> 16) & 0xff); case 2: *codestr++ = PACKOPARG(EXTENDED_ARG, (oparg >> 8) & 0xff); case 1: *codestr++ = PACKOPARG(opcode, oparg & 0xff); break; default: assert(0); } }