Home
last modified time | relevance | path

Searched refs:newLen (Results 1 - 25 of 53) sorted by relevance

123

/third_party/icu/icu4c/source/test/perf/usetperf/
H A Dbitset.cpp55 uint32_t newLen = len; in ensureCapacity() local
56 while (newLen < minLen) newLen <<= 1; // grow exponentially in ensureCapacity()
57 int32_t* newData = (int32_t*) uprv_malloc(newLen * BYTES_PER_WORD); in ensureCapacity()
62 int32_t* limit = data + newLen; in ensureCapacity()
64 len = newLen; in ensureCapacity()
/third_party/node/deps/npm/node_modules/diff/lib/diff/
H A Dbase.js49 var newLen = newString.length,
52 var maxEditLength = newLen + oldLen;
71 if (bestPath[0].oldPos + 1 >= oldLen && newPos + 1 >= newLen) {
119 canAdd = addPath && 0 <= addPathNewPos && addPathNewPos < newLen;
143 if (basePath.oldPos + 1 >= oldLen && newPos + 1 >= newLen) {
153 if (newPos + 1 >= newLen) {
222 var newLen = newString.length,
228 while (newPos + 1 < newLen && oldPos + 1 < oldLen && this.equals(newString[newPos + 1], oldString[oldPos + 1])) {
/kernel/liteos_a/kernel/extended/dynload/src/
H A Dlos_exec_elf.c54 UINT32 len, workPathLen, newLen; in OsGetRealPath() local
63 newLen = len + 1 + workPathLen + 1; in OsGetRealPath()
64 if (newLen >= maxLen) { in OsGetRealPath()
76 buf[newLen] = '\0'; in OsGetRealPath()
/third_party/mesa3d/src/mesa/program/
H A Dprogramopt.c53 const GLuint newLen = origLen + 4; in insert_mvp_dp4_code() local
73 newInst = rzalloc_array(vprog, struct prog_instruction, newLen); in insert_mvp_dp4_code()
109 vprog->arb.NumInstructions = newLen; in insert_mvp_dp4_code()
120 const GLuint newLen = origLen + 4; in insert_mvp_mad_code() local
141 newInst = rzalloc_array(vprog, struct prog_instruction, newLen); in insert_mvp_mad_code()
210 vprog->arb.NumInstructions = newLen; in insert_mvp_mad_code()
256 const GLuint newLen = origLen + 5; in _mesa_append_fog_code() local
273 newInst = rzalloc_array(fprog, struct prog_instruction, newLen); in _mesa_append_fog_code()
/kernel/liteos_a/apps/shell/src/
H A Dshmsg.c492 unsigned int shiftLen, execLen, newLen; in PreHandleCmdline() local
521 newLen = execLen + shiftLen - removeLen; /* i.e., newLen - execLen == shiftLen - removeLen */ in PreHandleCmdline()
522 newCmd = (char *)malloc(newLen + 1); in PreHandleCmdline()
529 err = memcpy_s(newCmd, newLen, execCmd, execLen); in PreHandleCmdline()
536 err = memcpy_s(newCmd + execLen, newLen - execLen, shiftStr + removeLen, shiftLen - removeLen); in PreHandleCmdline()
542 newCmd[newLen] = '\0'; in PreHandleCmdline()
545 *outputlen = newLen; in PreHandleCmdline()
/kernel/liteos_a/syscall/
H A Dvm_syscall.c53 void *SysMremap(void *oldAddr, size_t oldLen, size_t newLen, int flags, void *newAddr) in SysMremap() argument
55 return (void *)LOS_DoMremap((vaddr_t)oldAddr, oldLen, newLen, flags, (vaddr_t)newAddr); in SysMremap()
/kernel/liteos_a/shell/full/src/base/
H A Dshmsg.c276 UINT32 len, cmdLen, newLen; in ShellMsgParse() local
291 newLen = len + 1 + cmdLen + 1; in ShellMsgParse()
292 newMsg = (CHAR *)LOS_MemAlloc(m_aucSysMem0, newLen); in ShellMsgParse()
297 (VOID)memcpy_s(newMsg, newLen, cmd, cmdLen); in ShellMsgParse()
299 (VOID)memcpy_s(newMsg + cmdLen + 1, newLen - cmdLen - 1, (CHAR *)msg + 1, len); in ShellMsgParse()
301 len = newLen - 1; in ShellMsgParse()
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
H A DEdits.java404 int newLen = (u >> 9) & MAX_SHORT_CHANGE_NEW_LENGTH; in next()
408 newLength_ = num * newLen; in next()
412 newLength_ = newLen; in next()
493 int newLen = (u >> 9) & MAX_SHORT_CHANGE_NEW_LENGTH; in previous()
497 newLength_ = num * newLen; in previous()
501 newLength_ = newLen; in previous()
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/text/
H A DEdits.java394 int newLen = (u >> 9) & MAX_SHORT_CHANGE_NEW_LENGTH; in next()
398 newLength_ = num * newLen; in next()
402 newLength_ = newLen; in next()
483 int newLen = (u >> 9) & MAX_SHORT_CHANGE_NEW_LENGTH; in previous()
487 newLength_ = num * newLen; in previous()
491 newLength_ = newLen; in previous()
/third_party/lzma/CPP/Common/
H A DMyString.h361 void ReleaseBuf_SetLen(unsigned newLen) { _len = newLen; } in ReleaseBuf_SetLen() argument
362 void ReleaseBuf_SetEnd(unsigned newLen) { _len = newLen; _chars[newLen] = 0; } in ReleaseBuf_SetEnd() argument
653 void ReleaseBuf_SetLen(unsigned newLen) { _len = newLen; } in ReleaseBuf_SetLen() argument
654 void ReleaseBuf_SetEnd(unsigned newLen) { _len = newLen; _chars[newLen] in ReleaseBuf_SetLen() argument
893 ReleaseBuf_SetLen(unsigned newLen) ReleaseBuf_SetLen() argument
[all...]
/kernel/liteos_a/kernel/base/vm/
H A Dlos_vm_syscall.c358 STATUS_T OsMremapCheck(VADDR_T addr, size_t oldLen, VADDR_T newAddr, size_t newLen, unsigned int flags) in OsMremapCheck() argument
364 if ((region == NULL) || (region->range.base > addr) || (newLen == 0)) { in OsMremapCheck()
388 if (newLen > oldLen) { in OsMremapCheck()
389 if ((addr + newLen) < addr) { in OsMremapCheck()
397 (region->range.base < (newAddr + newLen))) { in OsMremapCheck()
/third_party/icu/icu4c/source/common/
H A Dedits.cpp507 int32_t newLen = (u >> 9) & MAX_SHORT_CHANGE_NEW_LENGTH; in next() local
511 newLength_ = num * newLen; in next()
515 newLength_ = newLen; in next()
599 int32_t newLen = (u >> 9) & MAX_SHORT_CHANGE_NEW_LENGTH; in previous()
603 newLength_ = num * newLen; in previous()
607 newLength_ = newLen; in previous()
H A Duniset.cpp1641 bool UnicodeSet::ensureCapacity(int32_t newLen) {
1642 if (newLen > MAX_LENGTH) {
1643 newLen = MAX_LENGTH;
1645 if (newLen <= capacity) {
1648 int32_t newCapacity = nextCapacity(newLen);
1664 bool UnicodeSet::ensureBufferCapacity(int32_t newLen) {
1665 if (newLen > MAX_LENGTH) {
1666 newLen = MAX_LENGTH;
1668 if (newLen <= bufferCapacity) {
1671 int32_t newCapacity = nextCapacity(newLen);
[all...]
/third_party/node/deps/icu-small/source/common/
H A Dedits.cpp507 int32_t newLen = (u >> 9) & MAX_SHORT_CHANGE_NEW_LENGTH; in next() local
511 newLength_ = num * newLen; in next()
515 newLength_ = newLen; in next()
599 int32_t newLen = (u >> 9) & MAX_SHORT_CHANGE_NEW_LENGTH; in previous()
603 newLength_ = num * newLen; in previous()
607 newLength_ = newLen; in previous()
H A Duniset.cpp1641 bool UnicodeSet::ensureCapacity(int32_t newLen) {
1642 if (newLen > MAX_LENGTH) {
1643 newLen = MAX_LENGTH;
1645 if (newLen <= capacity) {
1648 int32_t newCapacity = nextCapacity(newLen);
1664 bool UnicodeSet::ensureBufferCapacity(int32_t newLen) {
1665 if (newLen > MAX_LENGTH) {
1666 newLen = MAX_LENGTH;
1668 if (newLen <= bufferCapacity) {
1671 int32_t newCapacity = nextCapacity(newLen);
[all...]
/third_party/skia/third_party/externals/icu/source/common/
H A Dedits.cpp507 int32_t newLen = (u >> 9) & MAX_SHORT_CHANGE_NEW_LENGTH; in next() local
511 newLength_ = num * newLen; in next()
515 newLength_ = newLen; in next()
599 int32_t newLen = (u >> 9) & MAX_SHORT_CHANGE_NEW_LENGTH; in previous()
603 newLength_ = num * newLen; in previous()
607 newLength_ = newLen; in previous()
H A Duniset.cpp1642 bool UnicodeSet::ensureCapacity(int32_t newLen) {
1643 if (newLen > MAX_LENGTH) {
1644 newLen = MAX_LENGTH;
1646 if (newLen <= capacity) {
1649 int32_t newCapacity = nextCapacity(newLen);
1665 bool UnicodeSet::ensureBufferCapacity(int32_t newLen) {
1666 if (newLen > MAX_LENGTH) {
1667 newLen = MAX_LENGTH;
1669 if (newLen <= bufferCapacity) {
1672 int32_t newCapacity = nextCapacity(newLen);
[all...]
/third_party/mesa3d/src/gallium/drivers/r300/
H A Dr300_vs_draw.c317 const uint newLen = tgsi_num_tokens(vs->state.tokens) + 100; in r300_draw_init_vertex_shader() local
320 .tokens = tgsi_alloc_tokens(newLen) in r300_draw_init_vertex_shader()
350 new_vs.tokens = tgsi_transform_shader(vs->state.tokens, newLen, &transform.base); in r300_draw_init_vertex_shader()
/third_party/vk-gl-cts/external/vulkan-docs/src/scripts/
H A Dgenerator.py1104 newLen = len(paramdecl)
1105 self.logMsg('diag', 'Adjust length of parameter decl from', oldLen, 'to', newLen, ':', paramdecl)
1136 newLen = 0
1147 newLen = len(paramdecl.rstrip())
1148 self.logMsg('diag', 'Identifying length of', elem.text, 'as', newLen)
1151 return newLen
H A Dreflow.py372 newLen = outLineLen + 1 + wordLen
389 elif newLen > self.margin:
421 outLineLen = newLen
/third_party/vulkan-headers/registry/
H A Dgenerator.py1104 newLen = len(paramdecl)
1105 self.logMsg('diag', 'Adjust length of parameter decl from', oldLen, 'to', newLen, ':', paramdecl)
1136 newLen = 0
1147 newLen = len(paramdecl.rstrip())
1148 self.logMsg('diag', 'Identifying length of', elem.text, 'as', newLen)
1151 return newLen
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/translit/
H A DReplaceableTest.java161 void fixStyles(int start, int limit, int newLen) { in fixStyles() argument
172 for (int i = 0; i < newLen; ++i) { in fixStyles()
/third_party/icu/icu4j/main/tests/translit/src/com/ibm/icu/dev/test/translit/
H A DReplaceableTest.java158 void fixStyles(int start, int limit, int newLen) { in fixStyles() argument
169 for (int i = 0; i < newLen; ++i) { in fixStyles()
/third_party/lzma/CS/7zip/Compress/LZMA/
H A DLzmaEncoder.cs702 UInt32 newLen; in GetOptimum()
703 ReadMatchDistances(out newLen, out numDistancePairs); in GetOptimum()
704 if (newLen >= _numFastBytes) in GetOptimum()
707 _longestMatchLength = newLen; in GetOptimum()
951 if (newLen > numAvailableBytes) in GetOptimum()
953 newLen = numAvailableBytes; in GetOptimum()
954 for (numDistancePairs = 0; newLen > _matchDistances[numDistancePairs]; numDistancePairs += 2) ; in GetOptimum()
955 _matchDistances[numDistancePairs] = newLen; in GetOptimum()
958 if (newLen >= startLen) in GetOptimum()
961 while (lenEnd < cur + newLen) in GetOptimum()
[all...]
/third_party/icu/icu4c/source/test/intltest/
H A Dreptest.cpp123 void fixStyles(int32_t start, int32_t limit, int32_t newLen) { in fixStyles() argument
134 for (int i = 0; i < newLen; ++i) { in fixStyles()

Completed in 26 milliseconds

123