Home
last modified time | relevance | path

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

/bionic/benchmarks/
Dstring_benchmark.cpp44 const size_t nbytes = state.range(0); in BM_string_memcmp() local
50 char* src_aligned = GetAlignedPtrFilled(&src, src_alignment, nbytes, 'x'); in BM_string_memcmp()
51 char* dst_aligned = GetAlignedPtrFilled(&dst, dst_alignment, nbytes, 'x'); in BM_string_memcmp()
55 c += memcmp(dst_aligned, src_aligned, nbytes); in BM_string_memcmp()
58 state.SetBytesProcessed(uint64_t(state.iterations()) * uint64_t(nbytes)); in BM_string_memcmp()
63 const size_t nbytes = state.range(0); in BM_string_memcpy() local
69 char* src_aligned = GetAlignedPtrFilled(&src, src_alignment, nbytes, 'x'); in BM_string_memcpy()
70 char* dst_aligned = GetAlignedPtr(&dst, dst_alignment, nbytes); in BM_string_memcpy()
73 memcpy(dst_aligned, src_aligned, nbytes); in BM_string_memcpy()
76 state.SetBytesProcessed(uint64_t(state.iterations()) * uint64_t(nbytes)); in BM_string_memcpy()
[all …]
Dutil.cpp47 char *GetAlignedPtr(std::vector<char>* buf, size_t alignment, size_t nbytes) { in GetAlignedPtr() argument
48 buf->resize(nbytes + 3 * alignment); in GetAlignedPtr()
52 char *GetAlignedPtrFilled(std::vector<char>* buf, size_t alignment, size_t nbytes, char fill_byte) { in GetAlignedPtrFilled() argument
53 char* buf_aligned = GetAlignedPtr(buf, alignment, nbytes); in GetAlignedPtrFilled()
54 memset(buf_aligned, fill_byte, nbytes); in GetAlignedPtrFilled()
Dutil.h25 char *GetAlignedPtr(std::vector<char>* buf, size_t alignment, size_t nbytes);
27 char *GetAlignedPtrFilled(std::vector<char>* buf, size_t alignment, size_t nbytes, char fill_byte);
/bionic/libc/upstream-openbsd/lib/libc/stdio/
Dvfprintf.c161 size_t clen, nbytes; in __wcsconv() local
167 nbytes = wcsrtombs(NULL, (const wchar_t **)&p, 0, &mbs); in __wcsconv()
168 if (nbytes == (size_t)-1) in __wcsconv()
177 nbytes = prec; in __wcsconv()
179 nbytes = 0; in __wcsconv()
185 nbytes + clen > (size_t)prec) in __wcsconv()
187 nbytes += clen; in __wcsconv()
193 if ((convbuf = malloc(nbytes + 1)) == NULL) in __wcsconv()
199 if ((nbytes = wcsrtombs(convbuf, (const wchar_t **)&p, in __wcsconv()
200 nbytes, &mbs)) == (size_t)-1) { in __wcsconv()
[all …]
/bionic/libc/kernel/uapi/linux/
Dbtrfs_tree.h225 __le64 nbytes; member
/bionic/libc/
DSECCOMP_WHITELIST.TXT41 int _flush_cache:cacheflush(char* addr, const int nbytes, const int op) mips64
DSYSCALLS.TXT346 int _flush_cache:cacheflush(char* addr, const int nbytes, const int op) mips
/bionic/libc/upstream-netbsd/lib/libc/regex/
Dregcomp.c1234 size_t nbytes; in allocset() local
1248 nbytes = nc / CHAR_BIT * css; in allocset()
1262 (void) memset((char *)p->g->setbits + (nbytes - css), 0, css); in allocset()