openMSX
Classes | Typedefs | Functions
LZ4 Namespace Reference

Classes

struct  HashImpl
 
struct  HashImpl< false, false >
 
struct  HashImpl< false, true >
 
struct  HashImpl< true, ARCH64 >
 

Typedefs

using reg_t = uintptr_t
 

Functions

ALWAYS_INLINE unsigned count (const uint8_t *pIn, const uint8_t *pMatch, const uint8_t *pInLimit)
 
template<bool L64K, bool ARCH64>
ALWAYS_INLINE int compress_impl (const uint8_t *src, uint8_t *const dst, const int inputSize)
 
int compress (const uint8_t *src, uint8_t *dst, int srcSize)
 
int decompress (const uint8_t *src, uint8_t *dst, int srcSize, int outputSize)
 
int compressBound (int isize)
 

Typedef Documentation

◆ reg_t

using LZ4::reg_t = typedef uintptr_t

Definition at line 47 of file lz4.cc.

Function Documentation

◆ compress()

int LZ4::compress ( const uint8_t *  src,
uint8_t *  dst,
int  srcSize 
)

Definition at line 516 of file lz4.cc.

References ALWAYS_INLINE, and gl::length().

Referenced by openmsx::DeltaBlockCopy::compress(), and compressBound().

◆ compress_impl()

template<bool L64K, bool ARCH64>
ALWAYS_INLINE int LZ4::compress_impl ( const uint8_t *  src,
uint8_t *const  dst,
const int  inputSize 
)

Definition at line 336 of file lz4.cc.

References step, and unlikely.

◆ compressBound()

int LZ4::compressBound ( int  isize)
inline

Definition at line 51 of file lz4.hh.

References compress(), and decompress().

Referenced by openmsx::DeltaBlockCopy::compress().

◆ count()

ALWAYS_INLINE unsigned LZ4::count ( const uint8_t *  pIn,
const uint8_t *  pMatch,
const uint8_t *  pInLimit 
)

◆ decompress()

int LZ4::decompress ( const uint8_t *  src,
uint8_t *  dst,
int  srcSize,
int  outputSize 
)

Definition at line 540 of file lz4.cc.

References gl::length(), likely, and unlikely.

Referenced by openmsx::DeltaBlockCopy::apply(), and compressBound().