Home
last modified time | relevance | path

Searched refs:codelen (Results 1 – 10 of 10) sorted by relevance

/external/python/cpython3/Python/
Dpeephole.c53 find_op(const _Py_CODEUNIT *codestr, Py_ssize_t codelen, Py_ssize_t i) in find_op() argument
55 while (i < codelen && _Py_OPCODE(codestr[i]) == EXTENDED_ARG) { in find_op()
131 fold_tuple_on_constants(_Py_CODEUNIT *codestr, Py_ssize_t codelen, in fold_tuple_on_constants() argument
146 pos = find_op(codestr, codelen, pos); in fold_tuple_on_constants()
267 Py_ssize_t codelen = codesize / sizeof(_Py_CODEUNIT); in PyCode_Optimize() local
268 if (codelen > INT_MAX) { in PyCode_Optimize()
282 blocks = markblocks(codestr, codelen); in PyCode_Optimize()
287 for (i=find_op(codestr, codelen, 0) ; i<codelen ; i=nexti) { in PyCode_Optimize()
295 while (nexti < codelen && _Py_OPCODE(codestr[nexti]) == EXTENDED_ARG) in PyCode_Optimize()
297 nextop = nexti < codelen ? _Py_OPCODE(codestr[nexti]) : 0; in PyCode_Optimize()
[all …]
/external/python/cpython2/Python/
Dpeephole.c302 Py_ssize_t i, j, codelen; in PyCode_Optimize() local
326 codelen = PyString_GET_SIZE(code); in PyCode_Optimize()
327 if (codelen > 32700) in PyCode_Optimize()
331 codestr = (unsigned char *)PyMem_Malloc(codelen); in PyCode_Optimize()
335 PyString_AS_STRING(code), codelen); in PyCode_Optimize()
342 if (codestr[codelen-1] != RETURN_VALUE) in PyCode_Optimize()
346 addrmap = PyMem_New(int, codelen); in PyCode_Optimize()
352 blocks = markblocks(codestr, codelen); in PyCode_Optimize()
357 for (i=0 ; i<codelen ; i += CODESIZE(codestr[i])) { in PyCode_Optimize()
587 if (i+4 >= codelen) in PyCode_Optimize()
[all …]
/external/pdfium/core/fxcodec/jbig2/
DJBig2_HuffmanTable.cpp155 CODES[i].codelen = pTable[i].PREFLEN; in ParseFromStandardTable()
185 if ((pStream->readNBits(HTPS, &CODES[NTEMP].codelen) == -1) || in ParseFromCodedBuffer()
201 if (pStream->readNBits(HTPS, &CODES[NTEMP].codelen) == -1) in ParseFromCodedBuffer()
211 if (pStream->readNBits(HTPS, &CODES[NTEMP].codelen) == -1) in ParseFromCodedBuffer()
219 if (pStream->readNBits(HTPS, &CODES[NTEMP].codelen) == -1) in ParseFromCodedBuffer()
DJBig2_Define.h23 int32_t codelen; member
DJBig2_HuffmanDecoder.cpp35 if (code.codelen != nBits || code.code != nVal) in DecodeAValue()
DJBig2_Context.cpp1134 if (m_pStream->readNBits(4, &huffman_codes[i].codelen) != 0) in DecodeSymbolIDHuffmanTable()
1160 if (nBits == huffman_codes[j].codelen && nVal == huffman_codes[j].code) in DecodeSymbolIDHuffmanTable()
1168 SBSYMCODES[i].codelen = runcode; in DecodeSymbolIDHuffmanTable()
1188 SBSYMCODES[i + k].codelen = SBSYMCODES[i - 1].codelen; in DecodeSymbolIDHuffmanTable()
1190 SBSYMCODES[i + k].codelen = 0; in DecodeSymbolIDHuffmanTable()
1215 LENMAX = std::max(SBSYMCODES[i].codelen, LENMAX); in HuffmanAssignCode()
1220 ++LENCOUNT[SBSYMCODES[i].codelen]; in HuffmanAssignCode()
1233 if (SBSYMCODES[j].codelen == i) in HuffmanAssignCode()
DJBig2_TrdProc.cpp131 if (nBits == SBSYMCODES[IDI].codelen && nVal == SBSYMCODES[IDI].code) in DecodeHuffman()
DJBig2_SddProc.cpp356 SBSYMCODES[I].codelen = nTmp; in DecodeHuffman()
/external/fonttools/Lib/fontTools/ttLib/tables/
DS__i_l_f.py201 codelen = len(aCode)
204 while pc < codelen:
211 if instr[1] != 0 and pc >= codelen : return res
/external/starlark-go/internal/compile/
Dcompile.go730 func (fcomp *fcomp) generate(blocks []*block, codelen uint32) {
731 code := make([]byte, 0, codelen)
810 if len(code) != int(codelen) {