HomeSort by relevance Sort by last modified time
    Searched refs:len2 (Results 1 - 25 of 144) sorted by null

1 2 3 4 5 6

  /external/dropbear/libtomcrypt/demos/
multi.c 7 unsigned long len, len2; local
17 len2 = sizeof(buf[0]);
18 hash_memory_multi(find_hash("sha256"), buf[1], &len2, (unsigned char*)"hello", 5, NULL);
19 if (len != len2 || memcmp(buf[0], buf[1], len)) {
20 printf("Failed: %d %lu %lu\n", __LINE__, len, len2);
23 len2 = sizeof(buf[0]);
24 hash_memory_multi(find_hash("sha256"), buf[1], &len2, (unsigned char*)"he", 2UL, "llo", 3UL, NULL, 0);
25 if (len != len2 || memcmp(buf[0], buf[1], len)) {
26 printf("Failed: %d %lu %lu\n", __LINE__, len, len2);
29 len2 = sizeof(buf[0])
    [all...]
  /system/core/adb/
test_track_devices.c 21 int len2 = write(fd, buf, len); local
22 if (len2 < 0) {
27 result += len2;
28 len -= len2;
29 buf += len2;
39 int len2 = read(fd, buf, len); local
40 if (len2 < 0) {
45 result += len2;
46 len -= len2;
47 buf += len2;
    [all...]
test_track_jdwp.c 21 int len2 = write(fd, buf, len); local
22 if (len2 < 0) {
27 result += len2;
28 len -= len2;
29 buf += len2;
39 int len2 = read(fd, buf, len); local
40 if (len2 < 0) {
45 result += len2;
46 len -= len2;
47 buf += len2;
    [all...]
  /external/linux-tools-perf/util/
levenshtein.c 44 int len1 = strlen(string1), len2 = strlen(string2); local
45 int *row0 = malloc(sizeof(int) * (len2 + 1));
46 int *row1 = malloc(sizeof(int) * (len2 + 1));
47 int *row2 = malloc(sizeof(int) * (len2 + 1));
50 for (j = 0; j <= len2; j++)
56 for (j = 0; j < len2; j++) {
78 i = row1[len2];
  /bionic/libc/netbsd/net/
getservent.c 76 int len2 = q[0]; local
77 total += 1 + len2;
78 q += 1 + len2;
107 int len2 = p[0]; local
109 memcpy( p2, p+1, len2 );
110 p2[len2] = 0;
111 p2 += len2 + 1;
112 p += len2 + 1;
  /hardware/libhardware/include/hardware/
qemud.h 46 int len2; local
48 len2 = write(fd, buff, len);
49 } while (len2 < 0 && errno == EINTR);
50 return len2;
56 int len2; local
58 len2 = read(fd, buff, len);
59 } while (len2 < 0 && errno == EINTR);
60 return len2;
  /external/dropbear/libtomcrypt/testprof/
katja_test.c 10 unsigned long kat_msgsize, len, len2, cnt; local
67 len2 = kat_msgsize;
72 DO(katja_decrypt_key(out, len, tmp, &len2, NULL, 0, hash_idx, &stat2, &key));
75 if (len2 != kat_msgsize) {
76 fprintf(stderr, "\nkatja_decrypt_key mismatch len %lu (first decrypt)", len2);
80 len2 = kat_msgsize;
81 DO(katja_decrypt_key(out, len, tmp, &len2, NULL, 0, hash_idx, &stat, &key));
86 if (len2 != kat_msgsize || memcmp(tmp, in, kat_msgsize)) {
88 fprintf(stderr, "\nkatja_decrypt_key mismatch, len %lu (second decrypt)\n", len2);
113 len2 = kat_msgsize
    [all...]
rsa_test.c 130 unsigned long rsa_msgsize, len, len2, cnt; local
190 len2 = rsa_msgsize;
195 DO(rsa_decrypt_key(out, len, tmp, &len2, NULL, 0, hash_idx, &stat2, &key));
198 if (len2 != rsa_msgsize) {
199 fprintf(stderr, "\nrsa_decrypt_key mismatch len %lu (first decrypt)", len2);
203 len2 = rsa_msgsize;
204 DO(rsa_decrypt_key(out, len, tmp, &len2, NULL, 0, hash_idx, &stat, &key));
209 if (len2 != rsa_msgsize || memcmp(tmp, in, rsa_msgsize)) {
211 fprintf(stderr, "\nrsa_decrypt_key mismatch, len %lu (second decrypt)\n", len2);
236 len2 = rsa_msgsize
    [all...]
  /libcore/luni/src/main/java/java/util/
ComparableTimSort.java 408 int len2 = runLen[i + 1]; local
409 if (DEBUG) assert len1 > 0 && len2 > 0; local
417 runLen[i] = len1 + len2;
439 len2 = gallopLeft((Comparable<Object>) a[base1 + len1 - 1], a,
440 base2, len2, len2 - 1);
441 if (DEBUG) assert len2 >= 0; local
442 if (len2 == 0)
445 // Merge remaining runs, using tmp array with min(len1, len2) elements
446 if (len1 <= len2)
    [all...]
TimSort.java 441 int len2 = runLen[i + 1]; local
442 if (DEBUG) assert len1 > 0 && len2 > 0; local
450 runLen[i] = len1 + len2;
472 len2 = gallopLeft(a[base1 + len1 - 1], a, base2, len2, len2 - 1, c);
473 if (DEBUG) assert len2 >= 0; local
474 if (len2 == 0)
477 // Merge remaining runs, using tmp array with min(len1, len2) elements
478 if (len1 <= len2)
801 if (DEBUG) assert len1 > 0 && len2 > 1; local
823 if (DEBUG) assert len1 > 0 && len2 > 1; local
868 if (DEBUG) assert len2 > 0; typedefs
    [all...]
  /external/zlib/
adler32.c 12 local uLong adler32_combine_ OF((uLong adler1, uLong adler2, z_off64_t len2));
136 local uLong adler32_combine_(adler1, adler2, len2)
139 z_off64_t len2;
146 if (len2 < 0)
150 MOD63(len2); /* assumes len2 >= 0 */
151 rem = (unsigned)len2;
165 uLong ZEXPORT adler32_combine(adler1, adler2, len2)
168 z_off_t len2;
170 return adler32_combine_(adler1, adler2, len2);
    [all...]
crc32.c 75 local uLong crc32_combine_ OF((uLong crc1, uLong crc2, z_off64_t len2));
377 local uLong crc32_combine_(crc1, crc2, len2)
380 z_off64_t len2;
388 if (len2 <= 0)
405 /* apply len2 zeros to crc1 (first square will put the operator for one
408 /* apply zeros operator for this bit of len2 */
410 if (len2 & 1)
412 len2 >>= 1;
415 if (len2 == 0)
420 if (len2 & 1
    [all...]
  /external/qemu/
tcpdump.c 123 int len2 = len; local
125 if (len2 > PCAP_SNAPLEN)
126 len2 = PCAP_SNAPLEN;
131 h.incl_len = (uint32_t) len2;
135 fwrite( base, 1, len2, capture_file );
138 capture_size += len2;
cbuffer.c 83 int len2 = len; local
87 while (len2 > 0) {
104 if (avail > len2)
105 avail = len2;
110 len2 -= avail;
113 return len - len2;
119 int len2 = len; local
123 while (len2 > 0) {
137 if (avail > len2)
138 avail = len2;
    [all...]
  /external/v8/test/cctest/
test-liveedit.cc 68 len1(len1_param), len2(len2_param), next(NULL) {}
72 int len2; member in class:__anon13136::DiffChunkStruct
83 void AddChunk(int pos1, int pos2, int len1, int len2) {
84 current_chunk_ = new DiffChunkStruct(pos1, pos2, len1, len2);
106 int len2 = StrLength(s2); local
124 ASSERT(pos2 + j < len2);
127 diff_parameter += chunk->len1 + chunk->len2;
129 pos2 = diff_pos2 + chunk->len2;
134 ASSERT_EQ(similar_part_length, len2 - pos2);
135 USE(len2);
    [all...]
  /external/dropbear/libtomcrypt/src/misc/base64/
base64_encode.c 35 unsigned long i, len2, leven; local
43 len2 = 4 * ((inlen + 2) / 3);
44 if (*outlen < len2 + 1) {
45 *outlen = len2 + 1;
  /external/expat/amiga/
stdlib.c 43 void * realloc (void * mem, size_t len2)
46 return malloc(len2);
49 if ( len2 == 0 ) {
54 void * new_mem = malloc(len2);
  /external/chromium/net/base/
nss_memio.h 72 * |buf1|, |len1| and |buf2|, |len2|.
76 const char **buf2, unsigned int *len2);
  /hardware/libhardware_legacy/qemu/
qemu.c 57 int len2; local
59 len2 = write(fd, cmd, len);
60 } while (len2 < 0 && errno == EINTR);
61 return len2;
67 int len2; local
69 len2 = read(fd, buff, len);
70 } while (len2 < 0 && errno == EINTR);
71 return len2;
304 int fd, len2; local
315 len2 = qemu_fd_write(fd, cmd, len)
    [all...]
  /external/valgrind/main/VEX/priv/
main_util.c 328 Int fwidth, nout, len1, len2, len3; local
378 len2 = vex_strlen(str);
379 if (fwidth > len2) { len1 = ljustify ? 0 : fwidth-len2;
380 len3 = ljustify ? fwidth-len2 : 0; }
390 len2 = vex_strlen(str);
391 if (fwidth > len2) { len1 = ljustify ? 0 : fwidth-len2;
392 len3 = ljustify ? fwidth-len2 : 0; }
406 len2 = vex_strlen(intbuf)
    [all...]
  /external/valgrind/main/none/tests/s390x/
clcl.c 13 uint32_t len2; member in struct:__anon14402
63 result.len2 = regs.r2p1 & 0xFFFFFF;
74 void *addr2, uint32_t len2, uint32_t pad)
83 assert((len2 & 0xFFFFFF) == len2);
89 r2p1 = len2 | (pad << 24);
130 if (result1.len2 != result2.len2)
131 printf("FAIL: len2 result is different\n");
141 run_test(void *addr1, uint32_t len1, void *addr2, uint32_t len2, uint32_t pad
    [all...]
  /external/v8/test/mjsunit/regress/
regress-666721.js 30 function len2(a) { return a.length; } function
43 assertEquals(0, len2({length:0}));
44 assertEquals(1, len2([1]));
45 assertEquals(2, len2({length:2}));
46 assertEquals(3, len2([1,2,3]));
47 assertEquals(4, len2('1234'));
  /external/qemu/android/utils/
dll.c 23 int len2 = strlen(str2); local
24 char* result = malloc(len1+len2+1);
28 memcpy(result + len1, str2, len2);
29 result[len1+len2] = '\0';
  /external/qemu/distrib/zlib-1.2.3/
crc32.c 370 uLong ZEXPORT crc32_combine(crc1, crc2, len2)
373 z_off_t len2;
381 if (len2 == 0)
398 /* apply len2 zeros to crc1 (first square will put the operator for one
401 /* apply zeros operator for this bit of len2 */
403 if (len2 & 1)
405 len2 >>= 1;
408 if (len2 == 0)
413 if (len2 & 1)
415 len2 >>= 1
    [all...]
  /external/qemu/audio/
fmodaudio.c 97 unsigned int len1 = 0, len2 = 0; local
106 &len2
114 if ((len1 & hw->info.align) || (len2 & hw->info.align)) {
116 len1, len2, hw->info.align + 1);
120 if ((len1 + len2) - (hw->samples << hw->info.shift)) {
122 len1 + len2, hw->samples << hw->info.shift);
129 status = FSOUND_Sample_Unlock (fmd->fmod_sample, p1, p2, len1, len2);
233 unsigned int len1 = 0, len2 = 0; local
280 len2 = blen2 >> hw->info.shift;
281 ldebug ("%p %p %d %d %d %d\n", p1, p2, len1, len2, blen1, blen2)
457 unsigned int len1, len2; local
    [all...]

Completed in 1296 milliseconds

1 2 3 4 5 6