kolibrios-gitea/programs/other/kpack/kerpack_linux/lzma_c/RangeCoderBit.h
CleverMouse cd74d1af33 switch build system to Tup
git-svn-id: svn://kolibrios.org@5098 a494cfbc-eb01-0410-851d-a64ba20cac60
2014-09-12 15:15:23 +00:00

19 lines
633 B
C

#include "RangeCoder.h"
#define kNumBitModelTotalBits 11
#define kBitModelTotal (1<<kNumBitModelTotalBits)
#define kNumMoveReducingBits 2
#define kNumBitPriceShiftBits 6
#define kBitPrice (1<<kNumBitPriceShiftBits)
typedef unsigned NRangeCoder_CBitModel;
typedef NRangeCoder_CBitModel CMyBitEncoder;
extern void CMyBitEncoder_Encode(CMyBitEncoder* e,unsigned symbol);
extern unsigned CMyBitEncoder_GetPrice(CMyBitEncoder* e, unsigned symbol);
extern unsigned CMyBitEncoder_GetPrice0(CMyBitEncoder* e);
extern unsigned CMyBitEncoder_GetPrice1(CMyBitEncoder* e);
#define CMyBitEncoder_Init(a) a=kBitModelTotal/2