#include "Precomp.h"
#include <string.h>
#include "LzmaDec.h"
#define kNumTopBits …
#define kTopValue …
#define kNumBitModelTotalBits …
#define kBitModelTotal …
#define RC_INIT_SIZE …
#ifndef _LZMA_DEC_OPT
#define kNumMoveBits …
#define NORMALIZE …
#define IF_BIT_0(p) …
#define UPDATE_0(p) …
#define UPDATE_1(p) …
#define GET_BIT2(p, i, A0, A1) …
#define TREE_GET_BIT(probs, i) …
#define REV_BIT(p, i, A0, A1) …
#define REV_BIT_VAR( p, i, m) …
#define REV_BIT_CONST(p, i, m) …
#define REV_BIT_LAST( p, i, m) …
#define TREE_DECODE(probs, limit, i) …
#ifdef _LZMA_SIZE_OPT
#define TREE_6_DECODE …
#else
#define TREE_6_DECODE(probs, i) …
#endif
#define NORMAL_LITER_DEC …
#define MATCHED_LITER_DEC …
#endif
#define NORMALIZE_CHECK …
#define IF_BIT_0_CHECK(p) …
#define UPDATE_0_CHECK …
#define UPDATE_1_CHECK …
#define GET_BIT2_CHECK(p, i, A0, A1) …
#define GET_BIT_CHECK(p, i) …
#define TREE_DECODE_CHECK(probs, limit, i) …
#define REV_BIT_CHECK(p, i, m) …
#define kNumPosBitsMax …
#define kNumPosStatesMax …
#define kLenNumLowBits …
#define kLenNumLowSymbols …
#define kLenNumHighBits …
#define kLenNumHighSymbols …
#define LenLow …
#define LenHigh …
#define kNumLenProbs …
#define LenChoice …
#define LenChoice2 …
#define kNumStates …
#define kNumStates2 …
#define kNumLitStates …
#define kStartPosModelIndex …
#define kEndPosModelIndex …
#define kNumFullDistances …
#define kNumPosSlotBits …
#define kNumLenToPosStates …
#define kNumAlignBits …
#define kAlignTableSize …
#define kMatchMinLen …
#define kMatchSpecLenStart …
#define kMatchSpecLen_Error_Data …
#define kMatchSpecLen_Error_Fail …
#define kStartOffset …
#define GET_PROBS …
#define SpecPos …
#define IsRep0Long …
#define RepLenCoder …
#define LenCoder …
#define IsMatch …
#define Align …
#define IsRep …
#define IsRepG0 …
#define IsRepG1 …
#define IsRepG2 …
#define PosSlot …
#define Literal …
#define NUM_BASE_PROBS …
#if Align != 0 && kStartOffset != 0
#error Stop_Compiling_Bad_LZMA_kAlign
#endif
#if NUM_BASE_PROBS != 1984
#error Stop_Compiling_Bad_LZMA_PROBS
#endif
#define LZMA_LIT_SIZE …
#define LzmaProps_GetNumProbs(p) …
#define CALC_POS_STATE(processedPos, pbMask) …
#define COMBINED_PS_STATE …
#define GET_LEN_STATE …
#define LZMA_DIC_MIN …
#define LZMA_DECODE_REAL …
#ifdef _LZMA_DEC_OPT
int MY_FAST_CALL LZMA_DECODE_REAL(CLzmaDec *p, SizeT limit, const Byte *bufLimit);
#else
static
int MY_FAST_CALL LZMA_DECODE_REAL(CLzmaDec *p, SizeT limit, const Byte *bufLimit)
{ … }
#endif
static void MY_FAST_CALL LzmaDec_WriteRem(CLzmaDec *p, SizeT limit)
{ … }
#define kRange0 …
#define kBound0 …
#define kBadRepCode …
#if kBadRepCode != (0xC0000000 - 0x400)
#error Stop_Compiling_Bad_LZMA_Check
#endif
static int MY_FAST_CALL LzmaDec_DecodeReal2(CLzmaDec *p, SizeT limit, const Byte *bufLimit)
{ … }
ELzmaDummy;
#define IS_DUMMY_END_MARKER_POSSIBLE(dummyRes) …
static ELzmaDummy LzmaDec_TryDummy(const CLzmaDec *p, const Byte *buf, const Byte **bufOut)
{ … }
void LzmaDec_InitDicAndState(CLzmaDec *p, BoolInt initDic, BoolInt initState);
void LzmaDec_InitDicAndState(CLzmaDec *p, BoolInt initDic, BoolInt initState)
{ … }
void LzmaDec_Init(CLzmaDec *p)
{ … }
#define RETURN__NOT_FINISHED__FOR_FINISH …
SRes LzmaDec_DecodeToDic(CLzmaDec *p, SizeT dicLimit, const Byte *src, SizeT *srcLen,
ELzmaFinishMode finishMode, ELzmaStatus *status)
{ … }
SRes LzmaDec_DecodeToBuf(CLzmaDec *p, Byte *dest, SizeT *destLen, const Byte *src, SizeT *srcLen, ELzmaFinishMode finishMode, ELzmaStatus *status)
{ … }
void LzmaDec_FreeProbs(CLzmaDec *p, ISzAllocPtr alloc)
{ … }
static void LzmaDec_FreeDict(CLzmaDec *p, ISzAllocPtr alloc)
{ … }
void LzmaDec_Free(CLzmaDec *p, ISzAllocPtr alloc)
{ … }
SRes LzmaProps_Decode(CLzmaProps *p, const Byte *data, unsigned size)
{ … }
static SRes LzmaDec_AllocateProbs2(CLzmaDec *p, const CLzmaProps *propNew, ISzAllocPtr alloc)
{ … }
SRes LzmaDec_AllocateProbs(CLzmaDec *p, const Byte *props, unsigned propsSize, ISzAllocPtr alloc)
{ … }
SRes LzmaDec_Allocate(CLzmaDec *p, const Byte *props, unsigned propsSize, ISzAllocPtr alloc)
{ … }
SRes LzmaDecode(Byte *dest, SizeT *destLen, const Byte *src, SizeT *srcLen,
const Byte *propData, unsigned propSize, ELzmaFinishMode finishMode,
ELzmaStatus *status, ISzAllocPtr alloc)
{ … }