Shortcuts

Struct Cache

Struct Documentation

struct ripple::Cache

Stores information for a cache.

Public Types

enum Type

Defines the type of the cache, as per the Intel spec.

Values:

enumerator Null

Null or invalid cache.

enumerator Data

Data cache.

enumerator Instruction

Instruction cache.

enumerator Unified

Unified cache.

Public Functions

auto size() const -> uint32_t

Gets the size of the cache.

Return

The size of the cache in kB.

Public Members

Type type = Type::Null
uint32_t level = 0

Level of the cache

uint32_t linesize = 0

Cache line size in bytes.

uint32_t partitions = 0

Number of partitions.

uint32_t assosciativity = 0

Ways of assosciativity.

uint32_t shared_by = 0

Max threads sharing this cache.

uint32_t sets = 0

Number of sets.

uint32_t mask = 0

Mask to determine cache sharing.

Public Static Attributes

constexpr uint32_t bytes_in_kb = 1024

Constant to convert bytes to kb.

Docs

Access comprehensive developer documentation for Ripple

View Docs

Tutorials

Get tutorials to help with understand all features

View Tutorials

Examples

Find examples to help get started

View Examples