Home
last modified time | relevance | path

Searched refs:cache_line_size (Results 1 – 9 of 9) sorted by relevance

/oneTBB/include/oneapi/tbb/
H A Dcache_aligned_allocator.h35 TBB_EXPORT std::size_t __TBB_EXPORTED_FUNC cache_line_size();
64 return (~std::size_t(0) - r1::cache_line_size()) / sizeof(value_type); in max_size()
159 std::size_t cache_line_size = std::hardware_destructive_interference_size; in correct_alignment() local
161 std::size_t cache_line_size = r1::cache_line_size(); in correct_alignment() local
163 return alignment < cache_line_size ? cache_line_size : alignment; in correct_alignment()
/oneTBB/src/tbb/
H A Dallocator.cpp177 std::size_t __TBB_EXPORTED_FUNC cache_line_size() { in cache_line_size() function
182 const std::size_t cache_line_size = nfs_size; in cache_aligned_allocate() local
183 __TBB_ASSERT(is_power_of_two(cache_line_size), "must be power of two"); in cache_aligned_allocate()
186 if (size + cache_line_size < size) { in cache_aligned_allocate()
192 …id* result = cache_aligned_allocate_handler.load(std::memory_order_acquire)(size, cache_line_size); in cache_aligned_allocate()
196 __TBB_ASSERT(is_aligned(result, cache_line_size), "The returned address isn't aligned"); in cache_aligned_allocate()
H A Dprivate_server.cpp103 static const std::size_t cache_line_size = tbb::detail::max_nfs_size; variable
111 char pad[cache_line_size - sizeof(private_worker)%cache_line_size];
H A Darena.cpp251 …__TBB_ASSERT( sizeof(my_slots[0]) % cache_line_size()==0, "arena::slot size not multiple of cache … in arena()
252 __TBB_ASSERT( is_aligned(this, cache_line_size()), "arena misaligned" ); in arena()
290 …__TBB_ASSERT( sizeof(base_type) % cache_line_size() == 0, "arena slots area misaligned: wrong padd… in allocate_arena()
/oneTBB/test/tbb/
H A Dtest_allocators.cpp55 (void)cache_aligned_allocate(~size_t(0) - itemsize * nitems + cache_line_size());
H A Dtest_enumerable_thread_specific.cpp398 static const size_t cache_allocator_mask = tbb::detail::r1::cache_line_size();
/oneTBB/src/tbb/def/
H A Dwin64-tbb.def38 ?cache_line_size@r1@detail@tbb@@YA_KXZ
H A Dwin32-tbb.def38 ?cache_line_size@r1@detail@tbb@@YAIXZ
/oneTBB/test/conformance/
H A Dconformance_enumerable_thread_specific.cpp1074 static const size_t cache_allocator_mask = oneapi::tbb::detail::r1::cache_line_size();