Home
last modified time | relevance | path

Searched refs:nbytes (Results 1 – 25 of 140) sorted by relevance

123456

/external/pdfium/core/src/fxcrt/
Dfx_basic_utf.cpp53 int nbytes = 0; in Input() local
55 nbytes = 2; in Input()
57 nbytes = 3; in Input()
59 nbytes = 4; in Input()
61 nbytes = 5; in Input()
63 nbytes = 6; in Input()
66 int order = 1 << ((nbytes - 1) * 6); in Input()
68 m_Buffer.AppendChar(prefix[nbytes - 2] | (code / order)); in Input()
69 for (int i = 0; i < nbytes - 1; i++) { in Input()
/external/valgrind/memcheck/tests/solaris/
Dsendfilev.c25 ssize_t nbytes = write(test_fd, &chunk1, sizeof(chunk1)); in main() local
26 if (nbytes != CHUNK) { in main()
29 nbytes, strerror(error), error); in main()
54 nbytes = sendfilev(test_fd, vec, 2, &xferred); in main()
55 if (nbytes < 0) { in main()
65 nbytes = sendfilev(test_fd, vec, -1, &xferred); in main()
66 if (nbytes < 0) { in main()
78 nbytes = sendfilev(test_fd, vec, 1, &xferred); in main()
79 if (nbytes < 0) { in main()
/external/valgrind/perf/
Dheap.c12 int i, j, nbytes = 0; in main() local
31 arr[j] = malloc(nbytes); in main()
34 for (jpdb=0; jpdb<nbytes; jpdb = jpdb+pdb) { in main()
41 nbytes += 8; in main()
42 if (nbytes > 32) in main()
43 nbytes = 0; in main()
/external/valgrind/VEX/useful/
Dsmchash.c24 Int nbytes; member
42 r= fscanf(f, "GuestBytes %llx %d ", &gb->ga, &gb->nbytes); in read_one()
47 assert(gb->nbytes > 0); in read_one()
48 assert(gb->nbytes < 5000); // let's say in read_one()
50 Int nToAlloc = gb->nbytes + (gb->ga & 3); in read_one()
52 gb->bytes = malloc( gb->nbytes + nToAlloc); in read_one()
57 for (i = 0; i < gb->nbytes; i++) { in read_one()
81 if (0) printf("got %llu %d\n", gb->ga, gb->nbytes); in apply_to_all()
96 for (i = 0; i < gb->nbytes; i++) in hash_sum()
103 for (i = 0; i < gb->nbytes; i++) { in hash_rol()
[all …]
/external/e2fsprogs/lib/ext2fs/
Dbitops.c134 unsigned int ext2fs_bitcount(const void *addr, unsigned int nbytes) in ext2fs_bitcount() argument
140 while (((((unsigned long) cp) & 3) != 0) && (nbytes > 0)) { in ext2fs_bitcount()
142 nbytes--; in ext2fs_bitcount()
146 while (nbytes > 4) { in ext2fs_bitcount()
148 nbytes -= 4; in ext2fs_bitcount()
152 while (nbytes > 0) { in ext2fs_bitcount()
154 nbytes--; in ext2fs_bitcount()
/external/elfutils/libasm/
Dasm_adduleb128.c75 size_t nbytes = dest - tmpbuf; in asm_adduleb128() local
78 if (__libasm_ensure_section_space (asmscn, nbytes) != 0) in asm_adduleb128()
83 memcpy (&asmscn->content->data[asmscn->content->len], tmpbuf, nbytes); in asm_adduleb128()
86 asmscn->content->len += nbytes; in asm_adduleb128()
89 asmscn->offset += nbytes; in asm_adduleb128()
Dasm_addsleb128.c79 size_t nbytes = dest - tmpbuf; in asm_addsleb128() local
82 if (__libasm_ensure_section_space (asmscn, nbytes) != 0) in asm_addsleb128()
87 memcpy (&asmscn->content->data[asmscn->content->len], tmpbuf, nbytes); in asm_addsleb128()
90 asmscn->content->len += nbytes; in asm_addsleb128()
93 asmscn->offset += nbytes; in asm_addsleb128()
/external/libpng/contrib/arm-neon/
Dlinux-auxv.c39 safe_read(png_structp png_ptr, int fd, void *buffer_in, size_t nbytes) in safe_read() argument
44 while (nbytes > 0) in safe_read()
53 if (nbytes > INT_MAX) in safe_read()
57 nread = (unsigned int)/*SAFE*/nbytes; in safe_read()
85 nbytes -= (unsigned int)/*SAFE*/iread; in safe_read()
/external/valgrind/memcheck/tests/
Dmalloc2.c26 int i, j, k, nbytes; in main() local
38 nbytes = 1 + myrandom() % M_TEST_MALLOC; in main()
40 nbytes *= 17; in main()
41 test_arr[j] = malloc( nbytes ); in main()
43 for (k = 1; k < nbytes; k++) in main()
Dwritev1.c27 int nbytes; in main() local
39 } else if ((nbytes = write(fd, buf_list[1], K_1)) != K_1) { in main()
41 nbytes, errno); in main()
62 if ((nbytes = read(fd, buf_list[0], CHUNK)) != 0) in main()
63 fprintf(stderr, "Expected nbytes = 0, got %d\n", nbytes); in main()
/external/libnfc-nci/src/adaptation/
Dlibmain.c87 extern void nfa_nv_co_read(UINT8 *pBuffer, UINT16 nbytes, UINT8 block) in nfa_nv_co_read() argument
102 ALOGD ("%s: buffer len=%u; file=%s", __FUNCTION__, nbytes, filename); in nfa_nv_co_read()
108 size_t actualReadData = read (fileStream, pBuffer, nbytes); in nfa_nv_co_read()
146 extern void nfa_nv_co_write(const UINT8 *pBuffer, UINT16 nbytes, UINT8 block) in nfa_nv_co_write() argument
160 ALOGD ("%s: bytes=%u; file=%s", __FUNCTION__, nbytes, filename); in nfa_nv_co_write()
167 unsigned short checksum = crcChecksumCompute (pBuffer, nbytes); in nfa_nv_co_write()
169 size_t actualWrittenData = write (fileStream, pBuffer, nbytes); in nfa_nv_co_write()
171 if ((actualWrittenData == nbytes) && (actualWrittenCrc == sizeof(checksum))) in nfa_nv_co_write()
/external/libnfc-nci/halimpl/bcm2079x/adaptation/
DNonVolatileStore.cpp63 void nfc_hal_nv_co_read (UINT8 *p_buf, UINT16 nbytes, UINT8 block) in nfc_hal_nv_co_read() argument
76 ALOGD ("%s: buffer len=%u; file=%s", __FUNCTION__, nbytes, filename); in nfc_hal_nv_co_read()
82 size_t actualReadData = read (fileStream, p_buf, nbytes); in nfc_hal_nv_co_read()
121 void nfc_hal_nv_co_write (const UINT8 *p_buf, UINT16 nbytes, UINT8 block) in nfc_hal_nv_co_write() argument
134 ALOGD ("%s: bytes=%u; file=%s", __FUNCTION__, nbytes, filename); in nfc_hal_nv_co_write()
139 unsigned short checksum = crcChecksumCompute (p_buf, nbytes); in nfc_hal_nv_co_write()
141 size_t actualWrittenData = write (fileStream, p_buf, nbytes); in nfc_hal_nv_co_write()
143 if ((actualWrittenData == nbytes) && (actualWrittenCrc == sizeof(checksum))) in nfc_hal_nv_co_write()
/external/v8/test/webkit/
Darray-iterate-backwards.js30 function prepare(nbytes) { argument
31 var i = nbytes - 1;
38 function verify(nbytes) { argument
39 var i = nbytes - 1;
/external/libvterm/src/
Dutf8.h18 int nbytes = utf8_seqlen(codepoint); in fill_utf8() local
21 int b = nbytes; in fill_utf8()
28 switch(nbytes) { in fill_utf8()
37 return nbytes; in fill_utf8()
/external/libcxx/src/support/solaris/
Dwcsnrtombs.inc35 size_t nbytes;
39 nbytes = 0;
47 return (nbytes + nb - 1);
49 nbytes += nb;
51 return (nbytes);
83 return (nbytes + nb - 1);
88 nbytes += nb;
91 return (nbytes);
/external/valgrind/VEX/priv/
Dmain_util.h125 static inline void* LibVEX_Alloc_inline ( SizeT nbytes ) in LibVEX_Alloc_inline() argument
150 return malloc(nbytes); in LibVEX_Alloc_inline()
156 nbytes = (nbytes + ALIGN) & ~ALIGN; in LibVEX_Alloc_inline()
158 next = curr + nbytes; in LibVEX_Alloc_inline()
/external/tlsdate/src/common/
Dfmemopen.c55 fmemopen_read(void *cookie, char *buf, int nbytes) in fmemopen_read() argument
62 assert(buf != NULL && nbytes > 0); in fmemopen_read()
66 len = MIN(p->tail - p->cur, nbytes); in fmemopen_read()
74 fmemopen_write(void *cookie, const char *buf, int nbytes) in fmemopen_write() argument
81 assert(buf != NULL && nbytes > 0); in fmemopen_write()
88 len = MIN(p->tail - p->cur, nbytes); in fmemopen_write()
/external/mksh/src/
Dshf.c631 shf_write(const char *buf, ssize_t nbytes, struct shf *shf) in shf_write() argument
633 ssize_t n, ncopy, orig_nbytes = nbytes; in shf_write()
638 if (nbytes < 0) in shf_write()
639 internal_errorf("%s: %s %zd", "shf_write", "nbytes", nbytes); in shf_write()
643 (shf->wp != shf->buf || nbytes < shf->wnleft)) { in shf_write()
644 if (ncopy > nbytes) in shf_write()
645 ncopy = nbytes; in shf_write()
647 nbytes -= ncopy; in shf_write()
652 if (nbytes > 0) { in shf_write()
655 while (nbytes > shf->wnleft) in shf_write()
[all …]
/external/autotest/client/tests/aio_dio_bugs/src/
Daio-dio-extend-stat.c91 iocbs[i]->u.c.nbytes = BUFSIZE; in main()
125 if (ioevents[i].obj->u.c.nbytes != BUFSIZE) in fun_read()
128 ioevents[i].obj->u.c.nbytes); in fun_read()
131 ioevents[i].obj->u.c.nbytes; in fun_read()
136 "got %ld\n", ioevents[i].obj->u.c.nbytes, in fun_read()
/external/valgrind/coregrind/m_debuginfo/
Dd3basics.c956 UShort nbytes; in ML_() local
975 nbytes = ML_(read_UShort)(p); p += sizeof(UShort); in ML_()
985 p, (UWord)nbytes, fbGX, regs, di, in ML_()
988 p += (UWord)nbytes; in ML_()
995 p, (UWord)nbytes, fbGX, regs, di, in ML_()
1000 p += (UWord)nbytes; in ML_()
1027 UShort nbytes; in ML_() local
1052 nbytes = ML_(read_UShort)(p); p += sizeof(UShort); in ML_()
1062 if (nbytes == 1 + sizeof(Addr) && *p == DW_OP_addr) { in ML_()
1075 if (nbytes == 1 + sizeof(Addr) + 1 + 1 in ML_()
[all …]
/external/chromium-trace/catapult/third_party/gsutil/third_party/rsa/rsa/
D_version133.py105 nbytes = ceil(nbits/8.)
106 randomdata = os.urandom(nbytes)
225 nbytes = int(math.ceil(nbits/8.))
384 nbytes = nbits / 8
385 blocks = msglen / nbytes
387 if msglen % nbytes > 0:
393 offset = bindex * nbytes
394 block = message[offset:offset+nbytes]
/external/llvm/test/CodeGen/ARM/
D2010-06-25-Thumb2ITInvalidIterator.ll8 define void @x0(i8* nocapture %buf, i32 %nbytes) nounwind optsize {
11 …tail call void @llvm.dbg.value(metadata i32 %nbytes, i64 0, metadata !8, metadata !DIExpression())…
15 %cmp3 = icmp ult i32 %tmp, %nbytes, !dbg !17 ; <i1> [#uses=1]
18 %nbytes.addr.0 = select i1 %or.cond, i32 %tmp, i32 %nbytes ; <i32> [#uses=1]
25 %cmp7 = icmp ult i32 %0, %nbytes.addr.0, !dbg !20 ; <i1> [#uses=1]
58 !8 = !DILocalVariable(name: "nbytes", line: 4, arg: 2, scope: !1, file: !2, type: !9)
/external/libjpeg-turbo/
Djdatasrc.c104 size_t nbytes; in fill_input_buffer() local
106 nbytes = JFREAD(src->infile, src->buffer, INPUT_BUF_SIZE); in fill_input_buffer()
108 if (nbytes <= 0) { in fill_input_buffer()
115 nbytes = 2; in fill_input_buffer()
119 src->pub.bytes_in_buffer = nbytes; in fill_input_buffer()
/external/opencv3/3rdparty/libjpeg/
Djdatasrc.c100 size_t nbytes; in fill_input_buffer() local
102 nbytes = JFREAD(src->infile, src->buffer, INPUT_BUF_SIZE); in fill_input_buffer()
104 if (nbytes <= 0) { in fill_input_buffer()
111 nbytes = 2; in fill_input_buffer()
115 src->pub.bytes_in_buffer = nbytes; in fill_input_buffer()
/external/libvncserver/client_examples/
Dscrap.c350 unsigned long nbytes; in get_scrap() local
393 &seln_format, &nbytes, &overflow, in get_scrap()
397 src, nbytes); in get_scrap()
402 convert_scrap(type, *dst, src, nbytes); in get_scrap()
497 unsigned long nbytes; in clipboard_filter() local
536 &nbytes, &overflow, &seln_data) == Success) { in clipboard_filter()
539 nbytes > 0 && in clipboard_filter()
540 seln_data[nbytes-1] == '\0') in clipboard_filter()
541 --nbytes; in clipboard_filter()
545 seln_data, nbytes); in clipboard_filter()

123456