Parolin 0.7.9 6796
Console (soon DLLs) to do a tar like job
Loading...
Searching...
No Matches
Ppmd7.c File Reference
#include "Precomp.h"
#include <string.h>
#include "Ppmd7.h"

Data Structures

union  CPpmd7_Node_Union
 

Macros

#define MAX_FREQ   124
 
#define UNIT_SIZE   12
 
#define U2B(nu)
 
#define U2I(nu)
 
#define I2U(indx)
 
#define I2U_UInt16(indx)
 
#define REF(ptr)
 
#define STATS_REF(ptr)
 
#define CTX(ref)
 
#define STATS(ctx)
 
#define ONE_STATE(ctx)
 
#define SUFFIX(ctx)
 
#define NODE(r)
 
#define EMPTY_NODE   0
 
#define MEM_12_CPY(dest, src, num)
 
#define SUCCESSOR(p)
 
#define SWAP_STATES(s)
 

Typedefs

typedef CPpmd7_ContextPPMD7_CTX_PTR
 

Functions

typedef Ppmd_Ref_Type (struct CPpmd7_Node_)
 
void Ppmd7_Construct (CPpmd7 *p)
 
void Ppmd7_Free (CPpmd7 *p, ISzAllocPtr alloc)
 
BoolInt Ppmd7_Alloc (CPpmd7 *p, UInt32 size, ISzAllocPtr alloc)
 
void Ppmd7_Init (CPpmd7 *p, unsigned maxOrder)
 
void Ppmd7_UpdateModel (CPpmd7 *p)
 
CPpmd_SeePpmd7_MakeEscFreq (CPpmd7 *p, unsigned numMasked, UInt32 *escFreq)
 
void Ppmd7_Update1 (CPpmd7 *p)
 
void Ppmd7_Update1_0 (CPpmd7 *p)
 
void Ppmd7_Update2 (CPpmd7 *p)
 

Variables

 CPpmd7_Node
 

Macro Definition Documentation

◆ CTX

#define CTX ( ref)
Value:
#define Ppmd7_GetContext(p, ptr)
Definition Ppmd7.h:116
Definition Ppmd7.h:27

◆ EMPTY_NODE

#define EMPTY_NODE   0

◆ I2U

#define I2U ( indx)
Value:
((unsigned)p->Indx2Units[indx])

◆ I2U_UInt16

#define I2U_UInt16 ( indx)
Value:
((UInt16)p->Indx2Units[indx])
unsigned short UInt16
Definition bzlib_private.h:47

◆ MAX_FREQ

#define MAX_FREQ   124

◆ MEM_12_CPY

#define MEM_12_CPY ( dest,
src,
num )
Value:
{ UInt32 *d = (UInt32 *)(dest); \
const UInt32 *z = (const UInt32 *)(src); \
unsigned n = (num); \
do { \
d[0] = z[0]; \
d[1] = z[1]; \
d[2] = z[2]; \
z += 3; \
d += 3; \
} while (--n); \
}
const char * src
Definition lz4.h:866
char * dest
Definition lz4.h:806
unsigned int UInt32
Definition bzlib_private.h:45
#define d(i)
Definition sha256.c:44

◆ NODE

#define NODE ( r)
Value:
#define Ppmd_GetPtr_Type(p, offs, type)
Definition Ppmd.h:115
Definition Ppmd7.c:47

◆ ONE_STATE

#define ONE_STATE ( ctx)
Value:
#define Ppmd7Context_OneState(p)
Definition Ppmd7.h:48
md5_starts & ctx
Definition zlib_interface.c:41

◆ REF

#define REF ( ptr)
Value:
Ppmd_GetRef(p, ptr)
#define Ppmd_GetRef(p, ptr)
Definition Ppmd.h:113

◆ STATS

#define STATS ( ctx)
Value:
#define Ppmd7_GetStats(p, ctx)
Definition Ppmd7.h:117

◆ STATS_REF

#define STATS_REF ( ptr)
Value:
#define REF(ptr)
Definition Ppmd7.c:27
UInt32 CPpmd_State_Ref
Definition Ppmd.h:61

◆ SUCCESSOR

#define SUCCESSOR ( p)
Value:
#define Ppmd_GET_SUCCESSOR(p)
Definition Ppmd.h:151

◆ SUFFIX

#define SUFFIX ( ctx)
Value:
CTX((ctx)->Suffix)
#define CTX(ref)
Definition Ppmd7.c:31

◆ SWAP_STATES

#define SWAP_STATES ( s)
Value:
{ CPpmd_State tmp = s[0]; s[0] = s[-1]; s[-1] = tmp; }
Definition Ppmd.h:58

◆ U2B

#define U2B ( nu)
Value:
((UInt32)(nu) * UNIT_SIZE)
#define UNIT_SIZE
Definition Ppmd7.c:20

◆ U2I

#define U2I ( nu)
Value:
(p->Units2Indx[(size_t)(nu) - 1])

◆ UNIT_SIZE

#define UNIT_SIZE   12

Typedef Documentation

◆ PPMD7_CTX_PTR

Function Documentation

◆ Ppmd7_Alloc()

BoolInt Ppmd7_Alloc ( CPpmd7 * p,
UInt32 size,
ISzAllocPtr alloc )

◆ Ppmd7_Construct()

void Ppmd7_Construct ( CPpmd7 * p)

◆ Ppmd7_Free()

void Ppmd7_Free ( CPpmd7 * p,
ISzAllocPtr alloc )

◆ Ppmd7_Init()

void Ppmd7_Init ( CPpmd7 * p,
unsigned maxOrder )

◆ Ppmd7_MakeEscFreq()

CPpmd_See * Ppmd7_MakeEscFreq ( CPpmd7 * p,
unsigned numMasked,
UInt32 * escFreq )

◆ Ppmd7_Update1()

void Ppmd7_Update1 ( CPpmd7 * p)

◆ Ppmd7_Update1_0()

void Ppmd7_Update1_0 ( CPpmd7 * p)

◆ Ppmd7_Update2()

void Ppmd7_Update2 ( CPpmd7 * p)

◆ Ppmd7_UpdateModel()

Z7_NO_INLINE void Ppmd7_UpdateModel ( CPpmd7 * p)

◆ Ppmd_Ref_Type()

typedef Ppmd_Ref_Type ( struct CPpmd7_Node_ )

Variable Documentation

◆ CPpmd7_Node