Searched refs:Zero (Results 1 - 25 of 209) sorted by relevance

123456789

/external/llvm/unittests/VMCore/
H A DConstantsTest.cpp21 Constant* Zero = ConstantInt::get(Int1, 0); local
28 EXPECT_EQ(Zero, ConstantExpr::getAdd(One, One));
32 EXPECT_EQ(Zero, ConstantExpr::getAdd(NegOne, One));
36 EXPECT_EQ(Zero, ConstantExpr::getAdd(NegOne, NegOne));
40 EXPECT_EQ(Zero, ConstantExpr::getSub(NegOne, One));
44 EXPECT_EQ(Zero, ConstantExpr::getSub(One, NegOne));
48 EXPECT_EQ(Zero, ConstantExpr::getSub(One, One));
56 EXPECT_EQ(One, ConstantExpr::getShl(One, Zero));
88 EXPECT_EQ(Zero, ConstantExpr::getSRem(NegOne, One));
92 EXPECT_EQ(Zero, ConstantExp
[all...]
/external/srec/tools/thirdparty/OpenFst/fst/lib/
H A Dreweight.h46 potential.push_back(Weight::Zero());
66 if ((potential[state] == Weight::Zero()) ||
67 (potential[arc.nextstate] == Weight::Zero()))
70 && (potential[state] != Weight::Zero()))
74 && (potential[arc.nextstate] != Weight::Zero()))
80 && (potential[state] != Weight::Zero()))
88 (potential[fst->Start()] != Weight::Zero())) {
H A Dprune.h74 idistance = new vector<Weight>(ns, Weight::Zero());
77 idistance->resize(ns, Weight::Zero());
81 fdistance = new vector<Weight>(ns, Weight::Zero());
84 fdistance->resize(ns, Weight::Zero());
110 fst->SetFinal(state, Weight::Zero());
174 fdistance->push_back(Weight::Zero());
182 idistance->push_back(Weight::Zero());
184 fdistance->push_back(Weight::Zero());
204 idistance->push_back(Weight::Zero());
206 fdistance->push_back(Weight::Zero());
[all...]
H A Dshortest-distance.h115 distance_->push_back(Weight::Zero());
116 rdistance_.push_back(Weight::Zero());
134 distance_->push_back(Weight::Zero());
135 rdistance_.push_back(Weight::Zero());
140 rdistance_[s] = Weight::Zero();
145 if (!arc_filter_(arc) || arc.weight == Weight::Zero())
148 distance_->push_back(Weight::Zero());
149 rdistance_.push_back(Weight::Zero());
156 (*distance_)[arc.nextstate] = Weight::Zero();
157 rdistance_[arc.nextstate] = Weight::Zero();
[all...]
H A Dstring-weight.h83 static const StringWeight<L, S> &Zero() { function in class:fst::StringWeight
339 w = StringWeight<L, S>::Zero();
359 // equality is required (for non-Zero() input. This restriction
364 if (w1 == StringWeight<L, S>::Zero())
366 if (w2 == StringWeight<L, S>::Zero())
381 if (w1 == StringWeight<L, STRING_LEFT>::Zero())
383 if (w2 == StringWeight<L, STRING_LEFT>::Zero())
400 if (w1 == StringWeight<L, STRING_RIGHT>::Zero())
402 if (w2 == StringWeight<L, STRING_RIGHT>::Zero())
418 if (w1 == StringWeight<L, S>::Zero() || w
[all...]
H A Drandom-weight.h32 // The boolean 'allow_zero' below determines whether Zero() and zero
49 return Weight::Zero();
58 bool allow_zero_; // permit Zero() and zero divisors
76 return Weight::Zero();
85 bool allow_zero_; // permit Zero() and zero divisors
90 // strings chosen from {1,...,kAlphabetSize}^{0,kMaxStringLength} U { Zero }
104 return Weight::Zero();
118 bool allow_zero_; // permit Zero() and zero divisors
H A Dshortest-path.h82 Weight f_distance = Weight::Zero();
96 distance->push_back(Weight::Zero());
99 arc_parent.push_back(Arc(kNoLabel, kNoLabel, Weight::Zero(), kNoStateId));
103 arc_parent.push_back(Arc(kNoLabel, kNoLabel, Weight::Zero(), kNoStateId));
117 distance->push_back(Weight::Zero());
120 arc_parent.push_back(Arc(kNoLabel, kNoLabel, Weight::Zero(),
137 if (ifst.Final(s) != Weight::Zero()) {
265 distance->push_back(Weight::Zero());
289 pairs.push_back(Pair(kNoStateId, Weight::Zero()));
322 if (finalw != Weight::Zero()) {
[all...]
H A Dproduct-weight.h39 static const ProductWeight<W1, W2> &Zero() { function in class:fst::ProductWeight
40 static const ProductWeight<W1, W2> zero(W1::Zero(), W2::Zero());
159 W1 w1 = W1::Zero();
163 W2 w2 = W2::Zero();
/external/openfst/src/include/fst/
H A Dshortest-distance.h52 // weights in the FST are between One() and Zero()
149 distance_->push_back(Weight::Zero());
150 rdistance_.push_back(Weight::Zero());
168 distance_->push_back(Weight::Zero());
169 rdistance_.push_back(Weight::Zero());
172 if (first_path_ && (fst_.Final(s) != Weight::Zero()))
176 rdistance_[s] = Weight::Zero();
181 if (!arc_filter_(arc) || arc.weight == Weight::Zero())
184 distance_->push_back(Weight::Zero());
185 rdistance_.push_back(Weight::Zero());
[all...]
H A Dexpectation-weight.h21 // One: <One, Zero>
22 // Zero: <Zero, Zero>
64 ExpectationWeight() : PairWeight<X1, X2>(Zero()) { }
75 static const ExpectationWeight<X1, X2> &Zero() { function in class:fst::ExpectationWeight
76 static const ExpectationWeight<X1, X2> zero(X1::Zero(), X2::Zero());
81 static const ExpectationWeight<X1, X2> one(X1::One(), X2::Zero());
H A Dreweight.h74 if (weight != Weight::Zero()) {
82 if (nextweight == Weight::Zero())
103 fst->SetFinal(state, Times(Weight::Zero(), fst->Final(state)));
107 potential[fst->Start()] : Weight::Zero();
108 if ((startweight != Weight::One()) && (startweight != Weight::Zero())) {
H A Dstring-weight.h86 static const StringWeight<L, S> &Zero() { function in class:fst::StringWeight
347 w = StringWeight<L, S>::Zero();
367 // equality is required (for non-Zero() input. This restriction
374 if (w1 == StringWeight<L, S>::Zero())
376 if (w2 == StringWeight<L, S>::Zero())
397 if (w1 == StringWeight<L, STRING_LEFT>::Zero())
399 if (w2 == StringWeight<L, STRING_LEFT>::Zero())
418 if (w1 == StringWeight<L, STRING_RIGHT>::Zero())
420 if (w2 == StringWeight<L, STRING_RIGHT>::Zero())
438 if (w1 == StringWeight<L, S>::Zero() || w
[all...]
H A Dprune.h75 Weight wx = Times(x < idistance_.size() ? idistance_[x] : Weight::Zero(),
76 x < fdistance_.size() ? fdistance_[x] : Weight::Zero());
77 Weight wy = Times(y < idistance_.size() ? idistance_[y] : Weight::Zero(),
78 y < fdistance_.size() ? fdistance_[y] : Weight::Zero());
115 vector<Weight> idistance(ns, Weight::Zero());
125 ((*fdistance)[fst->Start()] == Weight::Zero())) {
152 fst->SetFinal(s, Weight::Zero());
161 : Weight::Zero());
247 ((*fdistance)[ifst.Start()] == Weight::Zero())) {
257 Weight limit = Times(s < fdistance->size() ? (*fdistance)[s] : Weight::Zero(),
[all...]
H A Dshortest-path.h52 // One() and Zero() according to NaturalLess.
58 bool fp = false, Weight w = Weight::Zero(),
100 Weight f_distance = Weight::Zero();
111 if (opts.weight_threshold != Weight::Zero() ||
126 distance->push_back(Weight::Zero());
129 arc_parent.push_back(Arc(kNoLabel, kNoLabel, Weight::Zero(), kNoStateId));
133 arc_parent.push_back(Arc(kNoLabel, kNoLabel, Weight::Zero(), kNoStateId));
142 if (ifst.Final(s) != Weight::Zero()) {
160 distance->push_back(Weight::Zero());
163 arc_parent.push_back(Arc(kNoLabel, kNoLabel, Weight::Zero(),
[all...]
H A Dlexicographic-weight.h23 // (for all a,b,c != Zero(): Times(c, a) = Times(c, b) => a = b,
46 using PairWeight<W1, W2>::Zero;
75 static const LexicographicWeight<W1, W2> &Zero() { function in class:fst::LexicographicWeight
76 static const LexicographicWeight<W1, W2> zero(PairWeight<W1, W2>::Zero());
99 if (Value1() == W1::Zero() && Value2() == W2::Zero()) return true;
100 if (Value1() != W1::Zero() && Value2() != W2::Zero()) return true;
H A Dpair-weight.h56 static const PairWeight<W1, W2> &Zero() { function in class:fst::PairWeight
57 static const PairWeight<W1, W2> zero(W1::Zero(), W2::Zero());
132 W1 w1 = W1::Zero();
136 W2 w2 = W2::Zero();
181 W1 w1 = W1::Zero();
199 W2 w2 = W2::Zero();
H A Drandom-weight.h42 // The boolean 'allow_zero' below determines whether Zero() and zero
60 return Weight::Zero();
69 bool allow_zero_; // permit Zero() and zero divisors
92 return Weight::Zero();
101 bool allow_zero_; // permit Zero() and zero divisors
111 // One(), and Zero() if zero is allowed.
125 return Weight::Zero();
136 bool allow_zero_; // permit Zero() and zero divisors
145 // strings chosen from {1,...,kAlphabetSize}^{0,kMaxStringLength} U { Zero }
159 return Weight::Zero();
[all...]
H A Dsparse-power-weight.h65 return ApproxEqual(v1, v2, delta_) ? W::One() : W::Zero();
82 using SparseTupleWeight<W, K>::Zero;
102 static const SparsePowerWeight<W, K> &Zero() { function in class:fst::SparsePowerWeight
103 static const SparsePowerWeight<W, K> zero(SparseTupleWeight<W, K>::Zero());
184 W ret(W::Zero());
/external/clang/test/SemaTemplate/
H A Dalias-church-numerals.cpp8 template<template<typename> class, typename X> using Zero = X;
11 template<template<typename> class F, typename X> using One = Succ<Zero, F, X>;
/external/fdlibm/
H A De_fmod.c23 static const double one = 1.0, Zero[] = {0.0, -0.0,}; variable
25 static double one = 1.0, Zero[] = {0.0, -0.0,}; variable
53 return Zero[(unsigned)sx>>31]; /* |x|=|y| return x*0*/
107 return Zero[(unsigned)sx>>31];
116 return Zero[(unsigned)sx>>31];
/external/chromium/testing/gtest/samples/
H A Dsample1_unittest.cc103 TEST(FactorialTest, Zero) {
/external/gtest/samples/
H A Dsample1_unittest.cc103 TEST(FactorialTest, Zero) {
/external/protobuf/gtest/samples/
H A Dsample1_unittest.cc103 TEST(FactorialTest, Zero) {
/external/openfst/src/test/
H A Dweight-tester.h65 // Tests (Plus, Times, Zero, One) defines a commutative semiring.
76 CHECK(Plus(w1, Weight::Zero()) == w1);
77 CHECK(Plus(Weight::Zero(), w1) == w1);
93 // Checks Zero() is the annihilator.
94 CHECK(Times(w1, Weight::Zero()) == Weight::Zero());
95 CHECK(Times(Weight::Zero(), w1) == Weight::Zero());
/external/qemu-pc-bios/bochs/bios/
H A Dacpi-dsdt.dsl475 Store (Zero, TMP)
522 Store (Zero, TMP)
569 Store (Zero, TMP)
616 Store (Zero, TMP)
638 Zero, /* reserved */
639 Zero /* reserved */
643 Zero, /* PM1a_CNT.SLP_TYP */
644 Zero, /* PM1b_CNT.SLP_TYP */
645 Zero, /* reserved */
646 Zero /* reserve
[all...]

Completed in 449 milliseconds

123456789