Home
last modified time | relevance | path

Searched refs:len2 (Results 1 – 25 of 115) sorted by relevance

12345

/external/toybox/toys/example/
Ddemo_utf8towc.c21 int len1, len2; in demo_utf8towc_main() local
32 len2 = 4; in demo_utf8towc_main()
34 while (!*str) str++, len2--; in demo_utf8towc_main()
36 len1 = mbrtowc(&wc1, str, len2, &mb); in demo_utf8towc_main()
38 len2 = utf8towc(&wc2, str, len2); in demo_utf8towc_main()
39 if (len1 != len2 || wc1 != wc2) in demo_utf8towc_main()
40 printf("%x %d %x %d %x\n", u, len1, wc1, len2, wc2); in demo_utf8towc_main()
/external/python/cpython2/Modules/zlib/
Dadler32.c10 local uLong adler32_combine_ OF((uLong adler1, uLong adler2, z_off64_t len2));
143 local uLong adler32_combine_(adler1, adler2, len2) in adler32_combine_() argument
146 z_off64_t len2;
153 if (len2 < 0)
157 MOD63(len2); /* assumes len2 >= 0 */
158 rem = (unsigned)len2;
172 uLong ZEXPORT adler32_combine(adler1, adler2, len2) in adler32_combine() argument
175 z_off_t len2;
177 return adler32_combine_(adler1, adler2, len2);
180 uLong ZEXPORT adler32_combine64(adler1, adler2, len2) in adler32_combine64() argument
[all …]
Dcrc32.c51 local uLong crc32_combine_ OF((uLong crc1, uLong crc2, z_off64_t len2));
372 local uLong crc32_combine_(crc1, crc2, len2) in crc32_combine_() argument
375 z_off64_t len2;
383 if (len2 <= 0)
405 if (len2 & 1)
407 len2 >>= 1;
410 if (len2 == 0)
415 if (len2 & 1)
417 len2 >>= 1;
420 } while (len2 != 0);
[all …]
/external/zlib/src/
Dadler32.c10 local uLong adler32_combine_ OF((uLong adler1, uLong adler2, z_off64_t len2));
143 local uLong adler32_combine_(adler1, adler2, len2) in adler32_combine_() argument
146 z_off64_t len2;
153 if (len2 < 0)
157 MOD63(len2); /* assumes len2 >= 0 */
158 rem = (unsigned)len2;
172 uLong ZEXPORT adler32_combine(adler1, adler2, len2) in adler32_combine() argument
175 z_off_t len2;
177 return adler32_combine_(adler1, adler2, len2);
180 uLong ZEXPORT adler32_combine64(adler1, adler2, len2) in adler32_combine64() argument
[all …]
Dcrc32.c51 local uLong crc32_combine_ OF((uLong crc1, uLong crc2, z_off64_t len2));
372 local uLong crc32_combine_(crc1, crc2, len2) in crc32_combine_() argument
375 z_off64_t len2;
383 if (len2 <= 0)
405 if (len2 & 1)
407 len2 >>= 1;
410 if (len2 == 0)
415 if (len2 & 1)
417 len2 >>= 1;
420 } while (len2 != 0);
[all …]
/external/lzma/CPP/Windows/Control/
DComboBox.cpp24 LRESULT len2 = GetLBText(index, s.GetBuf((unsigned)len)); in GetLBText() local
25 if (len2 == CB_ERR) in GetLBText()
27 if (len > len2) in GetLBText()
28 len = len2; in GetLBText()
49 LRESULT len2 = SendMsgW(CB_GETLBTEXT, index, (LPARAM)s.GetBuf((unsigned)len)); in GetLBText() local
50 if (len2 == CB_ERR) in GetLBText()
52 if (len > len2) in GetLBText()
53 len = len2; in GetLBText()
/external/toybox/toys/posix/
Dcmp.c31 int i, len1, len2, min_len, size = sizeof(toybuf)/2; local
48 len2 = readall(fd, buf2, size);
50 min_len = len1 < len2 ? len1 : len2;
66 if (len1 != len2) {
68 fprintf(stderr, "cmp: EOF on %s\n", len1 < len2 ? TT.name : name);
Dwc.c76 int pos, done = 0, len2 = read(fd, toybuf+len, sizeof(toybuf)-len); in do_wc() local
78 if (len2<0) perror_msg_raw(name); in do_wc()
79 else len += len2; in do_wc()
80 if (len2<1) done++; in do_wc()
/external/dtc/tests/
Ddtbs_equal_unordered.c113 int len1, len2; in compare_properties() local
124 data2 = fdt_getprop(fdt2, offset2, name, &len2); in compare_properties()
126 if (len2 == -FDT_ERR_NOTFOUND) in compare_properties()
130 fdt_strerror(len2)); in compare_properties()
136 verbose_printf("\nlen2=%d data2=", len2); in compare_properties()
141 if (len1 != len2) in compare_properties()
143 name, len1, len2); in compare_properties()
Ddtbs_equal_ordered.c86 int len1, len2; in compare_structure() local
132 len2 = fdt32_to_cpu(prop2->len); in compare_structure()
133 if (len1 != len2) in compare_structure()
135 "at (%d, %d)", len1, len2, offset1, offset2); in compare_structure()
/external/skqp/src/effects/
DSkDashPathEffect.cpp238 SkScalar len2 = length; in onAsPoints() local
240 SkASSERT(len2 >= clampedInitialDashLength); in onAsPoints()
246 len2 -= clampedInitialDashLength; in onAsPoints()
248 len2 -= fIntervals[1]; // also skip first space in onAsPoints()
249 if (len2 < 0) { in onAsPoints()
250 len2 = 0; in onAsPoints()
253 len2 -= clampedInitialDashLength; // skip initial partial empty in onAsPoints()
259 SkScalar numIntervals = len2 / fIntervalLength; in onAsPoints()
265 len2 -= numMidPoints * fIntervalLength; in onAsPoints()
267 if (len2 > 0) { in onAsPoints()
[all …]
/external/skia/src/effects/
DSkDashPathEffect.cpp238 SkScalar len2 = length; in onAsPoints() local
240 SkASSERT(len2 >= clampedInitialDashLength); in onAsPoints()
246 len2 -= clampedInitialDashLength; in onAsPoints()
248 len2 -= fIntervals[1]; // also skip first space in onAsPoints()
249 if (len2 < 0) { in onAsPoints()
250 len2 = 0; in onAsPoints()
253 len2 -= clampedInitialDashLength; // skip initial partial empty in onAsPoints()
259 SkScalar numIntervals = len2 / fIntervalLength; in onAsPoints()
265 len2 -= numMidPoints * fIntervalLength; in onAsPoints()
267 if (len2 > 0) { in onAsPoints()
[all …]
/external/python/cpython2/Modules/
Daudioop.c516 int len1, len2; in audioop_findfit() local
526 (char**)&cp1, &len1, (char**)&cp2, &len2) ) in audioop_findfit()
528 if ( len1 & 1 || len2 & 1 ) { in audioop_findfit()
533 len2 >>= 1; in audioop_findfit()
535 if ( len1 < len2 ) { in audioop_findfit()
539 sum_ri_2 = _sum2(cp2, cp2, len2); in audioop_findfit()
540 sum_aij_2 = _sum2(cp1, cp1, len2); in audioop_findfit()
541 sum_aij_ri = _sum2(cp1, cp2, len2); in audioop_findfit()
548 for (j=1; j<=len1-len2; j++) { in audioop_findfit()
550 aj_lm1 = (double)cp1[j+len2-1]; in audioop_findfit()
[all …]
/external/lzma/CPP/Windows/
DWindow.cpp122 int len2 = GetText(p, len + 1); in GetText() local
123 if (len > len2) in GetText()
124 len = len2; in GetText()
143 int len2 = GetWindowTextW(_window, p, len + 1); in GetText() local
144 if (len > len2) in GetText()
145 len = len2; in GetText()
DFileLink.cpp124 unsigned len2 = MyStringLen(path) * 2; in FillLinkData() local
125 const unsigned len1 = len2 + add_Prefix_Len * 2; in FillLinkData()
127 len2 = 0; in FillLinkData()
129 unsigned totalNamesSize = (len1 + len2); in FillLinkData()
155 subOffs = len2; in FillLinkData()
162 Set16(p + 6, (UInt16)len2); in FillLinkData()
/external/linux-kselftest/tools/testing/selftests/bpf/
Dtest_sockmap_kern.h209 int *bytes, len1, len2 = 0, len3; in bpf_prog5() local
230 len2 = (__u64)msg->data_end - (__u64)msg->data; in bpf_prog5()
232 len1, len2); in bpf_prog5()
248 len2 ? len2 : len1, len3); in bpf_prog5()
295 int zero = 0, one = 1, two = 2, three = 3, len1, len2 = 0, len3; in bpf_prog7() local
318 len2 = (__u64)msg->data_end - (__u64)msg->data; in bpf_prog7()
320 len1, len2); in bpf_prog7()
335 len2 ? len2 : len1, len3); in bpf_prog7()
/external/compiler-rt/lib/sanitizer_common/tests/
Dsanitizer_libc_test.cc91 uptr len2 = internal_strlen(str2); in TEST() local
100 EXPECT_TRUE(WriteToFile(fd, str2, len2, &bytes_written)); in TEST()
101 EXPECT_EQ(len2, bytes_written); in TEST()
112 EXPECT_EQ(len1 + len2, fsize); in TEST()
137 EXPECT_TRUE(ReadFromFile(fd, buf, len2, &bytes_read)); in TEST()
138 EXPECT_EQ(len2, bytes_read); in TEST()
139 EXPECT_EQ(0, internal_memcmp(buf, str2, len2)); in TEST()
/external/dng_sdk/source/
Ddng_string.cpp1519 uint32 len2 = strlenAsUint32 (s); in EndsWith() local
1521 if (len1 < len2) in EndsWith()
1526 const char *t = Get () + (len1 - len2); in EndsWith()
1565 uint32 len2 = strlenAsUint32 (s); in Contains() local
1567 if (len1 < len2) in Contains()
1572 uint32 offsets = len1 - len2; in Contains()
1630 uint32 len2 = strlenAsUint32 (old_string); in Replace() local
1633 if (len2 == len3) in Replace()
1642 else if (len2 > len3) in Replace()
1649 const char *s = fData.Buffer_char () + match_offset + len2; in Replace()
[all …]
/external/curl/tests/python_dependencies/impacket/
Dspnego.py58 len2 = unpack('B',data[:pad])[0]
60 ans = data[:len2]
63 len2 = unpack('!H', data[:pad])[0]
65 ans = data[:len2]
68 len2, len3 = unpack('!BH', data[:pad])
70 ans = data[:len2 << 16 + len3]
73 len2 = unpack('!L', data[:pad])[0]
75 ans = data[:len2]
/external/lzma/C/
DLzmaEnc.c1638 unsigned len2 = len; in GetOptimum() local
1642 UInt32 price2 = price + GET_PRICE_LEN(&p->repLenEnc, posState, len2); in GetOptimum()
1643 COptimal *opt = &p->opt[cur + len2]; in GetOptimum()
1647 opt->len = (UInt32)len2; in GetOptimum()
1652 while (--len2 >= 2); in GetOptimum()
1663 unsigned len2 = len + 1; in GetOptimum() local
1664 unsigned limit = len2 + p->numFastBytes; in GetOptimum()
1668 len2 += 2; in GetOptimum()
1669 if (len2 <= limit) in GetOptimum()
1670 if (data[len2 - 2] == data2[len2 - 2]) in GetOptimum()
[all …]
/external/apache-xml/src/main/java/org/apache/xpath/objects/
DXStringForFSB.java476 int len2 = xstr.length(); in compareTo() local
477 int n = Math.min(len1, len2); in compareTo()
496 return len1 - len2; in compareTo()
522 int len2 = xstr.length(); in compareToIgnoreCase() local
523 int n = Math.min(len1, len2); in compareToIgnoreCase()
542 return len1 - len2; in compareToIgnoreCase()
/external/xz-java/src/org/tukaani/xz/lzma/
DLZMAEncoderNormal.java456 int len2 = lz.getMatchLen(len + 1, opts[optCur].reps[rep],
459 if (len2 >= MATCH_LEN_MIN) {
476 price += getLongRepAndLenPrice(0, len2,
479 int i = optCur + len + 1 + len2;
535 int len2 = lz.getMatchLen(len + 1, dist, len2Limit);
537 if (len2 >= MATCH_LEN_MIN) {
553 price += getLongRepAndLenPrice(0, len2,
556 int i = optCur + len + 1 + len2;
DOptimum.java64 void set3(int newPrice, int optCur, int back2, int len2, int back) { in set3() argument
66 optPrev = optCur + len2 + 1; in set3()
/external/selinux/libselinux/src/
Dregex.c245 size_t len1, len2; in regex_cmp() local
248 rc = pcre2_pattern_info(regex2->regex, PCRE2_INFO_SIZE, &len2); in regex_cmp()
250 if (len1 != len2 || memcmp(regex1->regex, regex2->regex, len1)) in regex_cmp()
483 size_t len1, len2; in regex_cmp() local
486 rc = pcre_fullinfo(regex2->regex, NULL, PCRE_INFO_SIZE, &len2); in regex_cmp()
488 if (len1 != len2 || memcmp(regex1->regex, regex2->regex, len1)) in regex_cmp()
/external/libopus/silk/
Dresampler_down2.c43 opus_int32 k, len2 = silk_RSHIFT32( inLen, 1 ); in silk_resampler_down2() local
50 for( k = 0; k < len2; k++ ) { in silk_resampler_down2()

12345