1
#include "AriBitCoder.h"
6
namespace NCompression {
7
namespace NArithmetic {
9
static const double kDummyMultMid = (1.0 / kBitPrice) / 2;
11
CPriceTables::CPriceTables()
14
double aLnAll = log(kBitModelTotal >> kNumMoveReducingBits);
15
for(UINT32 i = 1; i < (kBitModelTotal >> kNumMoveReducingBits) - 1; i++)
16
m_StatePrices[i] = UINT32((fabs(aLnAll - log(i)) / aLn2 + kDummyMultMid) * kBitPrice);
19
CPriceTables g_PriceTables;