Searched refs:nbytes (Results 1 - 25 of 89) sorted by relevance

1234

/external/dropbear/libtomcrypt/src/pk/asn1/der/bit/
H A Dder_length_bit_string.c27 unsigned long nbytes; local
31 nbytes = (nbits >> 3) + ((nbits & 7) ? 1 : 0) + 1;
33 if (nbytes < 128) {
35 *outlen = 2 + nbytes;
36 } else if (nbytes < 256) {
38 *outlen = 3 + nbytes;
39 } else if (nbytes < 65536) {
41 *outlen = 4 + nbytes;
/external/valgrind/main/perf/
H A Dheap.c12 int i, j, nbytes = 0; local
24 arr[j] = malloc(nbytes);
28 nbytes += 8;
29 if (nbytes > 32)
30 nbytes = 0;
/external/elfutils/libasm/
H A Dasm_addsleb128.c66 size_t nbytes = dest - tmpbuf; local
69 if (__libasm_ensure_section_space (asmscn, nbytes) != 0)
74 memcpy (&asmscn->content->data[asmscn->content->len], tmpbuf, nbytes);
77 asmscn->content->len += nbytes;
80 asmscn->offset += nbytes;
H A Dasm_adduleb128.c62 size_t nbytes = dest - tmpbuf; local
65 if (__libasm_ensure_section_space (asmscn, nbytes) != 0)
70 memcpy (&asmscn->content->data[asmscn->content->len], tmpbuf, nbytes);
73 asmscn->content->len += nbytes;
76 asmscn->offset += nbytes;
/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 Dwritev.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/expat/xmlwf/
H A Dreadfilemap.c48 size_t nbytes; local
67 nbytes = sb.st_size;
68 /* malloc will return NULL with nbytes == 0, handle files with size 0 */
69 if (nbytes == 0) {
75 p = malloc(nbytes);
81 n = read(fd, p, nbytes);
88 if (n != nbytes) {
94 processor(p, nbytes, name, arg);
H A Dunixfilemap.c26 size_t nbytes; local
46 nbytes = sb.st_size;
48 if (nbytes == 0) {
54 p = (void *)mmap((caddr_t)0, (size_t)nbytes, PROT_READ,
61 processor(p, nbytes, name, arg);
62 munmap((caddr_t)p, nbytes);
/external/bison/lib/
H A Dmbswidth.h56 extern int mbsnwidth (const char *buf, size_t nbytes, int flags);
/external/valgrind/main/coregrind/m_replacemalloc/
H A Dreplacemalloc_core.c78 void* VG_(cli_malloc) ( SizeT align, SizeT nbytes )
84 nbytes );
87 align, nbytes );
/external/speex/libspeex/
H A Dkiss_fft.h28 #define KISS_FFT_MALLOC(nbytes) memalign(16,nbytes)
/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
/external/valgrind/main/VEX/priv/
H A Dmain_globals.c53 void (*vex_log_bytes) ( HChar*, Int nbytes ) = NULL;
H A Dmain_globals.h54 extern void (*vex_log_bytes) ( HChar*, Int nbytes );
/external/bluetooth/glib/tests/
H A Dgio-test.c67 guint nbytes,
70 guint left = nbytes;
138 guint nbytes; local
155 g_assert (nb == sizeof (nbytes));
170 error = read_all (fd, channel, (gchar *) &nbytes, sizeof (nbytes), &nb);
185 g_assert (nb == sizeof (nbytes));
187 if (nbytes >= BUFSIZE)
189 g_print ("gio-test: ...from %d: nbytes = %d (%#x)!\n", fd, nbytes, nbyte
64 read_all(int fd, GIOChannel *channel, char *buffer, guint nbytes, guint *bytes_read) argument
[all...]
/external/valgrind/main/include/
H A Dpub_tool_replacemalloc.h41 extern void* VG_(cli_malloc) ( SizeT align, SizeT nbytes );
H A Dpub_tool_mallocfree.h40 extern void* VG_(malloc) ( HChar* cc, SizeT nbytes );
/external/apache-harmony/nio/src/test/java/common/org/apache/harmony/nio/tests/java/nio/
H A DByteBufferTest.java1123 int nbytes = 2;
1124 byte bytes[] = new byte[nbytes];
1127 for (int i = 0; buf.remaining() >= nbytes; i++) {
1130 assertEquals(i * nbytes, buf.position());
1149 int nbytes = 2;
1150 byte bytes[] = new byte[nbytes];
1153 for (int i = 0; i <= buf.limit() - nbytes; i++) {
1170 buf.getChar(buf.limit() - nbytes + 1);
1191 int nbytes = 2;
1192 byte bytes[] = new byte[nbytes];
[all...]
/external/jpeg/
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/valgrind/main/VEX/pub/
H A Dlibvex.h298 static inline void* LibVEX_Alloc ( Int nbytes )
302 return malloc(nbytes);
308 nbytes = (nbytes + ALIGN) & ~ALIGN;
310 next = curr + nbytes;
388 void (*log_bytes) ( HChar*, Int nbytes ),
/external/clang/test/Sema/
H A Ddarwin-align-cast.c18 ssize_t sendFileDescriptor(int fd, void *data, size_t nbytes, int sendfd) { argument
/external/zlib/contrib/masmx64/
H A Dinffasx64.asm192 sub rax, [rsp+40] ; /* nbytes = out - beg */
195 jb L_clip_window ; /* if (dist > nbytes) 4.2% */
267 mov ecx, eax ; /* ecx = nbytes */
269 neg ecx ; /* nbytes = -nbytes */
274 add ecx, r15d ; /* nbytes = dist - nbytes */
279 sub eax, ecx ; /* eax -= nbytes */
280 add rsi, rax ; /* from += wsize - nbytes */
284 jbe L_do_copy ; /* if (nbytes >
[all...]
/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/qemu/
H A Dloader.c84 int fread_targphys(target_phys_addr_t 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(target_phys_addr_t dst_addr, size_t nbytes, FILE *f) argument
106 return fread_targphys(dst_addr, nbytes, f) == nbytes;
110 int read_targphys(int fd, target_phys_addr_t dst_addr, size_t nbytes) argument
116 while (nbytes) {
[all...]
/external/blktrace/btreplay/
H A Dbtrecord.h43 * @nbytes: Number of bytes to process
48 __u64 nbytes; member in struct:io_pkt

Completed in 2876 milliseconds

1234