OXYGENHUB
◆ main openmsx / src / cpu / CacheLine.hh
350 B · C++ · last changed chore(): initial commit 1 month ago source blame history raw
e8555c89 Andy McCall 1
#ifndef CACHELINE_HH
2
#define CACHELINE_HH
3
4
namespace openmsx::CacheLine {
5
6
inline constexpr unsigned BITS = 8; // 256 bytes
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
} // namespace openmsx::CacheLine
13
14
#endif