/external/llvm/unittests/Support/ |
D | BlockFrequencyTest.cpp | 21 BlockFrequency Freq(1); in TEST() local 23 Freq *= Prob; in TEST() 24 EXPECT_EQ(Freq.getFrequency(), 0u); in TEST() 26 Freq = BlockFrequency(1); in TEST() 27 Freq *= Prob; in TEST() 28 EXPECT_EQ(Freq.getFrequency(), 0u); in TEST() 32 BlockFrequency Freq(1); in TEST() local 34 Freq *= Prob; in TEST() 35 EXPECT_EQ(Freq.getFrequency(), 1u); in TEST() 37 Freq = BlockFrequency(1); in TEST() [all …]
|
/external/llvm/lib/Support/ |
D | BlockFrequency.cpp | 28 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/ |
D | Ppmd7.c | 310 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 …]
|
D | Ppmd7Dec.c | 87 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()
|
D | Ppmd7Enc.c | 87 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()
|
D | Ppmd.h | 46 Byte Freq; member
|
D | Ppmd7.h | 89 &p->BinSumm[Ppmd7Context_OneState(p->MinContext)->Freq - 1][p->PrevSuccess + \
|
/external/llvm/lib/CodeGen/ |
D | SpillPlacement.cpp | 235 uint64_t Freq = Entry.getFrequency(); in setThreshold() local 236 uint64_t Scaled = (Freq >> 13) + bool(Freq & (1 << 12)); in setThreshold() 245 BlockFrequency Freq = BlockFrequencies[I->Number]; in addConstraints() local 251 nodes[ib].addBias(Freq, I->Entry); in addConstraints() 258 nodes[ob].addBias(Freq, I->Exit); in addConstraints() 267 BlockFrequency Freq = BlockFrequencies[*I]; in addPrefSpill() local 269 Freq += Freq; in addPrefSpill() 274 nodes[ib].addBias(Freq, PrefSpill); in addPrefSpill() 275 nodes[ob].addBias(Freq, PrefSpill); in addPrefSpill() 295 BlockFrequency Freq = BlockFrequencies[Number]; in addLinks() local [all …]
|
D | MachineBlockFrequencyInfo.cpp | 181 const BlockFrequency Freq) const { in printBlockFreq() 182 return MBFI ? MBFI->printBlockFreq(OS, Freq) : OS; in printBlockFreq()
|
D | MachineBlockPlacement.cpp | 1093 BlockFrequency Freq = MBFI->getBlockFreq(ChainBB); in buildCFGChains() local 1094 if (Freq < WeightedEntryFreq) in buildCFGChains() 1101 if (Freq < (LoopHeaderFreq * ColdProb)) in buildCFGChains() 1123 if (LayoutEdgeFreq <= (Freq * ColdProb)) in buildCFGChains()
|
D | RegAllocGreedy.cpp | 391 BlockFrequency Freq; member 397 HintInfo(BlockFrequency Freq, unsigned Reg, unsigned PhysReg) in HintInfo() 398 : Freq(Freq), Reg(Reg), PhysReg(PhysReg) {} in HintInfo() 2304 Cost += Info.Freq; in getBrokenHintFreq()
|
D | LiveIntervalAnalysis.cpp | 814 BlockFrequency Freq = MBFI->getBlockFreq(MI->getParent()); in getSpillWeight() local 816 return (isDef + isUse) * (Freq.getFrequency() * Scale); in getSpillWeight()
|
/external/zlib/src/ |
D | trees.c | 415 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 …]
|
D | deflate.h | 76 #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/ |
D | fx_zlib_trees.c | 415 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 …]
|
D | deflate.h | 76 #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/ |
D | BlockFrequency.h | 29 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/ |
D | BlockFrequencyInfo.cpp | 170 printBlockFreq(raw_ostream &OS, const BlockFrequency Freq) const { in printBlockFreq() 171 return BFI ? BFI->printBlockFreq(OS, Freq) : OS; in printBlockFreq()
|
D | BlockFrequencyInfoImpl.cpp | 547 const BlockFrequency &Freq) const { in printBlockFreq() 548 Scaled64 Block(Freq.getFrequency(), 0); in printBlockFreq()
|
/external/llvm/include/llvm/CodeGen/ |
D | MachineBlockFrequencyInfo.h | 58 raw_ostream &printBlockFreq(raw_ostream &OS, const BlockFrequency Freq) const;
|
/external/llvm/include/llvm/Analysis/ |
D | BlockFrequencyInfo.h | 56 raw_ostream &printBlockFreq(raw_ostream &OS, const BlockFrequency Freq) const;
|
D | BlockFrequencyInfoImpl.h | 461 const BlockFrequency &Freq) const;
|
/external/llvm/tools/llvm-bcanalyzer/ |
D | llvm-bcanalyzer.cpp | 648 if (unsigned Freq = Stats.CodeFreq[i].NumInstances) in AnalyzeBitcode() local 649 FreqPairs.push_back(std::make_pair(Freq, i)); in AnalyzeBitcode()
|