HomeSort by relevance Sort by last modified time
    Searched refs:len (Results 501 - 525 of 25604) sorted by null

<<21222324252627282930>>

  /device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Demo/zlib/
zlibdemo.py 10 if len(sys.argv) > 1:
25 print ' Original:', len(s), 'Compressed:', len(comptext),
26 print 'Uncompressed:', len(decomp)
34 for i in range(0, len(s), chunk):
39 for i in range(0, len(comptext), chunk):
44 print ' Original:', len(s), 'Compressed:', len(comptext),
45 print 'Uncompressed:', len(decomp)
  /device/linaro/bootloader/edk2/EmbeddedPkg/Library/FdtLib/
fdt_wip.c 59 const void *val, int len)
68 if (proplen != len)
71 memcpy(propval, val, len);
75 static void _fdt_nop_region(void *start, int len)
79 for (p = start; (char *)p < ((char *)start + len); p++)
86 int len; local
88 prop = fdt_get_property_w(fdt, nodeoffset, name, &len);
90 return len;
92 _fdt_nop_region(prop, len + sizeof(*prop));
  /external/clang/test/CodeGen/
builtins-systemz-vector-error.c 25 volatile unsigned int len; variable
32 __builtin_s390_lcbb(cptr, len); // expected-error {{must be a constant integer}}
36 __builtin_s390_vlbb(cptr, len); // expected-error {{must be a constant integer}}
40 __builtin_s390_vpdi(vul, vul, len); // expected-error {{must be a constant integer}}
46 __builtin_s390_verimb(vuc, vuc, vuc, len); // expected-error {{must be a constant integer}}
50 __builtin_s390_verimh(vus, vus, vus, len); // expected-error {{must be a constant integer}}
54 __builtin_s390_verimf(vui, vui, vui, len); // expected-error {{must be a constant integer}}
58 __builtin_s390_verimg(vul, vul, vul, len); // expected-error {{must be a constant integer}}
62 __builtin_s390_vsldb(vuc, vuc, len); // expected-error {{must be a constant integer}}
68 __builtin_s390_vfaeb(vuc, vuc, len); // expected-error {{must be a constant integer}
    [all...]
  /external/fec/
dotprod.c 9 void *initdp_port(signed short coeffs[],int len);
14 void *initdp_mmx(signed short coeffs[],int len);
15 void *initdp_sse2(signed short coeffs[],int len);
23 void *initdp_av(signed short coeffs[],int len);
29 void *initdp(signed short coeffs[],int len){
35 return initdp_port(coeffs,len);
39 return initdp_mmx(coeffs,len);
41 return initdp_sse2(coeffs,len);
46 return initdp_av(coeffs,len);
  /external/icu/icu4c/source/test/perf/usetperf/
bitset.cpp 17 // TODO: have a separate capacity, so the len can just be set to
25 len = SLOP;
26 data = (int32_t*) uprv_malloc(len * BYTES_PER_WORD);
37 return (longIndex < len) ? (((data[longIndex] >> bitInLong) & 1) != 0)
44 if (longIndex >= len) {
51 for (uint32_t i=0; i<len; ++i) data[i] = 0;
55 uint32_t newLen = len;
58 uprv_memcpy(newData, data, len * BYTES_PER_WORD);
61 int32_t* p = data + len;
64 len = newLen
    [all...]
  /external/libedit/src/
fgetln.c 48 fgetln(FILE *fp, size_t *len)
64 *len = 0;
65 while ((ptr = strchr(&buf[*len], '\n')) == NULL) {
80 *len = strlen(buf);
84 *len = bufsiz;
88 *len = (ptr - buf) + 1;
99 size_t len; local
101 while ((p = fgetln(stdin, &len)) != NULL) {
102 (void)printf("%zu %s", len, p);
  /external/python/cpython2/Demo/zlib/
zlibdemo.py 10 if len(sys.argv) > 1:
25 print ' Original:', len(s), 'Compressed:', len(comptext),
26 print 'Uncompressed:', len(decomp)
34 for i in range(0, len(s), chunk):
39 for i in range(0, len(comptext), chunk):
44 print ' Original:', len(s), 'Compressed:', len(comptext),
45 print 'Uncompressed:', len(decomp)
  /external/skia/gm/
getpostextpath.cpp 26 int len = SkToInt(strlen(text)); local
36 canvas->drawText(text, len, 0, 0, paint);
37 paint.getTextPath(text, len, 0, 0, &path);
41 SkAutoTArray<SkPoint> pos(len);
42 SkAutoTArray<SkScalar> widths(len);
43 paint.getTextWidths(text, len, &widths[0]);
48 for (int i = 0; i < len; ++i) {
55 canvas->drawPosText(text, len, &pos[0], paint);
56 paint.getPosTextPath(text, len, &pos[0], &path);
  /external/skqp/gm/
getpostextpath.cpp 26 int len = SkToInt(strlen(text)); local
36 canvas->drawText(text, len, 0, 0, paint);
37 paint.getTextPath(text, len, 0, 0, &path);
41 SkAutoTArray<SkPoint> pos(len);
42 SkAutoTArray<SkScalar> widths(len);
43 paint.getTextWidths(text, len, &widths[0]);
48 for (int i = 0; i < len; ++i) {
55 canvas->drawPosText(text, len, &pos[0], paint);
56 paint.getPosTextPath(text, len, &pos[0], &path);
  /external/syslinux/gpxe/src/core/
iobuf.c 35 * @v len Required length of buffer
41 struct io_buffer * alloc_iob ( size_t len ) {
46 if ( len < IOB_ZLEN )
47 len = IOB_ZLEN;
50 len = ( len + __alignof__( *iobuf ) - 1 ) &
54 data = malloc_dma ( len + sizeof ( *iobuf ), IOB_ALIGN );
58 iobuf = ( struct io_buffer * ) ( data + len );
83 * @v len Required headroom
90 int iob_ensure_headroom ( struct io_buffer *iobuf, size_t len ) {
    [all...]
  /external/tcpdump/
print-dtp.c 49 int type, len; local
76 len = EXTRACT_16BITS(tptr+2);
82 type, len));
85 if (len < 4)
87 ND_TCHECK2(*tptr, len);
92 fn_printzp(ndo, tptr+4, len-4, pptr+length);
97 if (len < 5)
103 if (len < 10)
111 tptr += len;
print-igmp.c 107 register const u_char *bp, register u_int len)
112 if (len < 8 + sizeof (struct tr_query)) {
113 ND_PRINT((ndo, " [invalid len %d]", len));
129 register const u_char *bp, register u_int len)
134 if (len < 8 + sizeof (struct tr_query)) {
135 ND_PRINT((ndo, " [invalid len %d]", len));
151 register const u_char *bp, register u_int len)
156 /* Minimum len is 16, and should be a multiple of 4 *
    [all...]
  /libcore/ojluni/src/main/java/java/io/
ByteArrayInputStream.java 148 * Reads up to <code>len</code> bytes of data into an array of bytes
154 * <code>len</code> and <code>count-pos</code>.
167 * @param len the maximum number of bytes read.
173 * <code>len</code> is negative, or <code>len</code> is greater than
176 public synchronized int read(byte b[], int off, int len) {
179 } else if (off < 0 || len < 0 || len > b.length - off) {
188 if (len > avail) {
189 len = avail
    [all...]
StringBufferInputStream.java 96 * Reads up to <code>len</code> bytes of data from this input stream
106 * @param len the maximum number of bytes read.
111 public synchronized int read(byte b[], int off, int len) {
114 } else if ((off < 0) || (off > b.length) || (len < 0) ||
115 ((off + len) > b.length) || ((off + len) < 0)) {
123 if (len > avail) {
124 len = avail;
127 if (len <= 0) {
131 int cnt = len;
    [all...]
  /prebuilts/misc/windows/sdl2/test/
testiconv.c 20 size_t len = 0; local
23 ++len;
25 return len;
66 size_t len; local
70 len = (widelen(ucs4) + 1) * 4;
72 test[0] = SDL_iconv_string(formats[i], "UCS-4", ucs4, len);
73 test[1] = SDL_iconv_string("UCS-4", formats[i], test[0], len);
74 if (!test[1] || SDL_memcmp(test[1], ucs4, len) != 0) {
81 test[0] = SDL_iconv_string("UTF-8", "UCS-4", ucs4, len);
  /device/linaro/bootloader/edk2/StdLib/LibC/Locale/
ctypeio.c 63 u_int32_t i, len; local
84 if (fread(&len, sizeof(u_int32_t), 1, fp) != 1)
87 if ((len = ntohl(len)) != _CTYPE_NUM_CHARS)
90 if ((new_ctype = malloc(sizeof(UINT16) * (1 + len))) == NULL)
94 if (fread(&new_ctype[1], sizeof(UINT16), len, fp) != len)
97 if ((new_toupper = malloc(sizeof(UINT8) * (1 + len))) == NULL)
101 if (fread(&new_toupper[1], sizeof(UINT8), len, fp) != len)
146 u_int32_t i, len = _CTYPE_NUM_CHARS; local
    [all...]
  /external/ltp/testcases/kernel/syscalls/mq_timedreceive/
mq_timedreceive01.c 36 .len = 0,
43 .len = 1,
50 .len = MAX_MSGSIZE,
57 .len = 1,
66 .len = 0,
73 .len = 0,
79 .len = 0,
85 .len = 0,
91 .len = 16,
97 .len = 16
139 size_t len = MAX_MSGSIZE; local
    [all...]
  /external/strace/tests/
read-write.c 40 dump_str(const char *str, const unsigned int len)
45 for (i = 0; i < len; i += 16) {
46 unsigned int n = len - i > 16 ? 16 : len - i;
57 print_hex(const char *str, const unsigned int len)
62 for (i = 0; i < len; ++i) {
97 test_dump(const unsigned int len)
103 buf = (void *) (((size_t) buf + ps1) & ~ps1) - len;
105 buf = tail_alloc(len);
108 long rc = k_read(0, buf, len);
    [all...]
  /external/strace/tests-m32/
read-write.c 40 dump_str(const char *str, const unsigned int len)
45 for (i = 0; i < len; i += 16) {
46 unsigned int n = len - i > 16 ? 16 : len - i;
57 print_hex(const char *str, const unsigned int len)
62 for (i = 0; i < len; ++i) {
97 test_dump(const unsigned int len)
103 buf = (void *) (((size_t) buf + ps1) & ~ps1) - len;
105 buf = tail_alloc(len);
108 long rc = k_read(0, buf, len);
    [all...]
  /external/strace/tests-mx32/
read-write.c 40 dump_str(const char *str, const unsigned int len)
45 for (i = 0; i < len; i += 16) {
46 unsigned int n = len - i > 16 ? 16 : len - i;
57 print_hex(const char *str, const unsigned int len)
62 for (i = 0; i < len; ++i) {
97 test_dump(const unsigned int len)
103 buf = (void *) (((size_t) buf + ps1) & ~ps1) - len;
105 buf = tail_alloc(len);
108 long rc = k_read(0, buf, len);
    [all...]
  /device/linaro/bootloader/edk2/MdeModulePkg/Universal/RegularExpressionDxe/Oniguruma/
regerror.c 205 int len; local
211 len = 0;
215 if (code > 0xffff && len + 10 <= buf_size) {
216 sprint_byte_with_x((char*)(&(buf[len])), (unsigned int)(code >> 24));
217 sprint_byte((char*)(&(buf[len+4])), (unsigned int)(code >> 16));
218 sprint_byte((char*)(&(buf[len+6])), (unsigned int)(code >> 8));
219 sprint_byte((char*)(&(buf[len+8])), (unsigned int)code);
220 len += 10;
222 else if (len + 6 <= buf_size) {
223 sprint_byte_with_x((char*)(&(buf[len])), (unsigned int)(code >> 8));
267 int len, is_over; local
343 int n, need, len; local
    [all...]
  /external/toybox/lib/
linestack.c 13 if (pos > catch->len) error_exit("linestack_addstack past end.");
16 if (catch->len+throw->len >= catch->max) {
18 catch->max = ((catch->len+throw->len)|63)+1;
24 if (pos != catch->len)
25 memmove((*lls)->idx+pos+throw->len, catch->idx+pos,
26 (catch->len-pos)*sizeof(struct ptr_len));
35 memcpy(catch->idx+pos, throw->idx, throw->len*sizeof(struct ptr_len));
36 catch->len += throw->len
72 ssize_t len; local
176 int apad = abs(padto), len = utf8len(str); local
    [all...]
  /toolchain/binutils/binutils-2.27/zlib/contrib/blast/
blast.c 127 int len; /* current number of bits in code */ local
128 int code; /* len bits being decoded */
129 int first; /* first code of length len */
130 int count; /* number of codes of length len */
131 int index; /* index of first code of length len in symbol table */
139 len = 1;
146 if (code < first + count) { /* if length len, return symbol */
148 s->bitcnt = (s->bitcnt - len) & 7;
155 len++;
157 left = (MAXBITS+1) - len;
190 int len; \/* current length when stepping through h->count[] *\/ local
283 int len; \/* length for copy *\/ local
    [all...]
  /external/boringssl/src/crypto/fipsmodule/bn/
bytes.c 65 BIGNUM *BN_bin2bn(const uint8_t *in, size_t len, BIGNUM *ret) {
79 if (len == 0) {
84 num_words = ((len - 1) / BN_BYTES) + 1;
85 m = (len - 1) % BN_BYTES;
99 while (len--) {
114 BIGNUM *BN_le2bn(const uint8_t *in, size_t len, BIGNUM *ret) {
125 if (len == 0) {
132 size_t num_words = ((len - 1) / BN_BYTES) + 1;
144 OPENSSL_memcpy(ret->d, in, len);
199 static int fits_in_bytes(const BIGNUM *in, size_t len) {
    [all...]
  /external/libxkbcommon/xkbcommon/test/
atom.c 43 size_t len; local
46 len = rand() % 15;
47 str = malloc(len + 1);
50 for (size_t i = 0; i < len; i++)
54 str[len] = '\0';
57 *len_out = len;
66 size_t len; member in struct:atom_string
85 random_string(&arr[i].string, &arr[i].len);
87 atom = atom_lookup(table, arr[i].string, arr[i].len);
92 if (arr[i].len != strlen(string) |
    [all...]

Completed in 1105 milliseconds

<<21222324252627282930>>