Home
last modified time | relevance | path

Searched refs:Prob (Results 1 – 24 of 24) sorted by relevance

/external/lzma/CS/7zip/Compress/RangeCoder/
DRangeCoderBit.cs13 uint Prob; field
15 public void Init() { Prob = kBitModelTotal >> 1; } in Init()
20 Prob += (kBitModelTotal - Prob) >> kNumMoveBits; in UpdateModel()
22 Prob -= (Prob) >> kNumMoveBits; in UpdateModel()
29 uint newBound = (encoder.Range >> kNumBitModelTotalBits) * Prob; in Encode()
33 Prob += (kBitModelTotal - Prob) >> kNumMoveBits; in Encode()
39 Prob -= (Prob) >> kNumMoveBits; in Encode()
65 …return ProbPrices[(((Prob - symbol) ^ ((-(int)symbol))) & (kBitModelTotal - 1)) >> kNumMoveReducin… in GetPrice()
67 public uint GetPrice0() { return ProbPrices[Prob >> kNumMoveReducingBits]; } in GetPrice0()
68 public uint GetPrice1() { return ProbPrices[(kBitModelTotal - Prob) >> kNumMoveReducingBits]; } in GetPrice1()
[all …]
/external/lzma/CPP/7zip/Compress/
DRangeCoderBit.h26 UInt32 Prob;
34 Prob += (kBitModelTotal - Prob) >> numMoveBits; in UpdateModel()
36 Prob -= (Prob) >> numMoveBits; in UpdateModel()
39 void Init() { Prob = kBitModelTotal / 2; } in Init()
52 UInt32 newBound = (encoder->Range >> kNumBitModelTotalBits) * this->Prob; in Encode()
56 this->Prob += (kBitModelTotal - this->Prob) >> numMoveBits; in Encode()
62 this->Prob -= (this->Prob) >> numMoveBits; in Encode()
72 …return ProbPrices[(this->Prob ^ ((-(int)(Int32)symbol)) & (kBitModelTotal - 1)) >> kNumMoveReducin… in GetPrice()
74 UInt32 GetPrice0() const { return ProbPrices[this->Prob >> kNumMoveReducingBits]; } in GetPrice0()
75 …UInt32 GetPrice1() const { return ProbPrices[(this->Prob ^ (kBitModelTotal - 1)) >> kNumMoveReduci… in GetPrice1()
[all …]
/external/llvm/unittests/Support/
DBlockFrequencyTest.cpp22 BranchProbability Prob(UINT32_MAX / 3, UINT32_MAX); in TEST() local
23 Freq *= Prob; in TEST()
27 Freq *= Prob; in TEST()
33 BranchProbability Prob(UINT32_MAX, UINT32_MAX); in TEST() local
34 Freq *= Prob; in TEST()
38 Freq *= Prob; in TEST()
44 BranchProbability Prob(3000000, 9000000); in TEST() local
45 Freq *= Prob; in TEST()
49 Freq *= Prob; in TEST()
55 BranchProbability Prob(UINT32_MAX / 2, UINT32_MAX); in TEST() local
[all …]
DBranchProbabilityTest.cpp198 uint32_t Prob[2]; in TEST() member
286 EXPECT_EQ(T.Result, BP(T.Prob[0], T.Prob[1]).scale(T.Num)); in TEST()
/external/llvm/lib/Support/
DBlockFrequency.cpp20 BlockFrequency &BlockFrequency::operator*=(BranchProbability Prob) { in operator *=() argument
21 Frequency = Prob.scale(Frequency); in operator *=()
25 BlockFrequency BlockFrequency::operator*(BranchProbability Prob) const { in operator *()
27 Freq *= Prob; in operator *()
31 BlockFrequency &BlockFrequency::operator/=(BranchProbability Prob) { in operator /=() argument
32 Frequency = Prob.scaleByInverse(Frequency); in operator /=()
36 BlockFrequency BlockFrequency::operator/(BranchProbability Prob) const { in operator /()
38 Freq /= Prob; in operator /()
/external/llvm/include/llvm/Support/
DBranchProbability.h129 BranchProbability Prob(*this);
130 return Prob += RHS;
134 BranchProbability Prob(*this);
135 return Prob -= RHS;
139 BranchProbability Prob(*this);
140 return Prob *= RHS;
144 BranchProbability Prob(*this);
145 return Prob /= RHS;
176 inline raw_ostream &operator<<(raw_ostream &OS, BranchProbability Prob) {
177 return Prob.print(OS);
DBlockFrequency.h40 BlockFrequency &operator*=(BranchProbability Prob);
41 BlockFrequency operator*(BranchProbability Prob) const;
45 BlockFrequency &operator/=(BranchProbability Prob);
46 BlockFrequency operator/(BranchProbability Prob) const;
/external/llvm/lib/CodeGen/
DMachineBranchProbabilityInfo.cpp59 auto Prob = getEdgeProbability(MBB, I); in getHotSucc() local
60 if (Prob > MaxProb) { in getHotSucc()
61 MaxProb = Prob; in getHotSucc()
77 const BranchProbability Prob = getEdgeProbability(Src, Dst); in printEdgeProbability() local
79 << " probability is " << Prob in printEdgeProbability()
DMachineBasicBlock.cpp513 for (auto Prob : Probs) in validateSuccProbs() local
514 Sum += Prob.getNumerator(); in validateSuccProbs()
525 BranchProbability Prob) { in addSuccessor() argument
529 Probs.push_back(Prob); in addSuccessor()
625 auto Prob = *FromMBB->Probs.begin(); in transferSuccessors() local
626 addSuccessor(Succ, Prob); in transferSuccessors()
642 auto Prob = *FromMBB->Probs.begin(); in transferSuccessorsAndUpdatePHIs() local
643 addSuccessor(Succ, Prob); in transferSuccessorsAndUpdatePHIs()
1138 const auto &Prob = *getProbabilityIterator(Succ); in getSuccProbability() local
1139 if (Prob.isUnknown()) { in getSuccProbability()
[all …]
DBranchFolding.cpp1110 auto Prob = BranchProbability::getBranchProbability( in setCommonTailEdgeWeights() local
1112 TailMBB.setSuccProbability(SuccI, Prob); in setCommonTailEdgeWeights()
/external/lzma/Java/SevenZip/Compression/RangeCoder/
DEncoder.java139 static public int GetPrice(int Prob, int symbol) in GetPrice() argument
141 …return ProbPrices[(((Prob - symbol) ^ ((-symbol))) & (kBitModelTotal - 1)) >>> kNumMoveReducingBit… in GetPrice()
143 static public int GetPrice0(int Prob) in GetPrice0() argument
145 return ProbPrices[Prob >>> kNumMoveReducingBits]; in GetPrice0()
147 static public int GetPrice1(int Prob) in GetPrice1() argument
149 return ProbPrices[(kBitModelTotal - Prob) >>> kNumMoveReducingBits]; in GetPrice1()
/external/libgdx/gdx/src/com/badlogic/gdx/utils/compression/rangecoder/
DEncoder.java129 static public int GetPrice (int Prob, int symbol) { in GetPrice() argument
130 …return ProbPrices[(((Prob - symbol) ^ ((-symbol))) & (kBitModelTotal - 1)) >>> kNumMoveReducingBit… in GetPrice()
133 static public int GetPrice0 (int Prob) { in GetPrice0() argument
134 return ProbPrices[Prob >>> kNumMoveReducingBits]; in GetPrice0()
137 static public int GetPrice1 (int Prob) { in GetPrice1() argument
138 return ProbPrices[(kBitModelTotal - Prob) >>> kNumMoveReducingBits]; in GetPrice1()
/external/llvm/lib/CodeGen/SelectionDAG/
DSelectionDAGBuilder.h157 BranchProbability Prob; member
160 MachineBasicBlock *MBB, BranchProbability Prob) { in range()
166 C.Prob = Prob; in range()
172 BranchProbability Prob) { in jumpTable()
178 C.Prob = Prob; in jumpTable()
183 unsigned BTCasesIndex, BranchProbability Prob) { in bitTests()
189 C.Prob = Prob; in bitTests()
204 BranchProbability Prob): in CaseBits()
205 Mask(mask), BB(bb), Bits(bits), ExtraProb(Prob) { } in CaseBits()
275 BranchProbability Prob): in BitTestCase()
[all …]
DSelectionDAGBuilder.cpp1238 BranchProbability Prob, in findUnwindDestinations() argument
1251 UnwindDests.emplace_back(FuncInfo.MBBMap[EHPadBB], Prob); in findUnwindDestinations()
1256 UnwindDests.emplace_back(FuncInfo.MBBMap[EHPadBB], Prob); in findUnwindDestinations()
1262 UnwindDests.emplace_back(FuncInfo.MBBMap[CatchPadBB], Prob); in findUnwindDestinations()
1274 Prob *= BPI->getEdgeProbability(EHPadBB, NewEHPadBB); in findUnwindDestinations()
1490 BranchProbability Prob) { in addSuccessorWithProb() argument
1494 if (Prob.isUnknown()) in addSuccessorWithProb()
1495 Prob = getEdgeProbability(Src, Dst); in addSuccessorWithProb()
1496 Src->addSuccessor(Dst, Prob); in addSuccessorWithProb()
2024 addSuccessorWithProb(SwitchBB, MBB, B.Prob); in visitBitTestHeader()
[all …]
DSelectionDAGISel.cpp1528 BranchProbability UnhandledProb = SDB->BitTestCases[i].Prob; in FinishBasicBlock()
/external/opencv/cv/src/
Dcvcondens.cpp237 float Prob = 1.f / conDens->SamplesNum; in cvConDensInitSampleSet() local
272 conDens->flConfidence[j] = Prob; in cvConDensInitSampleSet()
/external/llvm/lib/Target/Mips/
DMipsDelaySlotFiller.cpp803 auto &Prob = getAnalysis<MachineBranchProbabilityInfo>(); in selectSuccBB() local
807 return Prob.getEdgeProbability(&B, Dst0) < in selectSuccBB()
808 Prob.getEdgeProbability(&B, Dst1); in selectSuccBB()
/external/llvm/lib/Analysis/
DBranchProbabilityInfo.cpp671 const BranchProbability Prob = getEdgeProbability(Src, Dst); in printEdgeProbability() local
673 << " probability is " << Prob in printEdgeProbability()
/external/llvm/include/llvm/CodeGen/
DMachineBasicBlock.h445 BranchProbability Prob = BranchProbability::getUnknown());
454 void setSuccProbability(succ_iterator I, BranchProbability Prob);
/external/llvm/lib/Target/Hexagon/
DHexagonEarlyIfConv.cpp478 BranchProbability Prob(9, 10); in isProfitable() local
479 if (MBPI->getEdgeProbability(FP.SplitB, FP.TrueB) > Prob) in isProfitable()
481 if (MBPI->getEdgeProbability(FP.SplitB, FP.FalseB) > Prob) in isProfitable()
/external/libxml2/result/HTML/
Dtest3.html.sax19 SAX.characters(Component Package diagram Prob, 39)
/external/llvm/include/llvm/Analysis/
DBlockFrequencyInfoImpl.h1178 inline uint32_t getWeightFromBranchProb(const BranchProbability Prob) {
1179 return Prob.getNumerator();
/external/llvm/lib/Target/X86/
DREADME-SSE.txt142 jne L_B1.24 # Prob 5% #91.13
/external/llvm/lib/Target/
DREADME.txt290 jb ..B1.70 # Prob 99% #108.2