4#ifndef TETL_NEW_HARDWARE_INTERFERENCE_SIZE_HPP
5#define TETL_NEW_HARDWARE_INTERFERENCE_SIZE_HPP
7#include <etl/_cstddef/max_align_t.hpp>
12#if defined(__aarch64__)
13 #define TETL_CACHELINE_SIZE 64
14#elif defined(__ARM_ARCH_5T__)
15 #define TETL_CACHELINE_SIZE 32
16#elif defined(__ARM_ARCH_7A__)
17 #define TETL_CACHELINE_SIZE 64
18#elif defined(__PPC64__)
19 #define TETL_CACHELINE_SIZE 128
20#elif defined(__i386__) || defined(__x86_64__)
21 #define TETL_CACHELINE_SIZE 64
23 #define TETL_CACHELINE_SIZE alignof(max_align_t)
Definition adjacent_find.hpp:9
constexpr auto hardware_constructive_interference_size
Minimum offset between two objects to avoid false sharing. Guaranteed to be at least alignof(max_alig...
Definition hardware_interference_size.hpp:30
constexpr auto hardware_destructive_interference_size
Maximum size of contiguous memory to promote true sharing. Guaranteed to be at least alignof(max_alig...
Definition hardware_interference_size.hpp:34