Searched refs:nbytes (Results 1 – 8 of 8) sorted by relevance
/bionic/benchmarks/ |
D | string_benchmark.cpp | 25 const size_t nbytes = state.range(0); in BM_string_memcmp() local 31 char* src_aligned = GetAlignedPtrFilled(&src, src_alignment, nbytes, 'x'); in BM_string_memcmp() 32 char* dst_aligned = GetAlignedPtrFilled(&dst, dst_alignment, nbytes, 'x'); in BM_string_memcmp() 36 c += memcmp(dst_aligned, src_aligned, nbytes); in BM_string_memcmp() 39 state.SetBytesProcessed(uint64_t(state.iterations()) * uint64_t(nbytes)); in BM_string_memcmp() 44 const size_t nbytes = state.range(0); in BM_string_memcpy() local 50 char* src_aligned = GetAlignedPtrFilled(&src, src_alignment, nbytes, 'x'); in BM_string_memcpy() 51 char* dst_aligned = GetAlignedPtr(&dst, dst_alignment, nbytes); in BM_string_memcpy() 54 memcpy(dst_aligned, src_aligned, nbytes); in BM_string_memcpy() 57 state.SetBytesProcessed(uint64_t(state.iterations()) * uint64_t(nbytes)); in BM_string_memcpy() [all …]
|
D | stdlib_benchmark.cpp | 28 const size_t nbytes = state.range(0); in MallocFree() local 33 benchmark::DoNotOptimize(ptr = malloc(nbytes)); in MallocFree() 34 MakeAllocationResident(ptr, nbytes, pagesize); in MallocFree() 38 state.SetBytesProcessed(uint64_t(state.iterations()) * uint64_t(nbytes)); in MallocFree() 63 const size_t nbytes = state.range(0); in CallocFree() local 68 benchmark::DoNotOptimize(ptr = calloc(1, nbytes)); in CallocFree() 69 MakeAllocationResident(ptr, nbytes, pagesize); in CallocFree() 73 state.SetBytesProcessed(uint64_t(state.iterations()) * uint64_t(nbytes)); in CallocFree() 97 static void MallocMultiple(benchmark::State& state, size_t nbytes, size_t numAllocs) { in MallocMultiple() argument 102 benchmark::DoNotOptimize(ptrs[i] = reinterpret_cast<uint8_t*>(malloc(nbytes))); in MallocMultiple() [all …]
|
D | util.cpp | 48 char* GetAlignedPtr(std::vector<char>* buf, size_t alignment, size_t nbytes) { in GetAlignedPtr() argument 49 buf->resize(nbytes + 3 * alignment); in GetAlignedPtr() 59 char* GetAlignedPtrFilled(std::vector<char>* buf, size_t alignment, size_t nbytes, char fill_byte) { in GetAlignedPtrFilled() argument 60 char* buf_aligned = GetAlignedPtr(buf, alignment, nbytes); in GetAlignedPtrFilled() 61 memset(buf_aligned, fill_byte, nbytes); in GetAlignedPtrFilled()
|
D | util.h | 66 char* GetAlignedPtr(std::vector<char>* buf, size_t alignment, size_t nbytes); 68 wchar_t* GetAlignedPtr(std::vector<wchar_t>* buf, size_t alignment, size_t nbytes); 70 char* GetAlignedPtrFilled(std::vector<char>* buf, size_t alignment, size_t nbytes, char fill_byte); 75 void* ptr, size_t nbytes, int pagesize) { in MakeAllocationResident() argument 77 for (size_t i = 0; i < nbytes; i += pagesize) { in MakeAllocationResident()
|
D | stdio_benchmark.cpp | 154 size_t nbytes = state.range(0); in FopenFgetcFclose() local 159 for (size_t i = 0; i < nbytes; ++i) { in FopenFgetcFclose()
|
/bionic/libc/stdio/ |
D | printf_common.h | 694 size_t clen, nbytes; in wcsconv() local 700 nbytes = wcsrtombs(nullptr, (const wchar_t**)&p, 0, &mbs); in wcsconv() 701 if (nbytes == (size_t)-1) return nullptr; in wcsconv() 707 nbytes = prec; in wcsconv() 709 nbytes = 0; in wcsconv() 714 if (clen == 0 || clen == (size_t)-1 || nbytes + clen > (size_t)prec) break; in wcsconv() 715 nbytes += clen; in wcsconv() 720 if ((convbuf = static_cast<char*>(malloc(nbytes + 1))) == nullptr) return nullptr; in wcsconv() 725 if ((nbytes = wcsrtombs(convbuf, (const wchar_t**)&p, nbytes, &mbs)) == (size_t)-1) { in wcsconv() 729 convbuf[nbytes] = '\0'; in wcsconv()
|
/bionic/libc/kernel/uapi/linux/ |
D | btrfs_tree.h | 235 __le64 nbytes; member
|
/bionic/libc/upstream-netbsd/lib/libc/regex/ |
D | regcomp.c | 1238 size_t nbytes; in allocset() local 1252 nbytes = nc / CHAR_BIT * css; in allocset() 1266 (void) memset((char *)p->g->setbits + (nbytes - css), 0, css); in allocset()
|