/external/bison/lib/ |
H A D | strndup.c | 28 size_t len = strnlen (s, n); local 29 char *new = malloc (len + 1); 34 new[len] = '\0'; 35 return memcpy (new, s, len);
|
/external/chromium_org/third_party/cld/encodings/compact_lang_det/win/ |
H A D | cld_htmlutils.h | 10 void EntityToBuffer(const char* src, int len, char* dst,
|
/external/chromium_org/third_party/libjingle/source/talk/media/base/ |
H A D | rtputils.h | 56 bool GetRtpVersion(const void* data, size_t len, int* version); 57 bool GetRtpPayloadType(const void* data, size_t len, int* value); 58 bool GetRtpSeqNum(const void* data, size_t len, int* value); 59 bool GetRtpTimestamp(const void* data, size_t len, uint32* value); 60 bool GetRtpSsrc(const void* data, size_t len, uint32* value); 61 bool GetRtpHeaderLen(const void* data, size_t len, size_t* value); 62 bool GetRtcpType(const void* data, size_t len, int* value); 63 bool GetRtcpSsrc(const void* data, size_t len, uint32* value); 64 bool GetRtpHeader(const void* data, size_t len, RtpHeader* header); 68 void* data, size_t len, [all...] |
/external/chromium_org/third_party/smhasher/src/ |
H A D | CityTest.cpp | 3 void CityHash64_test ( const void * key, int len, uint32_t seed, void * out ) argument 5 *(uint64*)out = CityHash64WithSeed((const char *)key,len,seed); 8 void CityHash128_test ( const void * key, int len, uint32_t seed, void * out ) argument 14 *(uint128*)out = CityHash128WithSeed((const char*)key,len,s);
|
H A D | MurmurHash2.h | 29 uint32_t MurmurHash2 ( const void * key, int len, uint32_t seed ); 30 uint64_t MurmurHash64A ( const void * key, int len, uint64_t seed ); 31 uint64_t MurmurHash64B ( const void * key, int len, uint64_t seed ); 32 uint32_t MurmurHash2A ( const void * key, int len, uint32_t seed ); 33 uint32_t MurmurHashNeutral2 ( const void * key, int len, uint32_t seed ); 34 uint32_t MurmurHashAligned2 ( const void * key, int len, uint32_t seed );
|
/external/chromium_org/third_party/yasm/source/patched-yasm/tools/re2c/ |
H A D | substr.c | 9 fwrite(s->str, s->len, 1, o); 10 for (i=0; i<s->len; i++) 18 return (s1->len == s2->len && memcmp(s1->str, s2->str, s1->len) == 0); 24 SubStr_init(r, malloc(sizeof(char)*s->len), s->len); 25 memcpy(r->str, s->str, s->len); 31 Str *r = SubStr_new(malloc(sizeof(char)*s->len), s->len); [all...] |
/external/clang/test/CodeGen/ |
H A D | 2003-11-26-PointerShift.c | 3 unsigned long do_csum(const unsigned char *buff, int len, unsigned long result) { argument
|
H A D | sizeof-vla.c | 5 void *g(unsigned long len);
|
/external/openssl/crypto/asn1/ |
H A D | a_print.c | 63 int ASN1_PRINTABLE_type(const unsigned char *s, int len) argument 69 if (len <= 0) len= -1; 72 while ((*s) && (len-- != 0))
|
/external/tcpdump/missing/ |
H A D | strdup.c | 49 size_t len; local 52 len = strlen(str) + 1; 53 if ((copy = malloc(len)) == NULL) 55 memcpy(copy, str, len);
|
/external/chromium_org/third_party/tlslite/tlslite/utils/ |
H A D | aes.py | 8 if len(key) not in (16, 24, 32): 12 if len(IV) != 16: 17 if len(key)==16: 19 elif len(key)==24: 21 elif len(key)==32: 29 assert(len(plaintext) % 16 == 0) 34 assert(len(ciphertext) % 16 == 0
|
/external/libvorbis/test/ |
H A D | util.c | 30 gen_windowed_sine (float *data, int len, float maximum) argument 33 memset (data, 0, len * sizeof (float)) ; 35 len /= 2 ; 37 for (k = 0 ; k < len ; k++) 41 data [k] *= maximum * (0.5 - 0.5 * cos (2.0 * M_PI * k / ((len) - 1))) ; 48 set_data_in (float * data, unsigned len, float value) argument 51 for (k = 0 ; k < len ; k++)
|
/external/libvpx/libvpx/third_party/nestegg/halloc/ |
H A D | halloc.h | 23 void * halloc (void * block, size_t len); 29 void * h_malloc (size_t len); 30 void * h_calloc (size_t n, size_t len); 31 void * h_realloc(void * p, size_t len); 38 typedef void * (* realloc_t)(void * ptr, size_t len);
|
/external/wpa_supplicant_8/hostapd/src/drivers/ |
H A D | priv_netlink.h | 49 #define NLMSG_ALIGN(len) (((len) + NLMSG_ALIGNTO - 1) & ~(NLMSG_ALIGNTO - 1)) 51 #define NLMSG_LENGTH(len) ((len) + NLMSG_ALIGN(sizeof(struct nlmsghdr))) 52 #define NLMSG_SPACE(len) NLMSG_ALIGN(NLMSG_LENGTH(len)) 54 #define NLMSG_NEXT(nlh,len) ((len) -= NLMSG_ALIGN((nlh)->nlmsg_len), \ 57 #define NLMSG_OK(nlh,len) ((len) > [all...] |
/external/wpa_supplicant_8/src/drivers/ |
H A D | priv_netlink.h | 49 #define NLMSG_ALIGN(len) (((len) + NLMSG_ALIGNTO - 1) & ~(NLMSG_ALIGNTO - 1)) 51 #define NLMSG_LENGTH(len) ((len) + NLMSG_ALIGN(sizeof(struct nlmsghdr))) 52 #define NLMSG_SPACE(len) NLMSG_ALIGN(NLMSG_LENGTH(len)) 54 #define NLMSG_NEXT(nlh,len) ((len) -= NLMSG_ALIGN((nlh)->nlmsg_len), \ 57 #define NLMSG_OK(nlh,len) ((len) > [all...] |
/external/wpa_supplicant_8/wpa_supplicant/src/drivers/ |
H A D | priv_netlink.h | 49 #define NLMSG_ALIGN(len) (((len) + NLMSG_ALIGNTO - 1) & ~(NLMSG_ALIGNTO - 1)) 51 #define NLMSG_LENGTH(len) ((len) + NLMSG_ALIGN(sizeof(struct nlmsghdr))) 52 #define NLMSG_SPACE(len) NLMSG_ALIGN(NLMSG_LENGTH(len)) 54 #define NLMSG_NEXT(nlh,len) ((len) -= NLMSG_ALIGN((nlh)->nlmsg_len), \ 57 #define NLMSG_OK(nlh,len) ((len) > [all...] |
/external/liblzf/ |
H A D | lzf_c.c | 163 unsigned int len = 2; local 164 unsigned int maxlen = in_end - ip - len; 178 len++; if (ref [len] != ip [len]) break; 179 len++; if (ref [len] != ip [len]) break; 180 len++; if (ref [len] ! [all...] |
/external/tcpdump/ |
H A D | print-msdp.c | 41 unsigned int type, len; local 46 len = EXTRACT_16BITS(sp + 1); 47 if (len > 1500 || len < 3 || type == 0 || type > MSDP_TYPE_MAX) 53 len = EXTRACT_16BITS(sp + 1); 54 if (len > 1400 || vflag) 55 printf(" [len %u]", len); 56 if (len < 3) 69 if ((u_int)((*sp * 12) + 8) < len) { [all...] |
/external/chromium_org/third_party/skia/src/core/ |
H A D | SkWriter32.cpp | 17 size_t len = this->readU32(); local 21 size_t alignedSize = SkAlign4(len + 1); 25 *outLen = len; 31 size_t len; local 32 const char* ptr = this->readString(&len); 34 copy->set(ptr, len); 36 return len; 39 void SkWriter32::writeString(const char str[], size_t len) { argument 42 len = 0; 44 if ((long)len < 56 WriteStringSize(const char* str, size_t len) argument [all...] |
/external/skia/src/core/ |
H A D | SkWriter32.cpp | 17 size_t len = this->readU32(); local 21 size_t alignedSize = SkAlign4(len + 1); 25 *outLen = len; 31 size_t len; local 32 const char* ptr = this->readString(&len); 34 copy->set(ptr, len); 36 return len; 39 void SkWriter32::writeString(const char str[], size_t len) { argument 42 len = 0; 44 if ((long)len < 56 WriteStringSize(const char* str, size_t len) argument [all...] |
/external/chromium_org/media/base/ |
H A D | vector_math_testing.h | 17 MEDIA_EXPORT void FMAC_C(const float src[], float scale, int len, float dest[]); 18 MEDIA_EXPORT void FMUL_C(const float src[], float scale, int len, float dest[]); 20 float initial_value, const float src[], int len, float smoothing_factor); 23 MEDIA_EXPORT void FMAC_SSE(const float src[], float scale, int len, 25 MEDIA_EXPORT void FMUL_SSE(const float src[], float scale, int len, 28 float initial_value, const float src[], int len, float smoothing_factor); 32 MEDIA_EXPORT void FMAC_NEON(const float src[], float scale, int len, 34 MEDIA_EXPORT void FMUL_NEON(const float src[], float scale, int len, 37 float initial_value, const float src[], int len, float smoothing_factor);
|
/external/chromium_org/third_party/leveldatabase/src/util/ |
H A D | testutil.cc | 12 Slice RandomString(Random* rnd, int len, std::string* dst) { argument 13 dst->resize(len); 14 for (int i = 0; i < len; i++) { 20 std::string RandomKey(Random* rnd, int len) { argument 27 for (int i = 0; i < len; i++) { 35 size_t len, std::string* dst) { 36 int raw = static_cast<int>(len * compressed_fraction); 41 // Duplicate the random data until we have filled "len" bytes 43 while (dst->size() < len) { 46 dst->resize(len); 34 CompressibleString(Random* rnd, double compressed_fraction, size_t len, std::string* dst) argument [all...] |
/external/iproute2/include/ |
H A D | rt_names.h | 6 char* rtnl_rtprot_n2a(int id, char *buf, int len); 7 char* rtnl_rtscope_n2a(int id, char *buf, int len); 8 char* rtnl_rttable_n2a(__u32 id, char *buf, int len); 9 char* rtnl_rtrealm_n2a(int id, char *buf, int len); 10 char* rtnl_dsfield_n2a(int id, char *buf, int len); 18 const char *inet_proto_n2a(int proto, char *buf, int len); 22 const char * ll_type_n2a(int type, char *buf, int len); 25 int ll_addr_a2n(char *lladdr, int len, char *arg); 27 const char * ll_proto_n2a(unsigned short id, char *buf, int len);
|
/external/elfutils/0.153/libasm/ |
H A D | asm_addstrz.c | 40 asm_addstrz (asmscn, str, len) 43 size_t len; 50 if (len == 0) 62 for (cnt = 0; cnt < len; ++cnt) 71 if (len == 0) 72 len = strlen (str) + 1; 103 while (--len > 0 && (len > 1 || *str != '\0')); 111 if (__libasm_ensure_section_space (asmscn, len) != 0) 115 memcpy (&asmscn->content->data[asmscn->content->len], st [all...] |
/external/fio/ |
H A D | fifo.c | 49 unsigned int fifo_put(struct fifo *fifo, void *buffer, unsigned int len) argument 53 len = min(len, fifo_room(fifo)); 56 l = min(len, fifo->size - (fifo->in & (fifo->size - 1))); 60 memcpy(fifo->buffer, buffer + l, len - l); 67 fifo->in += len; 69 return len; 72 unsigned int fifo_get(struct fifo *fifo, void *buf, unsigned int len) argument 74 len = min(len, fif [all...] |