29#ifndef __MEM_CACHE_COMPRESSORS_ENCODERS_BASE_HH__
30#define __MEM_CACHE_COMPRESSORS_ENCODERS_BASE_HH__
80 virtual uint64_t
decode(
const uint64_t code)
const = 0;
virtual Code encode(const uint64_t val) const =0
The function responsible for the generation of the alternative value.
virtual uint64_t decode(const uint64_t code) const =0
Decode a value.
Copyright (c) 2024 - Pranith Kumar Copyright (c) 2020 Inria All rights reserved.
unsigned length
Number of bits in the code.
uint64_t code
Only the LSB of the code are relevant.