Searched refs:nbytes (Results 1 – 7 of 7) 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() 35 benchmark::DoNotOptimize(memcmp(dst_aligned, src_aligned, nbytes)); in BM_string_memcmp() 38 state.SetBytesProcessed(uint64_t(state.iterations()) * uint64_t(nbytes)); in BM_string_memcmp() 43 const size_t nbytes = state.range(0); in BM_string_memcpy() local 49 char* src_aligned = GetAlignedPtrFilled(&src, src_alignment, nbytes, 'x'); in BM_string_memcpy() 50 char* dst_aligned = GetAlignedPtr(&dst, dst_alignment, nbytes); in BM_string_memcpy() 53 memcpy(dst_aligned, src_aligned, nbytes); in BM_string_memcpy() 56 state.SetBytesProcessed(uint64_t(state.iterations()) * uint64_t(nbytes)); in BM_string_memcpy() [all …]
|
D | stdlib_benchmark.cpp | 29 const size_t nbytes = state.range(0); in MallocFree() local 34 benchmark::DoNotOptimize(ptr = malloc(nbytes)); in MallocFree() 35 MakeAllocationResident(ptr, nbytes, pagesize); in MallocFree() 39 state.SetBytesProcessed(uint64_t(state.iterations()) * uint64_t(nbytes)); in MallocFree() 66 const size_t nbytes = state.range(0); in CallocFree() local 71 benchmark::DoNotOptimize(ptr = calloc(1, nbytes)); in CallocFree() 72 MakeAllocationResident(ptr, nbytes, pagesize); in CallocFree() 76 state.SetBytesProcessed(uint64_t(state.iterations()) * uint64_t(nbytes)); in CallocFree() 102 static void MallocMultiple(benchmark::State& state, size_t nbytes, size_t numAllocs) { in MallocMultiple() argument 107 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 158 for (size_t i = 0; i < nbytes; ++i) { in FopenFgetcFclose()
|
/bionic/libc/stdio/ |
D | printf_common.h | 719 size_t clen, nbytes; in wcsconv() local 725 nbytes = wcsrtombs(nullptr, (const wchar_t**)&p, 0, &mbs); in wcsconv() 726 if (nbytes == (size_t)-1) return nullptr; in wcsconv() 732 nbytes = prec; in wcsconv() 734 nbytes = 0; in wcsconv() 739 if (clen == 0 || clen == (size_t)-1 || nbytes + clen > (size_t)prec) break; in wcsconv() 740 nbytes += clen; in wcsconv() 745 if ((convbuf = static_cast<char*>(malloc(nbytes + 1))) == nullptr) return nullptr; in wcsconv() 750 if ((nbytes = wcsrtombs(convbuf, (const wchar_t**)&p, nbytes, &mbs)) == (size_t)-1) { in wcsconv() 754 convbuf[nbytes] = '\0'; in wcsconv()
|
/bionic/libc/kernel/uapi/linux/ |
D | btrfs_tree.h | 365 __le64 nbytes; member
|