Home
last modified time | relevance | path

Searched refs:newLen (Results 1 – 25 of 42) sorted by relevance

12

/external/jmonkeyengine/engine/src/core/com/jme3/renderer/
DIDList.java45 public int newLen = 0; field in IDList
52 newLen = 0; in reset()
69 if (newLen == 0 || newList[newLen-1] != idx) in moveToNew()
71 newList[newLen++] = idx; in moveToNew()
92 System.arraycopy(newList, 0, oldList, 0, newLen); in copyNewToOld()
93 oldLen = newLen; in copyNewToOld()
94 newLen = 0; in copyNewToOld()
101 if (newLen > 0){ in print()
103 for (int i = 0; i < newLen; i++){ in print()
104 if (i == newLen -1) in print()
/external/icu/icu4c/source/test/perf/usetperf/
Dbitset.cpp51 uint32_t newLen = len; in ensureCapacity() local
52 while (newLen < minLen) newLen <<= 1; // grow exponentially in ensureCapacity()
53 int32_t* newData = (int32_t*) uprv_malloc(newLen * BYTES_PER_WORD); in ensureCapacity()
58 int32_t* limit = data + newLen; in ensureCapacity()
60 len = newLen; in ensureCapacity()
/external/apache-commons-math/src/main/java/org/apache/commons/math/util/
DMultidimensionalCounter.java310 private int[] copyOf(int[] source, int newLen) { in copyOf() argument
311 int[] output = new int[newLen]; in copyOf()
312 System.arraycopy(source, 0, output, 0, Math.min(source.length, newLen)); in copyOf()
/external/v8/src/
Darraybuffer.js57 var newLen = fin - first;
59 var result = new $ArrayBuffer(newLen);
/external/mesa3d/src/mesa/program/
Dprogramopt.c53 const GLuint newLen = origLen + 4; in _mesa_insert_mvp_dp4_code() local
74 newInst = _mesa_alloc_instructions(newLen); in _mesa_insert_mvp_dp4_code()
110 vprog->Base.NumInstructions = newLen; in _mesa_insert_mvp_dp4_code()
121 const GLuint newLen = origLen + 4; in _mesa_insert_mvp_mad_code() local
143 newInst = _mesa_alloc_instructions(newLen); in _mesa_insert_mvp_mad_code()
212 vprog->Base.NumInstructions = newLen; in _mesa_insert_mvp_mad_code()
259 const GLuint newLen = origLen + 5; in _mesa_append_fog_code() local
276 newInst = _mesa_alloc_instructions(newLen); in _mesa_append_fog_code()
Dprogram.c579 const GLuint newLen = origLen + count; in _mesa_insert_instructions() local
594 newInst = _mesa_alloc_instructions(newLen); in _mesa_insert_instructions()
615 prog->NumInstructions = newLen; in _mesa_insert_instructions()
628 const GLuint newLen = origLen - count; in _mesa_delete_instructions() local
643 newInst = _mesa_alloc_instructions(newLen); in _mesa_delete_instructions()
654 newLen - start); in _mesa_delete_instructions()
661 prog->NumInstructions = newLen; in _mesa_delete_instructions()
/external/javassist/src/main/javassist/bytecode/
DByteStream.java187 int newLen = buf.length << 1; in enlarge() local
188 byte[] newBuf = new byte[newLen > newCount ? newLen : newCount]; in enlarge()
/external/libvncserver/libvncserver/
Drre.c185 int newLen; \
235 newLen = client->afterEncBufLen + (bpp/8) + sz_rfbRectangle; \
236 if ((newLen > (w * h * (bpp/8))) || (newLen > client->afterEncBufSize)) \
Dcorre.c218 int newLen; \
268 newLen = client->afterEncBufLen + (bpp/8) + sz_rfbCoRRERectangle; \
269 if ((newLen > (w * h * (bpp/8))) || (newLen > client->afterEncBufSize)) \
Dhextile.c209 int newLen; \
259 newLen = cl->ublen - nSubrectsUblen + 2; \
261 newLen = cl->ublen - nSubrectsUblen + bpp/8 + 2; \
264 if (newLen > (w * h * (bpp/8))) \
/external/apache-commons-math/src/main/java/org/apache/commons/math/optimization/direct/
DPowellOptimizer.java292 private double[] copyOf(double[] source, int newLen) { in copyOf() argument
293 double[] output = new double[newLen]; in copyOf()
294 System.arraycopy(source, 0, output, 0, Math.min(source.length, newLen)); in copyOf()
/external/aac/libSBRdec/src/
Denv_dec.cpp609 int refLen, newLen, shift; in timeCompensateFirstEnvelope() local
615 newLen = pFrameInfo->borders[1] - estimatedStartPos; in timeCompensateFirstEnvelope()
617 if (newLen <= 0) { in timeCompensateFirstEnvelope()
621 newLen = refLen; in timeCompensateFirstEnvelope()
625 deltaExp = FDK_getNumOctavesDiv8(newLen, refLen); in timeCompensateFirstEnvelope()
/external/fonttools/Lib/fontTools/ttLib/tables/
DotTables.py579 newLen = oldLen//2
585 newLen = overflowRecord.itemIndex - 1
588 for i in range(newLen, oldLen):
607 newLen = oldLen//2
613 newLen = overflowRecord.itemIndex - 1
616 for i in range(newLen, oldLen):
/external/mesa3d/src/gallium/drivers/r300/
Dr300_vs_draw.c318 const uint newLen = tgsi_num_tokens(vs->state.tokens) + 100 /* XXX */; in r300_draw_init_vertex_shader() local
323 new_vs.tokens = tgsi_alloc_tokens(newLen); in r300_draw_init_vertex_shader()
353 newLen, &transform.base); in r300_draw_init_vertex_shader()
/external/icu/icu4j/main/tests/translit/src/com/ibm/icu/dev/test/translit/
DReplaceableTest.java148 void fixStyles(int start, int limit, int newLen) { in fixStyles() argument
159 for (int i = 0; i < newLen; ++i) { in fixStyles()
/external/mesa3d/src/gallium/auxiliary/util/
Du_pstipple.c411 const uint newLen = tgsi_num_tokens(fs->tokens) + NUM_NEW_TOKENS; in util_pstipple_create_fragment_shader() local
418 new_fs->tokens = tgsi_alloc_tokens(newLen); in util_pstipple_create_fragment_shader()
446 newLen, &transform.base); in util_pstipple_create_fragment_shader()
/external/icu/icu4c/source/test/intltest/
Dreptest.cpp121 void fixStyles(int32_t start, int32_t limit, int32_t newLen) { in fixStyles() argument
132 for (int i = 0; i < newLen; ++i) { in fixStyles()
/external/lzma/CS/7zip/Compress/LZMA/
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()
/external/lzma/Java/SevenZip/Compression/LZMA/
DEncoder.java702 int newLen = ReadMatchDistances(); in GetOptimum() local
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()
/external/nanohttpd/webserver/src/main/java/fi/iki/elonen/
DSimpleWebServer.java404 long newLen = endAt - startFrom + 1; in serveFile() local
405 if (newLen < 0) { in serveFile()
406 newLen = 0; in serveFile()
409 final long dataLen = newLen; in serveFile()
/external/icu/icu4c/source/common/
Duniset.cpp1577 void UnicodeSet::ensureCapacity(int32_t newLen, UErrorCode& ec) { in ensureCapacity() argument
1578 if (newLen <= capacity) in ensureCapacity()
1580 UChar32* temp = (UChar32*) uprv_realloc(list, sizeof(UChar32) * (newLen + GROW_EXTRA)); in ensureCapacity()
1587 capacity = newLen + GROW_EXTRA; in ensureCapacity()
1591 void UnicodeSet::ensureBufferCapacity(int32_t newLen, UErrorCode& ec) { in ensureBufferCapacity() argument
1592 if (buffer != NULL && newLen <= bufferCapacity) in ensureBufferCapacity()
1594 UChar32* temp = (UChar32*) uprv_realloc(buffer, sizeof(UChar32) * (newLen + GROW_EXTRA)); in ensureBufferCapacity()
1601 bufferCapacity = newLen + GROW_EXTRA; in ensureBufferCapacity()
/external/icu/icu4c/source/test/cintltst/
Dutransts.c98 int32_t newLen = Xlength(rep) + limit - start + textLength; in Xreplace() local
99 UChar* newText = (UChar*) malloc(sizeof(UChar) * (newLen+1)); in Xreplace()
110 int32_t newLen = Xlength(rep) + limit - start; in Xcopy() local
111 UChar* newText = (UChar*) malloc(sizeof(UChar) * (newLen+1)); in Xcopy()
/external/jhead/
Dmain.c518 int newLen = strlen(*buf) + len; in addKeyValueString() local
519 if (newLen >= bufLen) { in addKeyValueString()
521 bufLen = newLen + 5; in addKeyValueString()
524 bufLen = newLen + 500; in addKeyValueString()
/external/mesa3d/src/gallium/auxiliary/draw/
Ddraw_pipe_pstipple.c345 const uint newLen = tgsi_num_tokens(orig_fs->tokens) + NUM_NEW_TOKENS; in generate_pstip_fs() local
348 pstip_fs.tokens = tgsi_alloc_tokens(newLen); in generate_pstip_fs()
363 newLen, &transform.base); in generate_pstip_fs()
/external/lzma/C/
DLzmaEnc.c1126 UInt32 numAvailFull, newLen, numPairs, posPrev, state, posState, startLen; in GetOptimum() local
1138 newLen = ReadMatchDistances(p, &numPairs); in GetOptimum()
1139 if (newLen >= p->numFastBytes) in GetOptimum()
1142 p->longestMatchLength = newLen; in GetOptimum()
1390 if (newLen > numAvail) in GetOptimum()
1392 newLen = numAvail; in GetOptimum()
1393 for (numPairs = 0; newLen > matches[numPairs]; numPairs += 2); in GetOptimum()
1394 matches[numPairs] = newLen; in GetOptimum()
1397 if (newLen >= startLen) in GetOptimum()
1402 while (lenEnd < cur + newLen) in GetOptimum()

12