/external/chromium_org/third_party/openssl/openssl/crypto/modes/ |
cbc128.c | 67 size_t len, const void *key, 78 while (len>=16) { 83 len -= 16; 88 while (len>=16) { 94 len -= 16; 100 while (len) { 101 for(n=0; n<16 && n<len; ++n) 107 if (len<=16) break; 108 len -= 16; 116 size_t len, const void *key [all...] |
/external/chromium_org/third_party/yasm/source/patched-yasm/libyasm/ |
genmodule.c | 51 size_t len; local 74 len = strlen(argv[2]); 76 inc->filename = malloc(len+1); 80 isam = argv[2][len-2] == 'a' && argv[2][len-1] == 'm'; 95 len = strlen(str); 96 if (len > 0) { 97 strp = &str[len-1]; 98 while (len > 0 && isspace(*strp)) { 100 len-- [all...] |
/external/openssh/ |
buffer.c | 36 const u_int len = 4096; local 39 buffer->buf = xmalloc(len); 40 buffer->alloc = len; 72 buffer_append(Buffer *buffer, const void *data, u_int len) 75 p = buffer_append_space(buffer, len); 76 memcpy(p, data, len); 103 buffer_append_space(Buffer *buffer, u_int len) 108 if (len > BUFFER_MAX_CHUNK) 109 fatal("buffer_append_space: len %u not supported", len); [all...] |
/external/openssl/crypto/modes/ |
cbc128.c | 67 size_t len, const void *key, 78 while (len>=16) { 83 len -= 16; 88 while (len>=16) { 94 len -= 16; 100 while (len) { 101 for(n=0; n<16 && n<len; ++n) 107 if (len<=16) break; 108 len -= 16; 116 size_t len, const void *key [all...] |
/bionic/libc/kernel/common/linux/ |
netlink.h | 84 #define NLMSG_ALIGN(len) ( ((len)+NLMSG_ALIGNTO-1) & ~(NLMSG_ALIGNTO-1) ) 86 #define NLMSG_LENGTH(len) ((len)+NLMSG_ALIGN(NLMSG_HDRLEN)) 87 #define NLMSG_SPACE(len) NLMSG_ALIGN(NLMSG_LENGTH(len)) 90 #define NLMSG_NEXT(nlh,len) ((len) -= NLMSG_ALIGN((nlh)->nlmsg_len), (struct nlmsghdr*)(((char*)(nlh)) + NLMSG_ALIGN((nlh)->nlmsg_len))) 91 #define NLMSG_OK(nlh,len) ((len) >= (int)sizeof(struct nlmsghdr) && (nlh)->nlmsg_len >= sizeof(struct nlmsghdr) && (nlh)->nlms (…) [all...] |
/external/iproute2/include/linux/ |
netlink.h | 79 #define NLMSG_ALIGN(len) ( ((len)+NLMSG_ALIGNTO-1) & ~(NLMSG_ALIGNTO-1) ) 81 #define NLMSG_LENGTH(len) ((len)+NLMSG_ALIGN(NLMSG_HDRLEN)) 82 #define NLMSG_SPACE(len) NLMSG_ALIGN(NLMSG_LENGTH(len)) 84 #define NLMSG_NEXT(nlh,len) ((len) -= NLMSG_ALIGN((nlh)->nlmsg_len), \ 86 #define NLMSG_OK(nlh,len) ((len) >= (int)sizeof(struct nlmsghdr) && [all...] |
/external/liblzf/ |
lzf_d.c | 48 # define lzf_movsb(dst, src, len) \ 50 : "=D" (dst), "=S" (src), "=c" (len) \ 51 : "0" (dst), "1" (src), "2" (len)); 104 unsigned int len = ctrl >> 5; local 115 if (len == 7) 117 len += *ip++; 129 if (op + len + 2 > out_end) 142 len += 2; 143 lzf_movsb (op, ref, len); 145 switch (len) [all...] |
/external/opencv/cv/src/ |
_cvmatrix.h | 45 #define icvCopyVector( src, dst, len ) memcpy( (dst), (src), (len)*sizeof((dst)[0])) 46 #define icvSetZero( dst, len ) memset( (dst), 0, (len)*sizeof((dst)[0])) 48 #define icvCopyVector_32f( src, len, dst ) memcpy((dst),(src),(len)*sizeof(float)) 50 #define icvCopyVector_64d( src, len, dst ) memcpy((dst),(src),(len)*sizeof(double)) 55 #define icvCreateVector_32f( len ) (float*)cvAlloc( (len)*sizeof(float) 185 int i, len = MIN( w, h ); local 194 int i, len = MIN( w, h ); local 203 int i, len = MIN( w, h ); local 215 int i, len = MIN( w, h ); local [all...] |
/external/zlib/src/contrib/puff/ |
pufftest.c | 57 failure. *len is the number of bytes of data read from the input file (even 59 or read, *len is zero. */ 60 local void *load(const char *name, size_t *len) 66 *len = 0; 73 *len += fread((char *)buf + *len, 1, size - *len, in); 74 if (*len < size) break; 76 if (size == *len || (swap = realloc(buf, size)) == NULL) { 94 size_t len = 0 local [all...] |
puff.c | 166 unsigned len; /* length of stored block */ local 175 len = s->in[s->incnt++]; 176 len |= s->in[s->incnt++] << 8; 177 if (s->in[s->incnt++] != (~len & 0xff) || 178 s->in[s->incnt++] != ((~len >> 8) & 0xff)) 181 /* copy len bytes from in to out */ 182 if (s->incnt + len > s->inlen) 185 if (s->outcnt + len > s->outlen) 187 while (len--) 191 s->outcnt += len; 237 int len; \/* current number of bits in code *\/ local 265 int len; \/* current number of bits in code *\/ local 343 int len; \/* current length when stepping through h->count[] *\/ local 441 int len; \/* length for copy *\/ local 705 int len; \/* last length to repeat *\/ local [all...] |
/frameworks/rs/cpu_ref/ |
rsCpuIntrinsicBlend.cpp | 135 uint32_t len = (x2 - x1) >> 3; local 136 rsdIntrinsicBlendSrcOver_K(out, in, len); 137 x1 += len << 3; 138 out += len << 3; 139 in += len << 3; 154 uint32_t len = (x2 - x1) >> 3; local 155 rsdIntrinsicBlendDstOver_K(out, in, len); 156 x1 += len << 3; 157 out += len << 3; 158 in += len << 3 173 uint32_t len = (x2 - x1) >> 3; local 191 uint32_t len = (x2 - x1) >> 3; local 209 uint32_t len = (x2 - x1) >> 3; local 227 uint32_t len = (x2 - x1) >> 3; local 245 uint32_t len = (x2 - x1) >> 3; local 265 uint32_t len = (x2 - x1) >> 3; local 285 uint32_t len = (x2 - x1) >> 3; local 309 uint32_t len = (x2 - x1) >> 3; local 402 uint32_t len = (x2 - x1) >> 3; local 423 uint32_t len = (x2 - x1) >> 3; local [all...] |
/system/core/libutils/ |
String8.cpp | 78 static char* allocFromUTF8(const char* in, size_t len) 80 if (len > 0) { 81 SharedBuffer* buf = SharedBuffer::alloc(len+1); 85 memcpy(str, in, len); 86 str[len] = 0; 95 static char* allocFromUTF16(const char16_t* in, size_t len) 97 if (len == 0) return getEmptyString(); 99 const ssize_t bytes = utf16_to_utf8_length(in, len); 111 utf16_to_utf8(in, len, str); 115 static char* allocFromUTF32(const char32_t* in, size_t len) 393 size_t len = size(); local 409 const size_t len = size(); local 433 const size_t len = size(); local 596 size_t len = length(); local 627 size_t len = length(); local [all...] |
/external/chromium/net/base/ |
asn1_util.cc | 23 size_t len = 0; 28 len = static_cast<size_t>(data[1]) + 2; 36 len = data[2]; 38 if (len == 0) { 42 len <<= 8; 43 len += data[3]; 45 if (len < 128) { 52 len += 2 + num_bytes; 55 if (in->size() < len) 58 *out = base::StringPiece(in->data(), len); [all...] |
/external/chromium_org/third_party/skia/src/core/ |
SkTSearch.cpp | 62 size_t len, size_t elemSize) 66 SkAutoAsciiToLC tolc(target, len); 68 return SkStrSearch(base, count, tolc.lc(), len, elemSize); 79 SkAutoAsciiToLC::SkAutoAsciiToLC(const char str[], size_t len) 82 if ((long)len < 0) { 83 len = strlen(str); 85 fLength = len; 87 // assign lc to our preallocated storage if len is small enough, or allocate 90 if (len <= STORAGE) { 93 lc = (char*)sk_malloc_throw(len + 1) [all...] |
/external/harfbuzz/src/ |
harfbuzz-thai.c | 43 static void to_tis620(const HB_UChar16 *string, hb_uint32 len, const char *cstr) 48 for (i = 0; i < len; ++i) { 57 result[len] = 0; 60 static void thaiWordBreaks(const HB_UChar16 *string, hb_uint32 len, HB_CharAttributes *attributes) 75 if (len >= 128) 76 cstr = (char *)malloc(len*sizeof(char) + 1); 78 to_tis620(string, len, cstr); 86 for (i = 0; i < len; ++i) { 101 if (len >= 128) 105 void HB_ThaiAttributes(HB_Script script, const HB_UChar16 *text, hb_uint32 from, hb_uint32 len, HB_CharAttributes *attributes [all...] |
/external/skia/src/core/ |
SkTSearch.cpp | 62 size_t len, size_t elemSize) 66 SkAutoAsciiToLC tolc(target, len); 68 return SkStrSearch(base, count, tolc.lc(), len, elemSize); 79 SkAutoAsciiToLC::SkAutoAsciiToLC(const char str[], size_t len) 82 if ((long)len < 0) { 83 len = strlen(str); 85 fLength = len; 87 // assign lc to our preallocated storage if len is small enough, or allocate 90 if (len <= STORAGE) { 93 lc = (char*)sk_malloc_throw(len + 1) [all...] |
/external/wpa_supplicant_8/src/utils/ |
common.c | 125 * @len: Length of the text to convert in bytes (of buf); hex will be double 129 int hexstr2bin(const char *hex, u8 *buf, size_t len) 136 for (i = 0; i < len; i++) { 150 * @len: Length of the counter in bytes 156 void inc_byte_array(u8 *counter, size_t len) 158 int pos = len - 1; 188 size_t len, int uppercase) 195 for (i = 0; i < len; i++) { 211 * @buf_size: Maximum buffer size in bytes (should be at least 2 * len + 1) 213 * @len: Length of data in byte 399 size_t len = 0; local 583 size_t len = 0; local [all...] |
/external/chromium_org/third_party/harfbuzz-ng/src/ |
hb-shape.cc | 61 unsigned int len = MIN (ARRAY_LENGTH (buf) - 1, (unsigned int) (end - *pp)); local 62 strncpy (buf, *pp, len); 63 buf[len] = '\0'; 157 hb_feature_from_string (const char *str, int len, 160 if (len < 0) 161 len = strlen (str); 163 return parse_one_feature (&str, str + len, feature); 173 unsigned int len = 0; local 175 s[len++] = '-'; 176 hb_tag_to_string (feature->tag, s + len); [all...] |
/external/harfbuzz_ng/src/ |
hb-shape.cc | 61 unsigned int len = MIN (ARRAY_LENGTH (buf) - 1, (unsigned int) (end - *pp)); local 62 strncpy (buf, *pp, len); 63 buf[len] = '\0'; 157 hb_feature_from_string (const char *str, int len, 160 if (len < 0) 161 len = strlen (str); 163 return parse_one_feature (&str, str + len, feature); 173 unsigned int len = 0; local 175 s[len++] = '-'; 176 hb_tag_to_string (feature->tag, s + len); [all...] |
/external/tcpdump/ |
print-igmp.c | 110 print_mtrace(register const u_char *bp, register u_int len) 115 if (len < 8 + sizeof (struct tr_query)) { 116 (void)printf(" [invalid len %d]", len); 132 print_mresp(register const u_char *bp, register u_int len) 137 if (len < 8 + sizeof (struct tr_query)) { 138 (void)printf(" [invalid len %d]", len); 154 print_igmpv3_report(register const u_char *bp, register u_int len) 159 /* Minimum len is 16, and should be a multiple of 4 * [all...] |
/bionic/libc/stdio/ |
fvwrite.c | 50 size_t len; local 57 if ((len = uio->uio_resid) == 0) 70 len = iov->iov_len; 73 while (len == 0) { \ 76 len = iov->iov_len; \ 86 w = (*fp->_write)(fp->_cookie, p, len); 88 w = (*fp->_write)(fp->_cookie, p, MIN(len, BUFSIZ2)); 93 len -= w; 110 (__SALC | __SSTR) && fp->_w < (int)len) { 119 } while (_size < (int)(blen + len)); [all...] |
/external/chromium_org/third_party/openssl/openssl/crypto/asn1/ |
a_bitstr.c | 63 int ASN1_BIT_STRING_set(ASN1_BIT_STRING *x, unsigned char *d, int len) 64 { return M_ASN1_BIT_STRING_set(x, d, len); } 68 int ret,j,bits,len; local 73 len=a->length; 75 if (len > 0) 83 for ( ; len > 0; len--) 85 if (a->data[len-1]) break; 87 j=a->data[len-1]; 102 ret=1+len; [all...] |
/external/openssl/crypto/asn1/ |
a_bitstr.c | 63 int ASN1_BIT_STRING_set(ASN1_BIT_STRING *x, unsigned char *d, int len) 64 { return M_ASN1_BIT_STRING_set(x, d, len); } 68 int ret,j,bits,len; local 73 len=a->length; 75 if (len > 0) 83 for ( ; len > 0; len--) 85 if (a->data[len-1]) break; 87 j=a->data[len-1]; 102 ret=1+len; [all...] |
/external/qemu/ |
bt-host.c | 43 int len; member in struct:bt_host_hci_s 47 int type, const uint8_t *data, int len) 56 iv[1].iov_len = len; 67 static void bt_host_cmd(struct HCIInfo *hci, const uint8_t *data, int len) 69 bt_host_send(hci, HCI_COMMAND_PKT, data, len); 72 static void bt_host_acl(struct HCIInfo *hci, const uint8_t *data, int len) 74 bt_host_send(hci, HCI_ACLDATA_PKT, data, len); 77 static void bt_host_sco(struct HCIInfo *hci, const uint8_t *data, int len) 79 bt_host_send(hci, HCI_SCODATA_PKT, data, len); 91 s->len = read(s->fd, s->hdr, sizeof(s->hdr)) [all...] |
bt-vhci.c | 33 int len; member in struct:bt_vhci_s 45 s->len = read(s->fd, s->hdr, sizeof(s->hdr)); 47 if (s->len < 0) { 53 while (s->len --) 56 if (s->len < 3) 59 pktlen = MIN(pkt[2] + 3, s->len); 61 s->len -= pktlen; 66 if (s->len < 4) 69 pktlen = MIN(((pkt[3] << 8) | pkt[2]) + 4, s->len); 71 s->len -= pktlen [all...] |