Rihen Rihen NkentseuDocumentation

CacheInfo

struct

Information about the CPU cache hierarchy

Include
#include "NKPlatform/NkCPUFeatures.h"
Namespace
nkentseu::platform
Link (Jenga)
nkentseudependson(["NKPlatform"])
C++
struct CacheInfo

Hierarchy

Base classes : none. Derived classes : none.

Hierarchy : CacheInfoCacheInfo

Members · 6

lineSizeSize of a cache line in bytes
l1DataSizeL1 data cache size in KB
l1InstructionSizeL1 instruction cache size in KB
l2SizeL2 cache size in KB
l3SizeL3 cache size in KB
CacheInfoDefault constructor with conservative values

Member details

lineSize

#
field
int32_t lineSize

Size of a cache line in bytes

l1DataSize

#
field
int32_t l1DataSize

L1 data cache size in KB

l1InstructionSize

#
field
int32_t l1InstructionSize

L1 instruction cache size in KB

l2Size

#
field
int32_t l2Size

L2 cache size in KB

l3Size

#
field
int32_t l3Size

L3 cache size in KB

CacheInfo

#
constructor
CacheInfo()

Default constructor with conservative values