diff options
author | Zephyron <zephyron@citron-emu.org> | 2025-01-06 12:41:42 +1000 |
---|---|---|
committer | Zephyron <zephyron@citron-emu.org> | 2025-01-06 12:41:42 +1000 |
commit | 08f1ed40116d859ff680dcd733dac5e3d1abe386 (patch) | |
tree | 846c189310493d301de52a961809631fd0a4b1c9 /src/citron | |
parent | 21f94d5825d350bdee54f72eede880186e689c76 (diff) |
common: Use consistent cache line size in RingBuffer
Replace hardcoded 128-byte alignment with a defined CACHE_LINE_SIZE constant
of 64 bytes for the atomic indices in RingBuffer. This value is more
appropriate for most modern CPU architectures and simplifies the
implementation by using a consistent value regardless of compiler support
for hardware_interference_size.
Changes:
- Add CACHE_LINE_SIZE constant set to 64 bytes
- Use CACHE_LINE_SIZE for atomic index alignment in both code paths
- Remove outdated TODO comment about hardware_destructive_interference_size
Diffstat (limited to 'src/citron')
0 files changed, 0 insertions, 0 deletions