openMSX
CacheLine.hh
Go to the documentation of this file.
1 #ifndef CACHELINE_HH
2 #define CACHELINE_HH
3 
4 namespace openmsx::CacheLine {
5 
6 constexpr unsigned BITS = 8; // 256 bytes
7 constexpr unsigned SIZE = 1 << BITS;
8 constexpr unsigned NUM = 0x10000 / SIZE;
9 constexpr unsigned LOW = SIZE - 1;
10 constexpr unsigned HIGH = 0xFFFF - LOW;
11 
12 } // namespace openmsx::CacheLine
13 
14 #endif
constexpr unsigned NUM
Definition: CacheLine.hh:8
constexpr unsigned LOW
Definition: CacheLine.hh:9
constexpr unsigned HIGH
Definition: CacheLine.hh:10
constexpr unsigned SIZE
Definition: CacheLine.hh:7
constexpr unsigned BITS
Definition: CacheLine.hh:6