Home | History | Annotate | Download | only in Common

Lines Matching defs:rg

99   CBaseRandomGenerator *RG;

101 void Set(CBaseRandomGenerator *rg) { RG = rg; }
119 UInt32 res = RG->GetRnd();
133 res = RG->GetRnd();
137 res = RG->GetRnd();
496 CBenchRandomGenerator rg;
499 HRESULT Init(UInt32 dictionarySize, UInt32 numThreads, CBaseRandomGenerator *rg);
555 rg.Set(rgLoc);
558 if (!rg.Alloc(kBufferSize))
560 rg.Generate();
561 crc = CrcCalc(rg.Buffer, rg.BufferSize);
613 inStreamSpec->Init(rg.Buffer, rg.BufferSize);
709 CBaseRandomGenerator rg;
710 rg.Init();
713 RINOK(encoders[i].Init(dictionarySize, numThreads, &rg));
933 static void RandGen(Byte *buf, UInt32 size, CBaseRandomGenerator &RG)
936 buf[i] = (Byte)RG.GetRnd();
939 static UInt32 RandGenCrc(Byte *buf, UInt32 size, CBaseRandomGenerator &RG)
941 RandGen(buf, size, RG);
960 CBaseRandomGenerator RG;
961 RandGen(buf + kBufferSize0, kBufferSize1, RG);
982 CBaseRandomGenerator RG;
999 info.Crc = RandGenCrc(data, bufferSize, RG);
1016 UInt32 crc = RandGenCrc(buf, bufferSize, RG);