Home
last modified time | relevance | path

Searched refs:Freq (Results 1 – 25 of 26) sorted by relevance

12

/external/llvm/unittests/Support/
DBlockFrequencyTest.cpp12 BlockFrequency Freq(1); in TEST() local
14 Freq *= Prob; in TEST()
15 EXPECT_EQ(Freq.getFrequency(), 0u); in TEST()
17 Freq = BlockFrequency(1); in TEST()
18 Freq *= Prob; in TEST()
19 EXPECT_EQ(Freq.getFrequency(), 0u); in TEST()
23 BlockFrequency Freq(1); in TEST() local
25 Freq *= Prob; in TEST()
26 EXPECT_EQ(Freq.getFrequency(), 1u); in TEST()
28 Freq = BlockFrequency(1); in TEST()
[all …]
/external/llvm/lib/Support/
DBlockFrequency.cpp28 BlockFrequency Freq(Frequency); in operator *() local
29 Freq *= Prob; in operator *()
30 return Freq; in operator *()
39 BlockFrequency Freq(Frequency); in operator /() local
40 Freq /= Prob; in operator /()
41 return Freq; in operator /()
44 BlockFrequency &BlockFrequency::operator+=(const BlockFrequency &Freq) { in operator +=() argument
45 uint64_t Before = Freq.Frequency; in operator +=()
46 Frequency += Freq.Frequency; in operator +=()
57 BlockFrequency Freq(Frequency); in operator +() local
[all …]
/external/lzma/C/
DPpmd7.c310 s->Freq = 1; in RestartModel()
378 upState.Freq = ONE_STATE(c)->Freq; in CreateSuccessors()
384 cf = s->Freq - 1; in CreateSuccessors()
386 … upState.Freq = (Byte)(1 + ((2 * cf <= s0) ? (5 * cf > s0) : ((2 * cf + 3 * s0 - 1) / (2 * s0)))); in CreateSuccessors()
427 if (p->FoundState->Freq < MAX_FREQ / 4 && p->MinContext->Suffix != 0) in UpdateModel()
434 if (s->Freq < 32) in UpdateModel()
435 s->Freq++; in UpdateModel()
443 if (s[0].Freq >= s[-1].Freq) in UpdateModel()
449 if (s->Freq < MAX_FREQ - 9) in UpdateModel()
451 s->Freq += 2; in UpdateModel()
[all …]
DPpmd7Dec.c87 if ((count = rc->GetThreshold(rc, p->MinContext->SummFreq)) < (hiCnt = s->Freq)) in Ppmd7_DecodeSymbol()
90 rc->Decode(rc, 0, s->Freq); in Ppmd7_DecodeSymbol()
100 if ((hiCnt += (++s)->Freq) > count) in Ppmd7_DecodeSymbol()
103 rc->Decode(rc, hiCnt - s->Freq, s->Freq); in Ppmd7_DecodeSymbol()
158 hiCnt += (s->Freq & k); in Ppmd7_DecodeSymbol()
172 for (hiCnt = 0; (hiCnt += (*pps)->Freq) <= count; pps++); in Ppmd7_DecodeSymbol()
174 rc->Decode(rc, hiCnt - s->Freq, s->Freq); in Ppmd7_DecodeSymbol()
DPpmd7Enc.c87 RangeEnc_Encode(rc, 0, s->Freq, p->MinContext->SummFreq); in Ppmd7_EncodeSymbol()
93 sum = s->Freq; in Ppmd7_EncodeSymbol()
99 RangeEnc_Encode(rc, sum, s->Freq, p->MinContext->SummFreq); in Ppmd7_EncodeSymbol()
104 sum += s->Freq; in Ppmd7_EncodeSymbol()
166 sum += (s->Freq & (int)(MASK(s->Symbol))); in Ppmd7_EncodeSymbol()
170 RangeEnc_Encode(rc, low, s1->Freq, sum + escFreq); in Ppmd7_EncodeSymbol()
176 sum += (s->Freq & (int)(MASK(cur))); in Ppmd7_EncodeSymbol()
DPpmd.h46 Byte Freq; member
DPpmd7.h89 &p->BinSumm[Ppmd7Context_OneState(p->MinContext)->Freq - 1][p->PrevSuccess + \
/external/llvm/lib/CodeGen/
DSpillPlacement.cpp79 uint64_t Freq = Entry.getFrequency(); in setThreshold() local
80 uint64_t Scaled = (Freq >> 13) + bool(Freq & (1 << 12)); in setThreshold()
253 BlockFrequency Freq = BlockFrequencies[I->Number]; in addConstraints() local
259 nodes[ib].addBias(Freq, I->Entry); in addConstraints()
266 nodes[ob].addBias(Freq, I->Exit); in addConstraints()
275 BlockFrequency Freq = BlockFrequencies[*I]; in addPrefSpill() local
277 Freq += Freq; in addPrefSpill()
282 nodes[ib].addBias(Freq, PrefSpill); in addPrefSpill()
283 nodes[ob].addBias(Freq, PrefSpill); in addPrefSpill()
303 BlockFrequency Freq = BlockFrequencies[Number]; in addLinks() local
[all …]
DMachineBlockFrequencyInfo.cpp181 const BlockFrequency Freq) const { in printBlockFreq()
182 return MBFI ? MBFI->printBlockFreq(OS, Freq) : OS; in printBlockFreq()
DMachineBlockPlacement.cpp1070 BlockFrequency Freq = MBFI->getBlockFreq(*BI); in buildCFGChains() local
1071 if (Freq < WeightedEntryFreq) in buildCFGChains()
1078 if (Freq < (LoopHeaderFreq * ColdProb)) in buildCFGChains()
1098 if (LayoutEdgeFreq <= (Freq * ColdProb)) in buildCFGChains()
DLiveIntervalAnalysis.cpp639 BlockFrequency Freq = MBFI->getBlockFreq(MI->getParent()); in getSpillWeight() local
641 return (isDef + isUse) * (Freq.getFrequency() * Scale); in getSpillWeight()
/external/qemu/distrib/zlib-1.2.8/
Dtrees.c415 for (n = 0; n < L_CODES; n++) s->dyn_ltree[n].Freq = 0;
416 for (n = 0; n < D_CODES; n++) s->dyn_dtree[n].Freq = 0;
417 for (n = 0; n < BL_CODES; n++) s->bl_tree[n].Freq = 0;
419 s->dyn_ltree[END_BLOCK].Freq = 1;
444 (tree[n].Freq < tree[m].Freq || \
445 (tree[n].Freq == tree[m].Freq && depth[n] <= depth[m]))
524 f = tree[n].Freq;
559 *(long)tree[m].Freq;
635 if (tree[n].Freq != 0) {
650 tree[node].Freq = 1;
[all …]
Ddeflate.h76 #define Freq fc.freq macro
327 s->dyn_ltree[cc].Freq++; \
336 s->dyn_ltree[_length_code[len]+LITERALS+1].Freq++; \
337 s->dyn_dtree[d_code(dist)].Freq++; \
/external/chromium_org/third_party/zlib/
Dtrees.c421 for (n = 0; n < L_CODES; n++) s->dyn_ltree[n].Freq = 0;
422 for (n = 0; n < D_CODES; n++) s->dyn_dtree[n].Freq = 0;
423 for (n = 0; n < BL_CODES; n++) s->bl_tree[n].Freq = 0;
425 s->dyn_ltree[END_BLOCK].Freq = 1;
450 (tree[n].Freq < tree[m].Freq || \
451 (tree[n].Freq == tree[m].Freq && depth[n] <= depth[m]))
530 f = tree[n].Freq;
565 *(long)tree[m].Freq;
641 if (tree[n].Freq != 0) {
656 tree[node].Freq = 1;
[all …]
Ddeflate.h73 #define Freq fc.freq macro
328 s->dyn_ltree[cc].Freq++; \
337 s->dyn_ltree[_length_code[len]+LITERALS+1].Freq++; \
338 s->dyn_dtree[d_code(dist)].Freq++; \
/external/zlib/src/
Dtrees.c415 for (n = 0; n < L_CODES; n++) s->dyn_ltree[n].Freq = 0;
416 for (n = 0; n < D_CODES; n++) s->dyn_dtree[n].Freq = 0;
417 for (n = 0; n < BL_CODES; n++) s->bl_tree[n].Freq = 0;
419 s->dyn_ltree[END_BLOCK].Freq = 1;
444 (tree[n].Freq < tree[m].Freq || \
445 (tree[n].Freq == tree[m].Freq && depth[n] <= depth[m]))
524 f = tree[n].Freq;
559 *(long)tree[m].Freq;
635 if (tree[n].Freq != 0) {
650 tree[node].Freq = 1;
[all …]
Ddeflate.h76 #define Freq fc.freq macro
327 s->dyn_ltree[cc].Freq++; \
336 s->dyn_ltree[_length_code[len]+LITERALS+1].Freq++; \
337 s->dyn_dtree[d_code(dist)].Freq++; \
/external/pdfium/core/src/fxcodec/fx_zlib/zlib_v128/
Dfx_zlib_trees.c415 for (n = 0; n < L_CODES; n++) s->dyn_ltree[n].Freq = 0; in init_block()
416 for (n = 0; n < D_CODES; n++) s->dyn_dtree[n].Freq = 0; in init_block()
417 for (n = 0; n < BL_CODES; n++) s->bl_tree[n].Freq = 0; in init_block()
419 s->dyn_ltree[END_BLOCK].Freq = 1; in init_block()
444 (tree[n].Freq < tree[m].Freq || \
445 (tree[n].Freq == tree[m].Freq && depth[n] <= depth[m]))
524 f = tree[n].Freq; in gen_bitlen()
559 *(long)tree[m].Freq; in gen_bitlen()
635 if (tree[n].Freq != 0) { in build_tree()
650 tree[node].Freq = 1; in build_tree()
[all …]
Ddeflate.h76 #define Freq fc.freq macro
327 s->dyn_ltree[cc].Freq++; \
336 s->dyn_ltree[_length_code[len]+LITERALS+1].Freq++; \
337 s->dyn_dtree[d_code(dist)].Freq++; \
/external/llvm/include/llvm/Support/
DBlockFrequency.h29 BlockFrequency(uint64_t Freq = 0) : Frequency(Freq) { } in Frequency() argument
49 BlockFrequency &operator+=(const BlockFrequency &Freq);
50 const BlockFrequency operator+(const BlockFrequency &Freq) const;
/external/llvm/lib/Analysis/
DBlockFrequencyInfo.cpp170 printBlockFreq(raw_ostream &OS, const BlockFrequency Freq) const { in printBlockFreq()
171 return BFI ? BFI->printBlockFreq(OS, Freq) : OS; in printBlockFreq()
DBlockFrequencyInfoImpl.cpp536 const BlockFrequency &Freq) const { in printBlockFreq()
537 Scaled64 Block(Freq.getFrequency(), 0); in printBlockFreq()
/external/llvm/include/llvm/CodeGen/
DMachineBlockFrequencyInfo.h58 raw_ostream &printBlockFreq(raw_ostream &OS, const BlockFrequency Freq) const;
/external/llvm/include/llvm/Analysis/
DBlockFrequencyInfo.h56 raw_ostream &printBlockFreq(raw_ostream &OS, const BlockFrequency Freq) const;
/external/llvm/tools/llvm-bcanalyzer/
Dllvm-bcanalyzer.cpp591 if (unsigned Freq = Stats.CodeFreq[i].NumInstances) in AnalyzeBitcode() local
592 FreqPairs.push_back(std::make_pair(Freq, i)); in AnalyzeBitcode()

12