Searched defs:nbytes (Results 1 - 25 of 93) sorted by last modified time

1234

/external/valgrind/main/none/tests/ppc32/
H A DtestVMX.c152 size_t nbytes, cc, rr; local
167 nbytes = (size*nmemb)+16;
169 /* Alloc a block of 'nbytes' */
170 realadd = (char *) malloc( nbytes );
178 memset( realadd, 0, nbytes );
/external/valgrind/main/perf/
H A Dheap.c12 int i, j, nbytes = 0; local
31 arr[j] = malloc(nbytes);
34 for (jpdb=0; jpdb<nbytes; jpdb = jpdb+pdb) {
41 nbytes += 8;
42 if (nbytes > 32)
43 nbytes = 0;
/external/valgrind/main/VEX/switchback/
H A Dswitchback.c144 static void invalidate_icache(void *ptr, unsigned long nbytes) argument
207 Addr end = start + nbytes;
404 Int nbytes = sa_end - sa_start; local
407 printf("nbytes = %d, nopstart = %d\n", nbytes, off_nopstart);
410 UChar* copy = mymalloc(nbytes);
412 for (i = 0; i < nbytes; i++)
439 invalidate_icache( copy, nbytes );
662 void log_bytes ( HChar* bytes, Int nbytes )
664 fwrite ( bytes, 1, nbytes, stdou
[all...]
/external/valgrind/main/VEX/useful/
H A Dsmchash.c24 Int nbytes; member in struct:__anon32344
42 r= fscanf(f, "GuestBytes %llx %d ", &gb->ga, &gb->nbytes);
47 assert(gb->nbytes > 0);
48 assert(gb->nbytes < 5000); // let's say
50 Int nToAlloc = gb->nbytes + (gb->ga & 3);
52 gb->bytes = malloc( gb->nbytes + nToAlloc);
57 for (i = 0; i < gb->nbytes; i++) {
81 if (0) printf("got %llu %d\n", gb->ga, gb->nbytes);
96 for (i = 0; i < gb->nbytes; i++)
103 for (i = 0; i < gb->nbytes;
[all...]
/external/valgrind/main/coregrind/m_debuginfo/
H A Dd3basics.c948 UShort nbytes; local
967 nbytes = ML_(read_UShort)(p); p += sizeof(UShort);
977 p, (UWord)nbytes, fbGX, regs, di,
980 p += (UWord)nbytes;
987 p, (UWord)nbytes, fbGX, regs, di,
992 p += (UWord)nbytes;
1019 UShort nbytes; local
1044 nbytes = ML_(read_UShort)(p); p += sizeof(UShort);
1054 if (nbytes == 1 + sizeof(Addr) && *p == DW_OP_addr) {
1067 if (nbytes
1194 UShort nbytes; local
[all...]
H A Dreaddwarf.c1800 fde_arange = read_encoded_Addr(&nbytes, &adi, data);
2726 Word nbytes = sizeof(Addr) - (offset % sizeof(Addr)); local
2727 *data = ML_(cur_plus)(*data, nbytes);
4115 fde_arange = read_encoded_Addr(&nbytes, &adi, data);
4116 data += nbytes;
H A Dreaddwarf3.c530 (Addr aMin; Addr aMax; UShort nbytes; ..bytes..; UChar isEnd)
535 The number of bytes in '..bytes..' is nbytes.
556 UShort nbytes; local
578 /* nbytes, and actual expression */
579 nbytes = ML_(read_UShort)(p); p += sizeof(UShort);
580 p += nbytes;
585 static GExpr* make_singleton_GX ( DiCursor block, ULong nbytes )
592 vg_assert(nbytes <= 0xFFFF); /* else we overflow the nbytes field */
596 + sizeof(UShort) /*nbytes*/
630 Word nbytes; local
[all...]
/external/valgrind/main/coregrind/m_syswrap/
H A Dsyswrap-darwin.c3369 int, fd, char *, buf, int, nbytes, long *, basep);
3386 int,fd, char *,buf, vki_size_t,nbytes, vki_off_t *,basep);
7713 Int nbytes = VEX_GUEST_X86_LDT_NENT * sizeof(VexGuestX86SegDescr); local
7714 return VG_(arena_calloc)(VG_AR_CORE, "syswrap-darwin.ldt", nbytes, 1);
H A Dsyswrap-x86-linux.c463 Int nbytes = VEX_GUEST_X86_GDT_NENT * sizeof(VexGuestX86SegDescr); local
464 return VG_(arena_calloc)(VG_AR_CORE, "di.syswrap-x86.azxG.1", nbytes, 1);
470 Int nbytes = VEX_GUEST_X86_LDT_NENT * sizeof(VexGuestX86SegDescr); local
471 return VG_(arena_calloc)(VG_AR_CORE, "di.syswrap-x86.azxL.1", nbytes, 1);
/external/valgrind/main/drd/
H A Ddrd_malloc_wrappers.c349 SizeT nbytes = 0; local
361 nbytes += mc->size;
366 nbytes, nblocks);
/external/valgrind/main/drd/tests/
H A Dunit_bitmap.c27 void* VG_(malloc)(const HChar* cc, SizeT nbytes) argument
28 { return malloc(nbytes); }
H A Dunit_vc.c13 void* VG_(malloc)(const HChar* cc, SizeT nbytes) argument
14 { return malloc(nbytes); }
/external/valgrind/main/memcheck/
H A Dmc_malloc_wrappers.c1107 ULong nbytes = 0; local
1118 nbytes += (ULong)mc->szB;
1126 nbytes, nblocks,
/external/valgrind/main/memcheck/tests/
H A Dmalloc2.c15 int i, j, k, nbytes; local
27 nbytes = 1 + random() % M_TEST_MALLOC;
29 nbytes *= 17;
30 test_arr[j] = malloc( nbytes );
32 for (k = 1; k < nbytes; k++)
H A Dwritev1.c27 int nbytes; local
39 } else if ((nbytes = write(fd, buf_list[1], K_1)) != K_1) {
40 fprintf(stderr, "write(2) failed: nbytes = %d, errno = %d\n",
41 nbytes, errno);
62 if ((nbytes = read(fd, buf_list[0], CHUNK)) != 0)
63 fprintf(stderr, "Expected nbytes = 0, got %d\n", nbytes);
/external/speex/libspeex/
H A Dbits.c156 EXPORT void speex_bits_read_whole_bytes(SpeexBits *bits, char *chars, int nbytes) argument
159 int nchars = nbytes/BYTES_PER_CHAR;
/external/regex-re2/re2/testing/
H A Dregexp_benchmark.cc137 void MakeText(string* text, int nbytes) { argument
138 text->resize(nbytes);
140 for (int i = 0; i < nbytes; i++) {
148 // Makes text of size nbytes, then calls run to search
150 void Search(int iters, int nbytes, const char* regexp, SearchImpl* search) { argument
153 MakeText(&s, nbytes);
157 SetBenchmarkBytesProcessed(static_cast<int64>(iters)*nbytes);
239 void SearchBigFixed(int iters, int nbytes, SearchImpl* search) { argument
242 s.append(nbytes/2, 'x');
245 MakeText(&t, nbytes/
266 FindAndConsume(int iters, int nbytes) argument
286 SearchSuccess(int iters, int nbytes, const char* regexp, SearchImpl* search) argument
692 SearchPhone(int iters, int nbytes, ParseImpl* search) argument
[all...]
/external/robolectric/lib/main/
H A Dandroid.jarMETA-INF/ META-INF/MANIFEST.MF com/ com/android/ com/android/internal/ com/android/internal/util/ ...
/external/qemu/distrib/jpeg-6b/
H A Djdatasrc.c93 size_t nbytes; local
95 nbytes = JFREAD(src->infile, src->buffer, INPUT_BUF_SIZE);
97 if (nbytes <= 0) {
104 nbytes = 2;
108 src->pub.bytes_in_buffer = nbytes;
/external/qemu/hw/core/
H A Dloader.c84 int fread_targphys(hwaddr dst_addr, size_t nbytes, FILE *f) argument
90 while (nbytes) {
91 want = nbytes > sizeof(buf) ? sizeof(buf) : nbytes;
96 nbytes -= did;
104 int fread_targphys_ok(hwaddr dst_addr, size_t nbytes, FILE *f) argument
106 return fread_targphys(dst_addr, nbytes, f) == nbytes;
110 int read_targphys(int fd, hwaddr dst_addr, size_t nbytes) argument
116 while (nbytes) {
[all...]
/external/qemu/
H A Dposix-aio-compat.c236 ssize_t nbytes; local
254 nbytes = handle_aiocb_rw_vector(aiocb);
255 if (nbytes == aiocb->aio_nbytes)
256 return nbytes;
257 if (nbytes < 0 && nbytes != -ENOSYS)
258 return nbytes;
284 nbytes = handle_aiocb_rw_linear(aiocb, buf);
301 return nbytes;
/external/owasp/sanitizer/tools/findbugs/lib/
H A Dfindbugs.jarMETA-INF/ META-INF/MANIFEST.MF default.xsl edu/ edu/umd/ edu/umd/cs/ edu/ ...
/external/pdfium/core/src/fxcrt/
H A Dfx_basic_utf.cpp56 int nbytes = 0; local
58 nbytes = 2;
60 nbytes = 3;
62 nbytes = 4;
64 nbytes = 5;
66 nbytes = 6;
69 int order = 1 << ((nbytes - 1) * 6);
71 m_Buffer.AppendChar(prefix[nbytes - 2] | (code / order));
72 for (int i = 0; i < nbytes - 1; i ++) {
/external/oprofile/libabi/
H A Dopimport.cpp80 size_t nbytes = theabi.need(sz); local
83 if (nbytes == 0)
86 assert(nbytes <= sizeof(T));
88 assert(src + nbytes <= end);
91 cerr << hex << "get " << sz << " = " << nbytes
96 while(nbytes--)
97 targ = (targ << 8) | src[nbytes];
99 for(size_t i = 0; i < nbytes; ++i)
/external/oprofile/libutil++/
H A Dbfd_spu_support.cpp69 file_ptr nbytes, file_ptr offset)
74 nbytes = fread(buf, sizeof(char), nbytes, my_stream->stream);
79 return nbytes;
68 spu_bfd_iovec_pread(bfd * abfd, void * stream, void * buf, file_ptr nbytes, file_ptr offset) argument

Completed in 7872 milliseconds

1234