Home
last modified time | relevance | path

Searched refs:len1 (Results 1 – 25 of 94) sorted by relevance

1234

/external/libunwind/src/
Dos-freebsd.c56 size_t len, len1; in get_pid_by_tid() local
69 len1 = len * 4 / 3; in get_pid_by_tid()
70 buf = get_mem(len1); in get_pid_by_tid()
73 len = len1; in get_pid_by_tid()
76 free_mem(buf, len1); in get_pid_by_tid()
87 free_mem(buf, len1); in get_pid_by_tid()
96 size_t len, len1; in map_create_list() local
120 len1 = len * 4 / 3; in map_create_list()
121 buf = get_mem(len1); in map_create_list()
124 len = len1; in map_create_list()
[all …]
/external/toybox/toys/posix/
Dcmp.c31 int i, len1, len2, min_len, size = sizeof(toybuf)/2; local
47 len1 = readall(TT.fd, toybuf, 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);
72 if (len1 < 1) break;
/external/dtc/tests/
Ddtbs_equal_unordered.c113 int len1, len2; in compare_properties() local
117 data1 = fdt_getprop_by_offset(fdt1, offset, &name, &len1); in compare_properties()
120 fdt_strerror(len1)); in compare_properties()
133 verbose_printf("len1=%d data1=", len1); in compare_properties()
134 for (i = 0; i < len1; i++) in compare_properties()
137 for (i = 0; i < len1; i++) in compare_properties()
141 if (len1 != len2) in compare_properties()
143 name, len1, len2); in compare_properties()
144 else if (memcmp(data1, data2, len1) != 0) in compare_properties()
Ddtbs_equal_ordered.c86 int len1, len2; in compare_structure() local
131 len1 = fdt32_to_cpu(prop1->len); in compare_structure()
133 if (len1 != len2) in compare_structure()
135 "at (%d, %d)", len1, len2, offset1, offset2); in compare_structure()
137 if (memcmp(prop1->data, prop2->data, len1) != 0) in compare_structure()
/external/toybox/toys/example/
Ddemo_utf8towc.c21 int len1, len2; in demo_utf8towc_main() local
36 len1 = mbrtowc(&wc1, str, len2, &mb); in demo_utf8towc_main()
37 if (len1<0) memset(&mb, 0, sizeof(mb)); 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/compiler-rt/lib/sanitizer_common/tests/
Dsanitizer_libc_test.cc89 uptr len1 = internal_strlen(str1); in TEST() local
98 EXPECT_TRUE(WriteToFile(fd, str1, len1, &bytes_written)); in TEST()
99 EXPECT_EQ(len1, bytes_written); in TEST()
112 EXPECT_EQ(len1 + len2, fsize); in TEST()
132 EXPECT_TRUE(ReadFromFile(fd, buf, len1, &bytes_read)); in TEST()
133 EXPECT_EQ(len1, bytes_read); in TEST()
134 EXPECT_EQ(0, internal_memcmp(buf, str1, len1)); in TEST()
135 EXPECT_EQ((char)0, buf[len1 + 1]); in TEST()
136 internal_memset(buf, 0, len1); in TEST()
/external/linux-kselftest/tools/testing/selftests/bpf/
Dtest_sockmap_kern.h209 int *bytes, len1, len2 = 0, len3; in bpf_prog5() local
218 len1 = (__u64)msg->data_end - (__u64)msg->data; in bpf_prog5()
232 len1, len2); in bpf_prog5()
248 len2 ? len2 : len1, len3); in bpf_prog5()
252 len1, err1, err2); in bpf_prog5()
295 int zero = 0, one = 1, two = 2, three = 3, len1, len2 = 0, len3; in bpf_prog7() local
307 len1 = (__u64)msg->data_end - (__u64)msg->data; in bpf_prog7()
320 len1, len2); in bpf_prog7()
335 len2 ? len2 : len1, len3); in bpf_prog7()
344 len1, flags, err1 ? err1 : err2); in bpf_prog7()
/external/oj-libjdwp/src/share/npt/
Dutf.c460 int len1; in test() local
468 len1 = utf8FromPlatform(ui, str, (int)strlen(str), (jbyte*)buf1, 1024); in test()
470 UTF_ASSERT(len1==(int)strlen(str)); in test()
472 len3 = utf8ToUtf16(ui, (jbyte*)buf1, len1, (jchar*)buf3, 1024); in test()
474 UTF_ASSERT(len3==len1); in test()
476 len1 = utf16ToUtf8m(ui, (jchar*)buf3, len3, (jbyte*)buf1, 1024); in test()
478 UTF_ASSERT(len1==len3); in test()
481 len2 = utf8ToPlatform(ui, (jbyte*)buf1, len1, buf2, 1024); in test()
483 UTF_ASSERT(len2==len1); in test()
/external/toybox/toys/pending/
Dtr.c27 int len1, len2;
38 int i = TT.len1, k = 0; in map_translation()
44 for (i = TT.len1, k = 0; i; i--, k++) in map_translation()
50 while (!(toys.optflags & FLAG_d) && set2 && TT.len1--) { //ignore set2 if -d present in map_translation()
242 if (memchr(*set, i, TT.len1)) continue; in do_complement()
246 TT.len1 = j; in do_complement()
257 set1 = expand_set(toys.optargs[0], &TT.len1); in tr_main()
/external/lzma/Java/SevenZip/Compression/LZ/
DBinTree.java184 int len0, len1; in GetMatches() local
185 len0 = len1 = kNumHashDirectBytes; in GetMatches()
215 int len = Math.min(len0, len1); in GetMatches()
238 len1 = len; in GetMatches()
293 int len0, len1; in Skip() local
294 len0 = len1 = kNumHashDirectBytes; in Skip()
311 int len = Math.min(len0, len1); in Skip()
329 len1 = len; in Skip()
/external/xz-java/src/org/tukaani/xz/lz/
DBT4.java145 int len1 = 0; in getMatches() local
161 int len = Math.min(len0, len1); in getMatches()
187 len1 = len; in getMatches()
203 int len1 = 0; in skip() local
216 int len = Math.min(len0, len1); in skip()
236 len1 = len; in skip()
/external/lzma/CS/7zip/Compress/LZ/
DLzBinTree.cs184 UInt32 len0, len1; in GetMatches()
185 len0 = len1 = kNumHashDirectBytes; in GetMatches()
215 UInt32 len = Math.Min(len0, len1); in GetMatches()
238 len1 = len; in GetMatches()
293 UInt32 len0, len1; in Skip()
294 len0 = len1 = kNumHashDirectBytes; in Skip()
311 UInt32 len = Math.Min(len0, len1); in Skip()
329 len1 = len; in Skip()
/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()
532 len1 >>= 1; in audioop_findfit()
535 if ( len1 < len2 ) { in audioop_findfit()
548 for (j=1; j<=len1-len2; j++) { in audioop_findfit()
578 int len1, len2; in audioop_findfactor() local
582 (char**)&cp1, &len1, (char**)&cp2, &len2) ) in audioop_findfactor()
584 if ( len1 & 1 || len2 & 1 ) { in audioop_findfactor()
588 if ( len1 != len2 ) { in audioop_findfactor()
[all …]
/external/selinux/libselinux/src/
Dregex.c245 size_t len1, len2; in regex_cmp() local
246 rc = pcre2_pattern_info(regex1->regex, PCRE2_INFO_SIZE, &len1); 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
484 rc = pcre_fullinfo(regex1->regex, NULL, PCRE_INFO_SIZE, &len1); in regex_cmp()
488 if (len1 != len2 || memcmp(regex1->regex, regex2->regex, len1)) in regex_cmp()
/external/dng_sdk/source/
Ddng_string.cpp1517 uint32 len1 = Length (); in EndsWith() local
1521 if (len1 < len2) in EndsWith()
1526 const char *t = Get () + (len1 - len2); in EndsWith()
1563 uint32 len1 = Length (); in Contains() local
1567 if (len1 < len2) in Contains()
1572 uint32 offsets = len1 - len2; in Contains()
1628 uint32 len1 = Length (); in Replace() local
1652 uint32 extra = len1 - match_offset - len2 + 1; // + 1 for NULL termination in Replace()
1667 SafeUint32Add (SafeUint32Add (len1 - len2, len3), 1)); in Replace()
1687 uint32 extra = len1 - match_offset - len2 + 1; // + 1 for NULL termination in Replace()
[all …]
Ddng_temperature.cpp220 real64 len1 = sqrt (1.0 + vv1 * vv1); in Get_xy_coord() local
223 uu1 /= len1; in Get_xy_coord()
224 vv1 /= len1; in Get_xy_coord()
/external/dnsmasq/src/
Dnetlink.c175 unsigned int len1 = h->nlmsg_len - NLMSG_LENGTH(sizeof(*ifa)); in iface_enumerate() local
184 while (RTA_OK(rta, len1)) { in iface_enumerate()
190 rta = RTA_NEXT(rta, len1); in iface_enumerate()
200 while (RTA_OK(rta, len1)) { in iface_enumerate()
203 rta = RTA_NEXT(rta, len1); in iface_enumerate()
/external/apache-xml/src/main/java/org/apache/xpath/objects/
DXStringForFSB.java475 int len1 = m_length; in compareTo() local
477 int n = Math.min(len1, len2); in compareTo()
496 return len1 - len2; in compareTo()
521 int len1 = m_length; in compareToIgnoreCase() local
523 int n = Math.min(len1, len2); in compareToIgnoreCase()
542 return len1 - len2; in compareToIgnoreCase()
/external/curl/tests/python_dependencies/impacket/
Dspnego.py54 len1 = unpack('B', data[:1])[0]
56 if len1 == 0x81:
61 elif len1 == 0x82:
66 elif len1 == 0x83:
71 elif len1 == 0x84:
79 ans = data[:len1]
/external/webrtc/webrtc/common_audio/signal_processing/
Dresample_by_2_mips.c36 size_t i, len1; in WebRtcSpl_DownsampleBy2() local
56 len1 = (len >> 1); in WebRtcSpl_DownsampleBy2()
62 for (i = len1; i > 0; i--) { in WebRtcSpl_DownsampleBy2()
153 len1 = (len >> 1)/4; in WebRtcSpl_DownsampleBy2()
154 for (i = len1; i > 0; i--) { in WebRtcSpl_DownsampleBy2()
/external/webrtc/webrtc/p2p/base/
Dstun_unittest.cc881 int len1 = static_cast<int>(out.Length()); in TEST_F() local
883 out.ReadString(&bytes, len1); in TEST_F()
884 ASSERT_EQ(0, memcmp(bytes.c_str(), kStunMessageWithIPv6MappedAddress, len1)); in TEST_F()
910 int len1 = static_cast<int>(out.Length()); in TEST_F() local
912 out.ReadString(&bytes, len1); in TEST_F()
913 ASSERT_EQ(0, memcmp(bytes.c_str(), kStunMessageWithIPv4MappedAddress, len1)); in TEST_F()
939 int len1 = static_cast<int>(out.Length()); in TEST_F() local
941 out.ReadString(&bytes, len1); in TEST_F()
943 memcmp(bytes.c_str(), kStunMessageWithIPv6XorMappedAddress, len1)); in TEST_F()
969 int len1 = static_cast<int>(out.Length()); in TEST_F() local
[all …]
/external/harfbuzz_ng/src/
Dhb-ot-layout-gpos-table.hh627 unsigned int len1 = valueFormats[0].get_len (); in intersects() local
629 unsigned int record_size = HBUINT16::static_size * (1 + len1 + len2); in intersects()
646 unsigned int len1 = valueFormats[0].get_len (); in collect_glyphs() local
648 unsigned int record_size = HBUINT16::static_size * (1 + len1 + len2); in collect_glyphs()
660 unsigned int len1 = valueFormats[0].get_len (); in apply() local
662 unsigned int record_size = HBUINT16::static_size * (1 + len1 + len2); in apply()
684 valueFormats[1].apply_value (c, this, &record->values[len1], buffer->pos[pos])) in apply()
700 unsigned int len1; /* valueFormats[0].get_len() */ member
716 …sanitize_values_stride_unsafe (c, closure->base, &record->values[closure->len1], count, closure->s… in sanitize()
782 unsigned int len1 = valueFormat[0].get_len (); in sanitize() local
[all …]
/external/ltp/testcases/kernel/syscalls/open/
Dopen12.c122 off_t len1, len2; in test_append() local
131 len1 = SAFE_LSEEK(cleanup, TEST_RETURN, 0, SEEK_CUR); in test_append()
136 if (len2 > len1) in test_append()
/external/lzma/CPP/Windows/
DFileLink.cpp125 const unsigned len1 = len2 + add_Prefix_Len * 2; in FillLinkData() local
129 unsigned totalNamesSize = (len1 + len2); in FillLinkData()
157 printOffs = len1 + 2; in FillLinkData()
160 Set16(p + 2, (UInt16)len1); in FillLinkData()
/external/pdfium/third_party/agg23/
Dagg_math_stroke.h190 float len1, in stroke_calc_join() argument
201 dx1 = width * (v1.y - v0.y) / len1; in stroke_calc_join()
202 dy1 = width * (v1.x - v0.x) / len1; in stroke_calc_join()
223 if(d < len1 * len1 && d < len2 * len2) { in stroke_calc_join()

1234