Searched refs:DoNotOptimize (Results 1 – 11 of 11) sorted by relevance
/bionic/benchmarks/ |
D | stdlib_benchmark.cpp | 34 benchmark::DoNotOptimize(ptr = malloc(nbytes)); in MallocFree() 71 benchmark::DoNotOptimize(ptr = calloc(1, nbytes)); in CallocFree() 107 benchmark::DoNotOptimize(ptrs[i] = reinterpret_cast<uint8_t*>(malloc(nbytes))); in MallocMultiple() 174 benchmark::DoNotOptimize(mbstowcs(&wcs[0], &mbs[0], wcs.size())); in BM_stdlib_mbstowcs_ascii() 193 benchmark::DoNotOptimize(mbstowcs(&wcs[0], &mbs[0], wcs.size())); in BM_stdlib_mbstowcs_wide() 203 benchmark::DoNotOptimize(mbrtowc(&wc, "e", 1, nullptr)); in BM_stdlib_mbrtowc_1() 211 benchmark::DoNotOptimize(mbrtowc(&wc, "\xc3\x9f", 3, nullptr)); in BM_stdlib_mbrtowc_2() 219 benchmark::DoNotOptimize(mbrtowc(&wc, "\xe5\xb1\xb1", 3, nullptr)); in BM_stdlib_mbrtowc_3() 227 benchmark::DoNotOptimize(mbrtowc(&wc, "\xf0\xa4\xad\xa2", 4, nullptr)); in BM_stdlib_mbrtowc_4()
|
D | string_benchmark.cpp | 35 benchmark::DoNotOptimize(memcmp(dst_aligned, src_aligned, nbytes)); in BM_string_memcmp() 132 benchmark::DoNotOptimize(strlen(buf_aligned)); in BM_string_strlen() 241 benchmark::DoNotOptimize(strcmp(s1_aligned, s2_aligned)); in BM_string_strcmp() 259 benchmark::DoNotOptimize(strncmp(s1_aligned, s2_aligned, nbytes)); in BM_string_strncmp()
|
D | get_heap_size_benchmark.cpp | 58 benchmark::DoNotOptimize(mallinfo().uordblks); in BM_mallinfo()
|
D | util.h | 49 benchmark::DoNotOptimize(__expression); \
|
D | stdio_benchmark.cpp | 159 benchmark::DoNotOptimize(fgetc(fp)); in FopenFgetcFclose()
|
/bionic/linker/ |
D | linker_gnu_hash_benchmark.cpp | 290 benchmark::DoNotOptimize(calculate_gnu_hash_simple(sym_name)); in BM_gnu_hash_simple() 302 benchmark::DoNotOptimize(calculate_gnu_hash_neon(sym_name)); in BM_gnu_hash_neon()
|
/bionic/tests/ |
D | fenv_test.cpp | 30 DoNotOptimize(x = f + m); in TestRounding() 32 DoNotOptimize(x = x - m); in TestRounding() 39 DoNotOptimize(123.0f / zero); in DivideByZero()
|
D | utils.h | 300 static inline void DoNotOptimize(Tp const& value) { in DoNotOptimize() function 304 static inline void DoNotOptimize(Tp& value) { in DoNotOptimize() function
|
D | unistd_test.cpp | 704 DoNotOptimize(x); in HwasanVforkTestChild() 713 DoNotOptimize(z = p[i]); in HwasanReadMemory() 721 DoNotOptimize(x); in HwasanVforkTestParent()
|
D | malloc_test.cpp | 1084 DoNotOptimize(ptr = malloc(size)); in TEST() 1098 DoNotOptimize(ptr = malloc(size)); in TEST()
|
/bionic/libc/system_properties/ |
D | context_lookup_benchmark.cpp | 92 benchmark::DoNotOptimize(mapping.GetPrefixNodeForName(property.c_str())); in LegacyLookupOreo() 103 benchmark::DoNotOptimize(mapping.GetPrefixNodeForName(property.c_str())); in LegacyLookupS()
|