| e8555c89 Andy McCall |
1 |
#ifndef CACHELINE_HH |
| 2 |
#define CACHELINE_HH |
| 3 |
|
| 4 |
namespace openmsx::CacheLine { |
| 5 |
|
| 6 |
inline constexpr unsigned BITS = 8; |
| 7 |
inline constexpr unsigned SIZE = 1 << BITS; |
| 8 |
inline constexpr unsigned NUM = 0x10000 / SIZE; |
| 9 |
inline constexpr unsigned LOW = SIZE - 1; |
| 10 |
inline constexpr unsigned HIGH = 0xFFFF - LOW; |
| 11 |
|
| 12 |
} |
| 13 |
|
| 14 |
#endif |