/frameworks/av/media/libstagefright/codecs/on2/h264dec/omxdl/reference/vc/m4p10/src/ |
armVCM4P10_PredictIntraDC4x4.c | 51 int x, y, Sum=0, Count = 0; 57 Sum += pSrcLeft[y*leftStep]; 65 Sum += pSrcAbove[x]; 71 Sum = 128; 75 Sum = (Sum + 2) >> 2; 79 Sum = (Sum + 4) >> 3; 85 pDst[y*dstStep+x] = (OMX_U8)Sum;
|
omxVCM4P10_PredictIntraChroma_8x8.c | 51 int x, y, Sum=0, Count = 0; 57 Sum += pSrcAbove[x]; 65 Sum += pSrcLeft[y*leftStep]; 71 Sum = 128; 75 Sum = (Sum + 2) >> 2; 81 pDst[y*dstStep+x] = (OMX_U8)Sum; 113 int x, y, Sum=0, Count = 0; 119 Sum += pSrcLeft[y*leftStep]; 127 Sum += pSrcAbove[x] [all...] |
omxVCM4P10_PredictIntra_16x16.c | 89 int x,y,Sum,Count; 132 Sum = 0; 138 Sum += pSrcLeft[y*leftStep]; 146 Sum += pSrcAbove[x]; 152 Sum = 128; 156 Sum = (Sum + 8) >> 4; 160 Sum = (Sum + 16) >> 5; 166 pDst[y*dstStep+x] = (OMX_U8)Sum; [all...] |
/external/llvm/lib/CodeGen/ |
MachineBranchProbabilityInfo.cpp | 33 // First we compute the sum with 64-bits of precision, ensuring that cannot 37 uint64_t Sum = 0; 42 Sum += Weight; 45 // If the computed sum fits in 32-bits, we're done. 46 if (Sum <= UINT32_MAX) 47 return Sum; 50 // re-sum with that scale applied. 51 assert((Sum / UINT32_MAX) < UINT32_MAX); 52 Scale = (Sum / UINT32_MAX) + 1; 53 Sum = 0 [all...] |
SpillPlacement.cpp | 91 /// sum can be less than 2 when the variable is not live into / out of some 103 // Actually, we must spill if Bias < sum(weights). 104 // It may be worth it to compute the weight sum here? 147 // Compute the weighted sum of inputs. 148 float Sum = Bias; 150 Sum += I->first * nodes[I->second].Value; 152 // The weighted sum is going to be in the range [-2;2]. Ideally, we should 153 // simply set Value = sign(Sum), but we will add a dead zone around 0 for 157 // 2. It helps tame rounding errors when the links nominally sum to 0. 160 if (Sum < -Thres [all...] |
/external/llvm/lib/Support/ |
IntervalMap.cpp | 132 unsigned Sum = 0; 134 Sum += NewSize[n] = PerNode + (n < Extra); 135 if (PosPair.first == Nodes && Sum > Position) 136 PosPair = IdxPair(n, Position - (Sum - NewSize[n])); 138 assert(Sum == Elements + Grow && "Bad distribution sum"); 148 Sum = 0; 151 Sum += NewSize[n]; 153 assert(Sum == Elements && "Bad distribution sum"); [all...] |
/external/llvm/unittests/ADT/ |
VariadicFunctionTest.cpp | 38 // Defines a variadic function Sum(), whose arguments and return value 48 const VariadicFunction<long, int, SumImpl> Sum = {}; 51 EXPECT_EQ(0, Sum()); 52 EXPECT_EQ(1, Sum(1)); 53 EXPECT_EQ(12, Sum(10, 2)); 54 EXPECT_EQ(1234567, Sum(1000000, 200000, 30000, 4000, 500, 60, 7));
|
/external/opencv/cv/src/ |
cvcondens.cpp | 162 float Sum = 0; 179 Sum += ConDens->flConfidence[i]; 180 ConDens->flCumulative[i] = Sum; 185 icvScaleVector_32f( ConDens->Temp, ConDens->Temp, ConDens->DP, 1.f / Sum ); 188 Sum = Sum / ConDens->SamplesNum; 194 while( (ConDens->flCumulative[j] <= (float) i * Sum)&&(j<ConDens->SamplesNum-1))
|
/external/llvm/examples/Fibonacci/ |
fibonacci.cpp | 82 Value *Sum = BinaryOperator::CreateAdd(CallFibX1, CallFibX2, 86 ReturnInst::Create(Context, Sum, RecurseBB);
|
/external/llvm/lib/Analysis/ |
AliasAnalysisCounter.cpp | 43 void printLine(const char *Desc, unsigned Val, unsigned Sum) { 45 << Val*100/Sum << "%)\n";
|
BranchProbabilityInfo.cpp | 441 uint32_t Sum = 0; 445 uint32_t PrevSum = Sum; 447 Sum += Weight; 448 assert(Sum > PrevSum); (void) PrevSum; 451 return Sum; 462 uint32_t Sum = 0; 469 uint32_t PrevSum = Sum; 471 Sum += Weight; 472 assert(Sum > PrevSum); (void) PrevSum; 481 if (BranchProbability(MaxWeight, Sum) > BranchProbability(4, 5) [all...] |
ScalarEvolutionExpander.cpp | 319 const SCEV *Sum = NoAddRecs.empty() ? 323 // the sum into a single value, so just use that. 325 if (const SCEVAddExpr *Add = dyn_cast<SCEVAddExpr>(Sum)) 327 else if (!Sum->isZero()) 328 Ops.push_back(Sum); 728 Value *Sum = 0; 733 if (!Sum) { 735 Sum = expand(Op); 737 } else if (PointerType *PTy = dyn_cast<PointerType>(Sum->getType())) { 738 // The running sum expression is a pointer. Try to form a getelementpt [all...] |
DependenceAnalysis.cpp | 550 const SCEV *Sum = SE->getAddExpr(A1X1, B1Y1); 551 if (isKnownPredicate(CmpInst::ICMP_EQ, Sum, Y->getC())) 553 if (isKnownPredicate(CmpInst::ICMP_NE, Sum, Y->getC())) { [all...] |
/external/llvm/unittests/Analysis/ |
ScalarEvolutionTest.cpp | 146 SmallVector<const SCEV *, 16> Sum; 147 Sum.push_back(SE.getMulExpr(A[0], B[0])); 148 EXPECT_EQ(Product->getOperand(0), SE.getAddExpr(Sum)); 149 Sum.clear(); 154 Sum.push_back(SE.getMulExpr(A[1], B[0])); 155 Sum.push_back(SE.getMulExpr(A[0], B[1])); 156 Sum.push_back(SE.getMulExpr(A[1], B[1])); 157 EXPECT_EQ(Product->getOperand(1), SE.getAddExpr(Sum)); 158 Sum.clear(); 160 Sum.push_back(SE.getMulExpr(A[2], B[0])) [all...] |
/external/llvm/examples/ParallelJIT/ |
ParallelJIT.cpp | 106 Value *Sum = 110 ReturnInst::Create(M->getContext(), Sum, RecurseBB);
|
/external/llvm/lib/Target/R600/ |
SIInsertWaits.cpp | 198 // Get the hardware counter increments and sum them up 200 unsigned Sum = 0; 204 Sum += Increment.Array[i]; 208 if (Sum == 0)
|
/external/v8/test/cctest/ |
test-compiler.cc | 196 static double Sum(int n) { 210 TEST(Sum) { 213 CHECK_EQ(5050.0, Sum(100)); 251 "function Cons2(x, y) { this.sum = x + y; }\n" 252 "if (new Cons2(3,4).sum == 7) r+=256;"; // 256
|
/external/chromium/base/ |
bind_unittest.cc | 158 int Sum(int a, int b, int c, int d, int e, int f) { 226 Callback<int(void)> c0 = Bind(&Sum, 32, 16, 8, 4, 2, 1); 229 Callback<int(int)> c1 = Bind(&Sum, 32, 16, 8, 4, 2); 232 Callback<int(int,int)> c2 = Bind(&Sum, 32, 16, 8, 4); 235 Callback<int(int,int,int)> c3 = Bind(&Sum, 32, 16, 8); 238 Callback<int(int,int,int,int)> c4 = Bind(&Sum, 32, 16); 241 Callback<int(int,int,int,int,int)> c5 = Bind(&Sum, 32); 244 Callback<int(int,int,int,int,int,int)> c6 = Bind(&Sum);
|
/external/openfst/src/include/fst/ |
accumulator.h | 56 Weight Sum(Weight w, Weight v) { 61 Weight Sum(Weight w, ArcIterator *aiter, ssize_t begin, 63 Weight sum = w; local 66 sum = Plus(sum, aiter->Value().weight); 67 return sum; 95 Weight Sum(Weight w, Weight v) { 100 Weight Sum(Weight w, ArcIterator *aiter, ssize_t begin, 102 Weight sum = w; local 105 sum = LogPlus(sum, aiter->Value().weight) 261 double sum = FloatLimits<double>::PosInfinity(); local 501 Weight sum = w; local [all...] |
/external/clang/test/SemaCXX/ |
constant-expression-cxx11.cpp | 123 constexpr int Sum(int a = 0, const int &b = 0, const int *c = &z, char d = 0) { 129 static_assert(Sum() == 0, ""); 130 static_assert(Sum(1) == 1, ""); 131 static_assert(Sum(1, four) == 5, ""); 132 static_assert(Sum(1, eight, &twentyseven) == 36, ""); 133 static_assert(Sum(1, 2, &four, eight) == 15, ""); 422 constexpr auto Sum(Iter begin, Iter end) -> decltype(+*begin) { 423 return begin == end ? 0 : *begin + Sum(begin+1, end); 428 constexpr int sum_xs = Sum(begin(xs), end(xs)); [all...] |
/external/harfbuzz_ng/src/ |
hb-open-type-private.hh | 647 uint32_t Sum = 0L; 651 Sum += *Table++; 652 return Sum;
|
/external/libvpx/libvpx/vp8/encoder/ |
bitstream.c | [all...] |
/external/llvm/lib/Transforms/InstCombine/ |
InstructionCombining.cpp | [all...] |
/external/llvm/lib/CodeGen/SelectionDAG/ |
LegalizeIntegerTypes.cpp | 439 // Modified the sum result - switch anything that used the old sum to use [all...] |
/external/llvm/lib/Transforms/Scalar/ |
LoopStrengthReduce.cpp | 337 const SCEV *Sum = SE.getAddExpr(Good); 338 if (!Sum->isZero()) 339 BaseRegs.push_back(Sum); 343 const SCEV *Sum = SE.getAddExpr(Bad); 344 if (!Sum->isZero()) 345 BaseRegs.push_back(Sum); [all...] |