openMSX
cpu
CacheLine.hh
Go to the documentation of this file.
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
openmsx::CacheLine
Definition
CacheLine.hh:4
openmsx::CacheLine::NUM
constexpr unsigned NUM
Definition
CacheLine.hh:8
openmsx::CacheLine::LOW
constexpr unsigned LOW
Definition
CacheLine.hh:9
openmsx::CacheLine::HIGH
constexpr unsigned HIGH
Definition
CacheLine.hh:10
openmsx::CacheLine::BITS
constexpr unsigned BITS
Definition
CacheLine.hh:6
openmsx::CacheLine::SIZE
constexpr unsigned SIZE
Definition
CacheLine.hh:7
Generated on Thu Dec 19 2024 23:13:45 for openMSX by
1.9.8