Home
last modified time | relevance | path

Searched refs:newBlock (Results 1 – 25 of 31) sorted by relevance

12

/third_party/lzma/CPP/Windows/
DMemoryGlobal.cpp12 HGLOBAL newBlock = ::GlobalAlloc(flags, size); in Alloc() local
13 if (newBlock == NULL) in Alloc()
15 _global = newBlock; in Alloc()
29 HGLOBAL newBlock = ::GlobalReAlloc(_global, size, GMEM_MOVEABLE); in ReAlloc() local
30 if (newBlock == NULL) in ReAlloc()
32 _global = newBlock; in ReAlloc()
/third_party/icu/icu4c/source/tools/makeconv/
Dgenmbcs.cpp575 uint32_t blockSize, newTop, i, nextOffset, newBlock, min; in MBCSSingleAddFromUnicode() local
600 newBlock=mbcsData->stage2Top; in MBCSSingleAddFromUnicode()
602 min=newBlock-nextOffset; /* minimum block start with overlap */ in MBCSSingleAddFromUnicode()
603 while(min<newBlock && mbcsData->stage2Single[newBlock-1]==0) { in MBCSSingleAddFromUnicode()
604 --newBlock; in MBCSSingleAddFromUnicode()
607 newTop=newBlock+MBCS_STAGE_2_BLOCK_SIZE; in MBCSSingleAddFromUnicode()
618 mbcsData->stage1[idx]=(uint16_t)newBlock; in MBCSSingleAddFromUnicode()
634 newBlock=mbcsData->stage3Top; in MBCSSingleAddFromUnicode()
636 min=newBlock-nextOffset; /* minimum block start with overlap */ in MBCSSingleAddFromUnicode()
637 while(min<newBlock && stage3[newBlock-1]==0) { in MBCSSingleAddFromUnicode()
[all …]
Dgencnvex.c829 int32_t i1, i2, i3, i3b, nextOffset, min, newBlock; in addFromUTrieEntry() local
849 newBlock=extData->stage2Top; in addFromUTrieEntry()
850 min=newBlock-nextOffset; /* minimum block start with overlap */ in addFromUTrieEntry()
851 while(min<newBlock && extData->stage2[newBlock-1]==0) { in addFromUTrieEntry()
852 --newBlock; in addFromUTrieEntry()
855 extData->stage1[i1]=(uint16_t)newBlock; in addFromUTrieEntry()
856 extData->stage2Top=newBlock+MBCS_STAGE_2_BLOCK_SIZE; in addFromUTrieEntry()
868 newBlock=extData->stage3Top; in addFromUTrieEntry()
869 min=newBlock-nextOffset; /* minimum block start with overlap */ in addFromUTrieEntry()
870 while(min<newBlock && extData->stage3[newBlock-1]==0) { in addFromUTrieEntry()
[all …]
/third_party/skia/third_party/externals/icu/source/tools/makeconv/
Dgenmbcs.cpp575 uint32_t blockSize, newTop, i, nextOffset, newBlock, min; in MBCSSingleAddFromUnicode() local
600 newBlock=mbcsData->stage2Top; in MBCSSingleAddFromUnicode()
602 min=newBlock-nextOffset; /* minimum block start with overlap */ in MBCSSingleAddFromUnicode()
603 while(min<newBlock && mbcsData->stage2Single[newBlock-1]==0) { in MBCSSingleAddFromUnicode()
604 --newBlock; in MBCSSingleAddFromUnicode()
607 newTop=newBlock+MBCS_STAGE_2_BLOCK_SIZE; in MBCSSingleAddFromUnicode()
618 mbcsData->stage1[idx]=(uint16_t)newBlock; in MBCSSingleAddFromUnicode()
634 newBlock=mbcsData->stage3Top; in MBCSSingleAddFromUnicode()
636 min=newBlock-nextOffset; /* minimum block start with overlap */ in MBCSSingleAddFromUnicode()
637 while(min<newBlock && stage3[newBlock-1]==0) { in MBCSSingleAddFromUnicode()
[all …]
Dgencnvex.c828 int32_t i1, i2, i3, i3b, nextOffset, min, newBlock; in addFromUTrieEntry() local
848 newBlock=extData->stage2Top; in addFromUTrieEntry()
849 min=newBlock-nextOffset; /* minimum block start with overlap */ in addFromUTrieEntry()
850 while(min<newBlock && extData->stage2[newBlock-1]==0) { in addFromUTrieEntry()
851 --newBlock; in addFromUTrieEntry()
854 extData->stage1[i1]=(uint16_t)newBlock; in addFromUTrieEntry()
855 extData->stage2Top=newBlock+MBCS_STAGE_2_BLOCK_SIZE; in addFromUTrieEntry()
867 newBlock=extData->stage3Top; in addFromUTrieEntry()
868 min=newBlock-nextOffset; /* minimum block start with overlap */ in addFromUTrieEntry()
869 while(min<newBlock && extData->stage3[newBlock-1]==0) { in addFromUTrieEntry()
[all …]
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/impl/
DTrie2Writable.java171 int newBlock, newTop; in allocIndex2Block() local
173 newBlock=index2Length; in allocIndex2Block()
174 newTop=newBlock+UTRIE2_INDEX_2_BLOCK_LENGTH; in allocIndex2Block()
184 System.arraycopy(index2, index2NullOffset, index2, newBlock, UTRIE2_INDEX_2_BLOCK_LENGTH); in allocIndex2Block()
185 return newBlock; in allocIndex2Block()
205 int newBlock, newTop; in allocDataBlock() local
209 newBlock=firstFreeBlock; in allocDataBlock()
210 firstFreeBlock=-map[newBlock>>UTRIE2_SHIFT_2]; in allocDataBlock()
213 newBlock=dataLength; in allocDataBlock()
214 newTop=newBlock+UTRIE2_DATA_BLOCK_LENGTH; in allocDataBlock()
[all …]
DIntTrieBuilder.java508 int newBlock = m_dataLength_; in allocDataBlock() local
509 int newTop = newBlock + DATA_BLOCK_LENGTH; in allocDataBlock()
515 return newBlock; in allocDataBlock()
532 int newBlock = allocDataBlock(); in getDataBlock() local
533 if (newBlock < 0) { in getDataBlock()
537 m_index_[ch] = newBlock; in getDataBlock()
540 System.arraycopy(m_data_, Math.abs(indexValue), m_data_, newBlock, in getDataBlock()
542 return newBlock; in getDataBlock()
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/
DTrie2Writable.java169 int newBlock, newTop; in allocIndex2Block() local
171 newBlock=index2Length; in allocIndex2Block()
172 newTop=newBlock+UTRIE2_INDEX_2_BLOCK_LENGTH; in allocIndex2Block()
182 System.arraycopy(index2, index2NullOffset, index2, newBlock, UTRIE2_INDEX_2_BLOCK_LENGTH); in allocIndex2Block()
183 return newBlock; in allocIndex2Block()
203 int newBlock, newTop; in allocDataBlock() local
207 newBlock=firstFreeBlock; in allocDataBlock()
208 firstFreeBlock=-map[newBlock>>UTRIE2_SHIFT_2]; in allocDataBlock()
211 newBlock=dataLength; in allocDataBlock()
212 newTop=newBlock+UTRIE2_DATA_BLOCK_LENGTH; in allocDataBlock()
[all …]
DIntTrieBuilder.java506 int newBlock = m_dataLength_; in allocDataBlock() local
507 int newTop = newBlock + DATA_BLOCK_LENGTH; in allocDataBlock()
513 return newBlock; in allocDataBlock()
530 int newBlock = allocDataBlock(); in getDataBlock() local
531 if (newBlock < 0) { in getDataBlock()
535 m_index_[ch] = newBlock; in getDataBlock()
538 System.arraycopy(m_data_, Math.abs(indexValue), m_data_, newBlock, in getDataBlock()
540 return newBlock; in getDataBlock()
/third_party/jsframework/runtime/main/model/
DdomHelper.ts66 const newBlock: FragBlockInterface = {start, end, blockId}; constant
80 newBlock.element = element.element;
84 newBlock.element = element;
85 element.block = newBlock;
87 return newBlock;
/third_party/icu/icu4c/source/common/
Dutrie2_builder.cpp514 int32_t newBlock, newTop; in allocIndex2Block() local
516 newBlock=trie->index2Length; in allocIndex2Block()
517 newTop=newBlock+UTRIE2_INDEX_2_BLOCK_LENGTH; in allocIndex2Block()
527 …uprv_memcpy(trie->index2+newBlock, trie->index2+trie->index2NullOffset, UTRIE2_INDEX_2_BLOCK_LENGT… in allocIndex2Block()
528 return newBlock; in allocIndex2Block()
553 int32_t newBlock, newTop; in allocDataBlock() local
557 newBlock=trie->firstFreeBlock; in allocDataBlock()
558 trie->firstFreeBlock=-trie->map[newBlock>>UTRIE2_SHIFT_2]; in allocDataBlock()
561 newBlock=trie->dataLength; in allocDataBlock()
562 newTop=newBlock+UTRIE2_DATA_BLOCK_LENGTH; in allocDataBlock()
[all …]
Dutrie.cpp177 int32_t newBlock, newTop; in utrie_allocDataBlock() local
179 newBlock=trie->dataLength; in utrie_allocDataBlock()
180 newTop=newBlock+UTRIE_DATA_BLOCK_LENGTH; in utrie_allocDataBlock()
186 return newBlock; in utrie_allocDataBlock()
197 int32_t indexValue, newBlock; in utrie_getDataBlock() local
206 newBlock=utrie_allocDataBlock(trie); in utrie_getDataBlock()
207 if(newBlock<0) { in utrie_getDataBlock()
211 trie->index[c]=newBlock; in utrie_getDataBlock()
214 uprv_memcpy(trie->data+newBlock, trie->data-indexValue, 4*UTRIE_DATA_BLOCK_LENGTH); in utrie_getDataBlock()
215 return newBlock; in utrie_getDataBlock()
Dumutablecptrie.cpp407 int32_t newBlock = dataLength; in allocDataBlock() local
408 int32_t newTop = newBlock + blockLength; in allocDataBlock()
431 return newBlock; in allocDataBlock()
445 int32_t newBlock = allocDataBlock(UCPTRIE_FAST_DATA_BLOCK_LENGTH); in getDataBlock() local
446 if (newBlock < 0) { return newBlock; } in getDataBlock()
451 writeBlock(data + newBlock, index[iStart]); in getDataBlock()
453 index[iStart++] = newBlock; in getDataBlock()
454 newBlock += UCPTRIE_SMALL_DATA_BLOCK_LENGTH; in getDataBlock()
458 int32_t newBlock = allocDataBlock(UCPTRIE_SMALL_DATA_BLOCK_LENGTH); in getDataBlock() local
459 if (newBlock < 0) { return newBlock; } in getDataBlock()
[all …]
/third_party/skia/third_party/externals/icu/source/common/
Dutrie2_builder.cpp514 int32_t newBlock, newTop; in allocIndex2Block() local
516 newBlock=trie->index2Length; in allocIndex2Block()
517 newTop=newBlock+UTRIE2_INDEX_2_BLOCK_LENGTH; in allocIndex2Block()
527 …uprv_memcpy(trie->index2+newBlock, trie->index2+trie->index2NullOffset, UTRIE2_INDEX_2_BLOCK_LENGT… in allocIndex2Block()
528 return newBlock; in allocIndex2Block()
553 int32_t newBlock, newTop; in allocDataBlock() local
557 newBlock=trie->firstFreeBlock; in allocDataBlock()
558 trie->firstFreeBlock=-trie->map[newBlock>>UTRIE2_SHIFT_2]; in allocDataBlock()
561 newBlock=trie->dataLength; in allocDataBlock()
562 newTop=newBlock+UTRIE2_DATA_BLOCK_LENGTH; in allocDataBlock()
[all …]
Dutrie.cpp177 int32_t newBlock, newTop; in utrie_allocDataBlock() local
179 newBlock=trie->dataLength; in utrie_allocDataBlock()
180 newTop=newBlock+UTRIE_DATA_BLOCK_LENGTH; in utrie_allocDataBlock()
186 return newBlock; in utrie_allocDataBlock()
197 int32_t indexValue, newBlock; in utrie_getDataBlock() local
206 newBlock=utrie_allocDataBlock(trie); in utrie_getDataBlock()
207 if(newBlock<0) { in utrie_getDataBlock()
211 trie->index[c]=newBlock; in utrie_getDataBlock()
214 uprv_memcpy(trie->data+newBlock, trie->data-indexValue, 4*UTRIE_DATA_BLOCK_LENGTH); in utrie_getDataBlock()
215 return newBlock; in utrie_getDataBlock()
Dumutablecptrie.cpp407 int32_t newBlock = dataLength; in allocDataBlock() local
408 int32_t newTop = newBlock + blockLength; in allocDataBlock()
431 return newBlock; in allocDataBlock()
445 int32_t newBlock = allocDataBlock(UCPTRIE_FAST_DATA_BLOCK_LENGTH); in getDataBlock() local
446 if (newBlock < 0) { return newBlock; } in getDataBlock()
451 writeBlock(data + newBlock, index[iStart]); in getDataBlock()
453 index[iStart++] = newBlock; in getDataBlock()
454 newBlock += UCPTRIE_SMALL_DATA_BLOCK_LENGTH; in getDataBlock()
458 int32_t newBlock = allocDataBlock(UCPTRIE_SMALL_DATA_BLOCK_LENGTH); in getDataBlock() local
459 if (newBlock < 0) { return newBlock; } in getDataBlock()
[all …]
/third_party/node/deps/icu-small/source/common/
Dutrie2_builder.cpp514 int32_t newBlock, newTop; in allocIndex2Block() local
516 newBlock=trie->index2Length; in allocIndex2Block()
517 newTop=newBlock+UTRIE2_INDEX_2_BLOCK_LENGTH; in allocIndex2Block()
527 …uprv_memcpy(trie->index2+newBlock, trie->index2+trie->index2NullOffset, UTRIE2_INDEX_2_BLOCK_LENGT… in allocIndex2Block()
528 return newBlock; in allocIndex2Block()
553 int32_t newBlock, newTop; in allocDataBlock() local
557 newBlock=trie->firstFreeBlock; in allocDataBlock()
558 trie->firstFreeBlock=-trie->map[newBlock>>UTRIE2_SHIFT_2]; in allocDataBlock()
561 newBlock=trie->dataLength; in allocDataBlock()
562 newTop=newBlock+UTRIE2_DATA_BLOCK_LENGTH; in allocDataBlock()
[all …]
Dutrie.cpp177 int32_t newBlock, newTop; in utrie_allocDataBlock() local
179 newBlock=trie->dataLength; in utrie_allocDataBlock()
180 newTop=newBlock+UTRIE_DATA_BLOCK_LENGTH; in utrie_allocDataBlock()
186 return newBlock; in utrie_allocDataBlock()
197 int32_t indexValue, newBlock; in utrie_getDataBlock() local
206 newBlock=utrie_allocDataBlock(trie); in utrie_getDataBlock()
207 if(newBlock<0) { in utrie_getDataBlock()
211 trie->index[c]=newBlock; in utrie_getDataBlock()
214 uprv_memcpy(trie->data+newBlock, trie->data-indexValue, 4*UTRIE_DATA_BLOCK_LENGTH); in utrie_getDataBlock()
215 return newBlock; in utrie_getDataBlock()
Dumutablecptrie.cpp407 int32_t newBlock = dataLength; in allocDataBlock() local
408 int32_t newTop = newBlock + blockLength; in allocDataBlock()
431 return newBlock; in allocDataBlock()
445 int32_t newBlock = allocDataBlock(UCPTRIE_FAST_DATA_BLOCK_LENGTH); in getDataBlock() local
446 if (newBlock < 0) { return newBlock; } in getDataBlock()
451 writeBlock(data + newBlock, index[iStart]); in getDataBlock()
453 index[iStart++] = newBlock; in getDataBlock()
454 newBlock += UCPTRIE_SMALL_DATA_BLOCK_LENGTH; in getDataBlock()
458 int32_t newBlock = allocDataBlock(UCPTRIE_SMALL_DATA_BLOCK_LENGTH); in getDataBlock() local
459 if (newBlock < 0) { return newBlock; } in getDataBlock()
[all …]
/third_party/skia/src/core/
DSkArenaAlloc.cpp91 char* newBlock = new char[allocationSize]; in ensureSpace() local
94 fCursor = newBlock; in ensureSpace()
95 fDtorCursor = newBlock; in ensureSpace()
DSkDeque.cpp229 Block* newBlock = (Block*)sk_malloc_throw(sizeof(Block) + allocCount * fElemSize); in allocateBlock() local
230 newBlock->init(sizeof(Block) + allocCount * fElemSize); in allocateBlock()
231 return newBlock; in allocateBlock()
/third_party/vk-gl-cts/framework/delibs/decpp/
DdeAppendList.hpp251 Block* const newBlock = new Block(blockNdx+1, m_blockSize); in append() local
258 m_last = newBlock; in append()
263 curBlock->next = newBlock; in append()
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/util/
DMutableCodePointTrie.java435 int newBlock = dataLength; in allocDataBlock() local
436 int newTop = newBlock + blockLength; in allocDataBlock()
454 return newBlock; in allocDataBlock()
466 int newBlock = allocDataBlock(CodePointTrie.FAST_DATA_BLOCK_LENGTH); in getDataBlock() local
471 writeBlock(newBlock, index[iStart]); in getDataBlock()
473 index[iStart++] = newBlock; in getDataBlock()
474 newBlock += CodePointTrie.SMALL_DATA_BLOCK_LENGTH; in getDataBlock()
478 int newBlock = allocDataBlock(CodePointTrie.SMALL_DATA_BLOCK_LENGTH); in getDataBlock() local
479 if (newBlock < 0) { return newBlock; } in getDataBlock()
480 writeBlock(newBlock, index[i]); in getDataBlock()
[all …]
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/util/
DMutableCodePointTrie.java427 int newBlock = dataLength; in allocDataBlock() local
428 int newTop = newBlock + blockLength; in allocDataBlock()
446 return newBlock; in allocDataBlock()
458 int newBlock = allocDataBlock(CodePointTrie.FAST_DATA_BLOCK_LENGTH); in getDataBlock() local
463 writeBlock(newBlock, index[iStart]); in getDataBlock()
465 index[iStart++] = newBlock; in getDataBlock()
466 newBlock += CodePointTrie.SMALL_DATA_BLOCK_LENGTH; in getDataBlock()
470 int newBlock = allocDataBlock(CodePointTrie.SMALL_DATA_BLOCK_LENGTH); in getDataBlock() local
471 if (newBlock < 0) { return newBlock; } in getDataBlock()
472 writeBlock(newBlock, index[i]); in getDataBlock()
[all …]
/third_party/skia/src/sksl/ir/
DSkSLSwitchStatement.cpp280 std::unique_ptr<Statement> newBlock = BlockForCase(&cases, matchingCase, symbolTable); in Make() local
281 if (newBlock) { in Make()
282 return newBlock; in Make()

12