openMSX
CacheLine.hh
Go to the documentation of this file.
1#ifndef CACHELINE_HH
2#define CACHELINE_HH
3
5
6inline constexpr unsigned BITS = 8; // 256 bytes
7inline constexpr unsigned SIZE = 1 << BITS;
8inline constexpr unsigned NUM = 0x10000 / SIZE;
9inline constexpr unsigned LOW = SIZE - 1;
10inline 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 BITS
Definition CacheLine.hh:6
constexpr unsigned SIZE
Definition CacheLine.hh:7