/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...] |
/external/chromium_org/third_party/leveldatabase/src/util/ |
status.cc | 22 const uint32_t len2 = msg2.size(); local 23 const uint32_t size = len1 + (len2 ? (2 + len2) : 0); 28 if (len2) { 31 memcpy(result + 7 + len1, msg2.data(), len2);
|
/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/src/ |
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 | 53 local uLong crc32_combine_ OF((uLong crc1, uLong crc2, z_off64_t len2)); 355 local uLong crc32_combine_(crc1, crc2, len2) 358 z_off64_t len2; 366 if (len2 <= 0) 383 /* apply len2 zeros to crc1 (first square will put the operator for one 386 /* apply zeros operator for this bit of len2 */ 388 if (len2 & 1) 390 len2 >>= 1; 393 if (len2 == 0) 398 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/chromium_org/v8/test/cctest/ |
test-liveedit.cc | 68 len1(len1_param), len2(len2_param), next(NULL) {} 72 int len2; member in class:__anon17112::DiffChunkStruct 84 void AddChunk(int pos1, int pos2, int len1, int len2) { 85 current_chunk_ = new(zone_) DiffChunkStruct(pos1, pos2, len1, len2); 108 int len2 = StrLength(s2); local 126 ASSERT(pos2 + j < len2); 129 diff_parameter += chunk->len1 + chunk->len2; 131 pos2 = diff_pos2 + chunk->len2; 136 ASSERT_EQ(similar_part_length, len2 - pos2); 137 USE(len2); [all...] |
/external/v8/test/cctest/ |
test-liveedit.cc | 68 len1(len1_param), len2(len2_param), next(NULL) {} 72 int len2; member in class:__anon28837::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/compiler-rt/lib/sanitizer_common/tests/ |
sanitizer_libc_test.cc | 62 uptr len2 = internal_strlen(str2); local 82 EXPECT_EQ(len2, internal_write(fd, str2, len2)); 89 EXPECT_EQ(len1 + len2, fsize); 113 EXPECT_EQ(len2, internal_read(fd, buf, len2)); 114 EXPECT_EQ(0, internal_memcmp(buf, str2, len2));
|
/external/chromium_org/third_party/zlib/ |
adler32.c | 12 local uLong adler32_combine_(uLong adler1, uLong adler2, z_off64_t len2); 131 local uLong adler32_combine_(adler1, adler2, len2) 134 z_off64_t len2; 141 rem = (unsigned)(len2 % BASE); 155 uLong ZEXPORT adler32_combine(adler1, adler2, len2) 158 z_off_t len2; 160 return adler32_combine_(adler1, adler2, len2); 163 uLong ZEXPORT adler32_combine64(adler1, adler2, len2) 166 z_off64_t len2; 168 return adler32_combine_(adler1, adler2, len2); [all...] |
crc32.c | 71 local uLong crc32_combine_(uLong crc1, uLong crc2, z_off64_t len2); 372 local uLong crc32_combine_(crc1, crc2, len2) 375 z_off64_t len2; 383 if (len2 <= 0) 400 /* apply len2 zeros to crc1 (first square will put the operator for one 403 /* apply zeros operator for this bit of len2 */ 405 if (len2 & 1) 407 len2 >>= 1; 410 if (len2 == 0) 415 if (len2 & 1 [all...] |
/external/chromium_org/third_party/opus/src/silk/ |
resampler_down2.c | 43 opus_int32 k, len2 = silk_RSHIFT32( inLen, 1 ); local 50 for( k = 0; k < len2; k++ ) {
|
/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 | 337 Int fwidth, nout, len1, len2, len3; local 387 len2 = vex_strlen(str); 388 if (fwidth > len2) { len1 = ljustify ? 0 : fwidth-len2; 389 len3 = ljustify ? fwidth-len2 : 0; } 399 len2 = vex_strlen(str); 400 if (fwidth > len2) { len1 = ljustify ? 0 : fwidth-len2; 401 len3 = ljustify ? fwidth-len2 : 0; } 415 len2 = vex_strlen(intbuf) [all...] |
/external/valgrind/main/none/tests/s390x/ |
clcl.c | 13 uint32_t len2; member in struct:__anon30261 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...] |