3 ms·
Is there a way of hinting this to the compiler, rather than adding a explicit padding? Any way of saying "please don't put the following on the same cache line"
by IanCal 10y ago
Is there a way of hinting this to the compiler, rather than adding a explicit padding? Any way of saying "please don't put the following on the same cache line"?
- NotThe1Pct 10y agoYou could use the alignas(64) specifier http://en.cppreference.com/w/cpp/language/alignas http://en.cppreference.com/w/cpp/language/alignas
- IanCal 10y agoInteresting, thanks!