Searched refs:statesize (Results 1 – 2 of 2) sorted by relevance
/third_party/re2/re2/ |
D | onepass.cc | 209 static inline OneState* IndexToNode(uint8_t* nodes, int statesize, in IndexToNode() argument 211 return reinterpret_cast<OneState*>(nodes + statesize*nodeindex); in IndexToNode() 248 int statesize = sizeof(OneState) + bytemap_range()*sizeof(uint32_t); in SearchOnePass() local 250 OneState* state = IndexToNode(nodes, statesize, 0); in SearchOnePass() 268 state = IndexToNode(nodes, statesize, nextindex); in SearchOnePass() 397 int statesize = sizeof(OneState) + bytemap_range()*sizeof(uint32_t); in IsOnePass() local 398 if (maxnodes >= 65000 || dfa_mem_ / 4 / statesize < maxnodes) in IsOnePass() 422 nodes.insert(nodes.end(), statesize, 0); in IsOnePass() 426 OneState* node = IndexToNode(nodes.data(), statesize, nodeindex); in IsOnePass() 473 nodes.insert(nodes.end(), statesize, 0); in IsOnePass() [all …]
|
/third_party/python/Modules/cjkcodecs/ |
D | multibytecodec.c | 929 Py_ssize_t statesize; in _multibytecodec_MultibyteIncrementalEncoder_getstate_impl() local 944 statesize = 1 + pendingsize; in _multibytecodec_MultibyteIncrementalEncoder_getstate_impl() 947 statesize = 1; in _multibytecodec_MultibyteIncrementalEncoder_getstate_impl() 949 memcpy(statebytes+statesize, self->state.c, in _multibytecodec_MultibyteIncrementalEncoder_getstate_impl() 951 statesize += sizeof(self->state.c); in _multibytecodec_MultibyteIncrementalEncoder_getstate_impl() 953 return (PyObject *)_PyLong_FromByteArray(statebytes, statesize, in _multibytecodec_MultibyteIncrementalEncoder_getstate_impl()
|