Home
last modified time | relevance | path

Searched refs:newlen (Results 1 – 25 of 64) sorted by relevance

123

/external/apache-http/src/org/apache/http/util/
DByteArrayBuffer.java61 private void expand(int newlen) { in expand() argument
62 byte newbuffer[] = new byte[Math.max(this.buffer.length << 1, newlen)]; in expand()
78 int newlen = this.len + len; in append() local
79 if (newlen > this.buffer.length) { in append()
80 expand(newlen); in append()
83 this.len = newlen; in append()
87 int newlen = this.len + 1; in append() local
88 if (newlen > this.buffer.length) { in append()
89 expand(newlen); in append()
92 this.len = newlen; in append()
[all …]
DCharArrayBuffer.java63 private void expand(int newlen) { in expand() argument
64 char newbuffer[] = new char[Math.max(this.buffer.length << 1, newlen)]; in expand()
80 int newlen = this.len + len; in append() local
81 if (newlen > this.buffer.length) { in append()
82 expand(newlen); in append()
85 this.len = newlen; in append()
93 int newlen = this.len + strlen; in append() local
94 if (newlen > this.buffer.length) { in append()
95 expand(newlen); in append()
98 this.len = newlen; in append()
[all …]
/external/jemalloc/include/jemalloc/internal/
Dctl.h72 size_t newlen);
76 void *newp, size_t newlen);
82 #define xmallctl(name, oldp, oldlenp, newp, newlen) do { \ argument
83 if (je_mallctl(name, oldp, oldlenp, newp, newlen) \
100 #define xmallctlbymib(mib, miblen, oldp, oldlenp, newp, newlen) do { \ argument
102 newlen) != 0) { \
/external/selinux/libsepol/cil/src/
Dcil_fqn.c49 int newlen; in __cil_fqn_qualify_decls() local
57 newlen = fqn_args->len + strlen(datum->name); in __cil_fqn_qualify_decls()
58 if (newlen >= CIL_MAX_NAME_LENGTH) { in __cil_fqn_qualify_decls()
85 int newlen = fqn_args->len + strlen(datum->name) + 1; in __cil_fqn_qualify_blocks() local
86 if (newlen >= CIL_MAX_NAME_LENGTH) { in __cil_fqn_qualify_blocks()
93 child_args.len = newlen; in __cil_fqn_qualify_blocks()
/external/dhcpcd-6.8.2/compat/
Dgetline.c44 size_t bytes, newlen; in getline() local
59 newlen = *buflen + BUFSIZ; in getline()
60 newbuf = realloc(*buf, newlen); in getline()
64 *buflen = newlen; in getline()
/external/jemalloc/src/
Dctl.c46 size_t *oldlenp, void *newp, size_t newlen);
906 size_t newlen) in ctl_byname() argument
926 ret = node->ctl(mib, depth, oldp, oldlenp, newp, newlen); in ctl_byname()
953 void *newp, size_t newlen) in ctl_bymib() argument
991 ret = node->ctl(mib, miblen, oldp, oldlenp, newp, newlen); in ctl_bymib()
1038 if (newp != NULL || newlen != 0) { \
1053 newlen != 0)) { \
1074 if (newlen != sizeof(t)) { \
1089 void *newp, size_t newlen) \
1112 void *newp, size_t newlen) \
[all …]
/external/boringssl/src/crypto/bytestring/
Dcbb.c89 size_t newlen; in cbb_buffer_reserve() local
95 newlen = base->len + len; in cbb_buffer_reserve()
96 if (newlen < base->len) { in cbb_buffer_reserve()
101 if (newlen > base->cap) { in cbb_buffer_reserve()
109 if (newcap < base->cap || newcap < newlen) { in cbb_buffer_reserve()
110 newcap = newlen; in cbb_buffer_reserve()
366 size_t newlen = cbb->base->len + len; in CBB_did_write() local
368 newlen < cbb->base->len || in CBB_did_write()
369 newlen > cbb->base->cap) { in CBB_did_write()
372 cbb->base->len = newlen; in CBB_did_write()
/external/boringssl/src/crypto/asn1/
Da_time.c135 int newlen; in ASN1_TIME_to_generalizedtime() local
159 newlen = t->length + 2 + 1; in ASN1_TIME_to_generalizedtime()
162 if (t->data[0] >= '5') BUF_strlcpy(str, "19", newlen); in ASN1_TIME_to_generalizedtime()
163 else BUF_strlcpy(str, "20", newlen); in ASN1_TIME_to_generalizedtime()
165 BUF_strlcat(str, (char *)t->data, newlen); in ASN1_TIME_to_generalizedtime()
/external/pdfium/third_party/libopenjpeg20/
Dt2.c1044 …l_cblk->segs[l_segno].newlen = opj_bio_read(l_bio, l_cblk->numlenbits + opj_uint_floorlog2(l_cblk-… in opj_t2_read_packet_header()
1045 …d \n", l_included, l_cblk->segs[l_segno].numnewpasses, l_increment, l_cblk->segs[l_segno].newlen ); in opj_t2_read_packet_header()
1159 …E_T)l_current_data + (OPJ_SIZE_T)l_seg->newlen) < (OPJ_SIZE_T)l_current_data) || (l_current_data +… in opj_t2_read_packet_data()
1161 … l_seg->newlen, p_max_length, cblkno, p_pi->precno, bandno, p_pi->resno, p_pi->compno); in opj_t2_read_packet_data()
1170 if ((l_cblk->len + l_seg->newlen) > 8192) { in opj_t2_read_packet_data()
1173 … l_seg->newlen, cblkno, p_pi->precno, bandno, p_pi->resno, p_pi->compno); in opj_t2_read_packet_data()
1178 l_seg->newlen = 8192 - l_cblk->len; in opj_t2_read_packet_data()
1179 … opj_event_msg(p_manager, EVT_WARNING, " - truncating segment to %d\n", l_seg->newlen); in opj_t2_read_packet_data()
1185 … if ((l_cblk->data_current_size + l_seg->newlen) < l_cblk->data_current_size) { in opj_t2_read_packet_data()
1187 …l_seg->newlen, l_cblk->data_current_size, 0xFFFFFFFF - l_seg->newlen, cblkno, p_pi->precno, bandno… in opj_t2_read_packet_data()
[all …]
/external/llvm/test/Transforms/SimplifyCFG/
Dunreachable-blocks.ll12 %newlen = sub i32 %newlen, 1
14 %test = icmp sgt i32 %newlen, 0
/external/elfutils/libcpu/
Di386_parse.y1527 size_t newlen[nstrsnlen];
1531 newlen[i] = strsnlen[i].len - 1;
1533 newlen[i] = strsnlen[i].len;
1542 size_t table = newlen[0] + 1;
1547 if (newlen[i] > newlen[j]
1549 strsnlen[i].str + (newlen[i] - newlen[j]),
1550 newlen[j]) == 0)
1552 table += newlen[i] - newlen[j];
1554 newlen[j] = newlen[i];
1557 else if (newlen[i] < newlen[j]
[all …]
/external/toybox/toys/posix/
Dsed.c248 static char *extend_string(char **old, char *new, int oldlen, int newlen) in extend_string() argument
250 int newline = newlen < 0; in extend_string()
253 if (newline) newlen = -newlen; in extend_string()
254 s = *old = xrealloc(*old, oldlen+newlen+newline+1); in extend_string()
256 memcpy(s+oldlen, new, newlen); in extend_string()
257 s[oldlen+newlen] = 0; in extend_string()
259 return s+oldlen+newlen+1; in extend_string()
490 int mflags = 0, count = 0, zmatch = 1, rlen = len, mlen, off, newlen; in walk_pattern() local
518 for (off = newlen = 0; new[off]; off++) { in walk_pattern()
524 newlen++; in walk_pattern()
[all …]
Dpatch.c53 long oldline, oldlen, newline, newlen;
295 if (*patchline != '-') TT.newlen--; in patch_main()
303 if (!TT.oldlen && !TT.newlen) state = apply_one_hunk(); in patch_main()
348 TT.oldlen = TT.newlen = 1; in patch_main()
352 if (*s == ',') TT.newlen = strtol(s+1, &s, 10); in patch_main()
363 newsum = TT.newline + TT.newlen; in patch_main()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/math/
DBigDecimal.java1013 int newlen = 0; in add() local
1067 newlen = (usellen + lhs.exp) - rhs.exp; in add()
1072 if (newlen >= ((userlen + reqdig) + 1)) in add()
1086 if (newlen > (reqdig + 1)) in add()
1089 tlen = (newlen - reqdig) - 1; // truncation length in add()
1092 newlen = reqdig + 1; in add()
1094 if (newlen > usellen) in add()
1095 usellen = newlen; // need to pad LHS in add()
1097 newlen = (userlen + rhs.exp) - lhs.exp; in add()
1098 if (newlen >= ((usellen + reqdig) + 1)) in add()
[all …]
/external/icu/android_icu4j/src/main/java/android/icu/math/
DBigDecimal.java989 int newlen = 0; in add() local
1043 newlen = (usellen + lhs.exp) - rhs.exp; in add()
1048 if (newlen >= ((userlen + reqdig) + 1)) in add()
1062 if (newlen > (reqdig + 1)) in add()
1065 tlen = (newlen - reqdig) - 1; // truncation length in add()
1068 newlen = reqdig + 1; in add()
1070 if (newlen > usellen) in add()
1071 usellen = newlen; // need to pad LHS in add()
1073 newlen = (userlen + rhs.exp) - lhs.exp; in add()
1074 if (newlen >= ((usellen + reqdig) + 1)) in add()
[all …]
/external/icu/icu4j/eclipse-build/plugins.template/com.ibm.icu.base/src/com/ibm/icu/math/
DBigDecimal.java1011 int newlen = 0; in add() local
1065 newlen = (usellen + lhs.exp) - rhs.exp; in add()
1070 if (newlen >= ((userlen + reqdig) + 1)) in add()
1084 if (newlen > (reqdig + 1)) in add()
1087 tlen = (newlen - reqdig) - 1; // truncation length in add()
1090 newlen = reqdig + 1; in add()
1092 if (newlen > usellen) in add()
1093 usellen = newlen; // need to pad LHS in add()
1095 newlen = (userlen + rhs.exp) - lhs.exp; in add()
1096 if (newlen >= ((usellen + reqdig) + 1)) in add()
[all …]
/external/curl/lib/
Descape.c85 size_t newlen = alloc; in curl_easy_escape() local
103 newlen += 2; /* the size grows with two, since this'll become a %XX */ in curl_easy_escape()
104 if(newlen > alloc) { in curl_easy_escape()
/external/e2fsprogs/lib/ext2fs/
Dpunch.c256 __u32 free_count, newlen; in ext2fs_punch_extent() local
310 newlen = start - extent.e_lblk; in ext2fs_punch_extent()
311 free_start = extent.e_pblk + newlen; in ext2fs_punch_extent()
312 lfree_start = extent.e_lblk + newlen; in ext2fs_punch_extent()
313 free_count = extent.e_len - newlen; in ext2fs_punch_extent()
314 extent.e_len = newlen; in ext2fs_punch_extent()
/external/selinux/libsepol/src/
Dpolicydb_convert.c35 policydb_t * policydb, void **newdata, size_t * newlen) in policydb_to_image() argument
90 *newlen = tmp_len; in policydb_to_image()
/external/mdnsresponder/mDNSShared/
Ddnssd_clientlib.c221 unsigned long newlen = txtRec->datalen + keyvalsize; in TXTRecordSetValue() local
222 if (newlen > 0xFFFF) return(kDNSServiceErr_Invalid); in TXTRecordSetValue()
223 newbuf = malloc((size_t)newlen); in TXTRecordSetValue()
228 txtRec->buflen = (uint16_t)(newlen); in TXTRecordSetValue()
/external/e2fsprogs/util/
Dsymlinks.c44 int oldlen = strlen(old), newlen = 0; in substr() local
50 newlen = strlen(new); in substr()
52 if (newlen > oldlen) { in substr()
63 if (newlen > oldlen) in substr()
/external/icu/icu4c/source/io/
Dustdio.c129 int32_t newlen; in u_file_translit() local
157 newlen = (*count + f->fTranslit->length) * 4; in u_file_translit()
159 if(newlen > f->fTranslit->capacity) in u_file_translit()
163 f->fTranslit->buffer = (UChar*)uprv_malloc(newlen * sizeof(UChar)); in u_file_translit()
167 … f->fTranslit->buffer = (UChar*)uprv_realloc(f->fTranslit->buffer, newlen * sizeof(UChar)); in u_file_translit()
173 f->fTranslit->capacity = newlen; in u_file_translit()
/external/jemalloc/include/jemalloc/
Djemalloc_protos.h45 void *oldp, size_t *oldlenp, void *newp, size_t newlen);
49 size_t miblen, void *oldp, size_t *oldlenp, void *newp, size_t newlen);
Djemalloc_protos_jet.h45 void *oldp, size_t *oldlenp, void *newp, size_t newlen);
49 size_t miblen, void *oldp, size_t *oldlenp, void *newp, size_t newlen);
/external/strace/
Dsysctl.c63 info.oldlenp, info.newval, (unsigned long)info.newlen); in SYS_FUNC()
187 tprintf(", %lu", (unsigned long)info.newlen); in SYS_FUNC()

123