Home
last modified time | relevance | path

Searched refs:DoNotOptimize (Results 1 – 11 of 11) sorted by relevance

/bionic/benchmarks/
Dstdlib_benchmark.cpp34 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()
Dstring_benchmark.cpp35 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()
Dget_heap_size_benchmark.cpp58 benchmark::DoNotOptimize(mallinfo().uordblks); in BM_mallinfo()
Dutil.h49 benchmark::DoNotOptimize(__expression); \
Dstdio_benchmark.cpp159 benchmark::DoNotOptimize(fgetc(fp)); in FopenFgetcFclose()
/bionic/linker/
Dlinker_gnu_hash_benchmark.cpp290 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/
Dfenv_test.cpp30 DoNotOptimize(x = f + m); in TestRounding()
32 DoNotOptimize(x = x - m); in TestRounding()
39 DoNotOptimize(123.0f / zero); in DivideByZero()
Dutils.h300 static inline void DoNotOptimize(Tp const& value) { in DoNotOptimize() function
304 static inline void DoNotOptimize(Tp& value) { in DoNotOptimize() function
Dunistd_test.cpp704 DoNotOptimize(x); in HwasanVforkTestChild()
713 DoNotOptimize(z = p[i]); in HwasanReadMemory()
721 DoNotOptimize(x); in HwasanVforkTestParent()
Dmalloc_test.cpp1084 DoNotOptimize(ptr = malloc(size)); in TEST()
1098 DoNotOptimize(ptr = malloc(size)); in TEST()
/bionic/libc/system_properties/
Dcontext_lookup_benchmark.cpp92 benchmark::DoNotOptimize(mapping.GetPrefixNodeForName(property.c_str())); in LegacyLookupOreo()
103 benchmark::DoNotOptimize(mapping.GetPrefixNodeForName(property.c_str())); in LegacyLookupS()