Lines Matching full:uint32
13 const UInt32 kAdditionalSize = (6 << 20);
14 const UInt32 kCompressedAdditionalSize = (1 << 10);
15 const UInt32 kMaxLzmaPropSize = 10;
19 UInt32 A1;
20 UInt32 A2;
23 public UInt32 GetRnd()
34 UInt32 Value;
41 public UInt32 GetRnd(int numBits)
43 UInt32 result;
46 result = Value & (((UInt32)1 << numBits) - 1);
54 result |= Value & (((UInt32)1 << numBits) - 1);
64 UInt32 Pos;
65 UInt32 Rep0;
67 public UInt32 BufferSize;
72 public void Set(UInt32 bufferSize)
78 UInt32 GetRndBit() { return RG.GetRnd(1); }
79 UInt32 GetLogRandBits(int numBits)
81 UInt32 len = RG.GetRnd(numBits);
84 UInt32 GetOffset()
90 UInt32 GetLen1() { return RG.GetRnd(1 + (int)RG.GetRnd(2)); }
91 UInt32 GetLen2() { return RG.GetRnd(2 + (int)RG.GetRnd(2)); }
102 UInt32 len;
113 for (UInt32 i = 0; i < len && Pos < BufferSize; i++, Pos++)
124 public UInt32 GetDigest() { return CRC.GetDigest(); }
163 static UInt32 GetLogSize(UInt32 size)
166 for (UInt32 j = 0; j < (1 << kSubBits); j++)
167 if (size <= (((UInt32)1) << i) + (j << (i - kSubBits)))
168 return (UInt32)(i << kSubBits) + j;
186 static UInt64 GetCompressRating(UInt32 dictionarySize, UInt64 elapsedTime, UInt64 size)
201 UInt32 dictionarySize,
225 UInt32 dictionarySize,
241 static public int LzmaBenchmark(Int32 numIterations, UInt32 dictionarySize)
265 UInt32 kBufferSize = dictionarySize + kAdditionalSize;
266 UInt32 kCompressedBufferSize = (kBufferSize / 2) + kCompressedAdditionalSize;