/external/openfst/src/test/ |
H A D | weight-tester.h | 42 Weight w1 = weight_generator_(); local 47 VLOG(1) << "w1 = " << w1; 51 TestSemiring(w1, w2, w3); 53 TestDivision(w1, w2); 54 TestReverse(w1, w2); 55 TestEquality(w1, w2, w3); 56 TestIO(w1); 57 TestCopy(w1); 66 void TestSemiring(Weight w1, Weigh argument 77 CHECK(Plus(Weight::Zero(), w1) == w1); local 79 CHECK(Times(Weight::One(), w1) == w1); local 129 TestDivision(Weight w1, Weight w2) argument 156 TestReverse(Weight w1, Weight w2) argument 168 TestEquality(Weight w1, Weight w2, Weight w3) argument [all...] |
/external/openfst/src/include/fst/ |
H A D | float-weight.h | 110 inline bool operator==(const FloatWeightTpl<T> &w1, argument 114 volatile T v1 = w1.Value(); 119 inline bool operator==(const FloatWeightTpl<double> &w1, argument 121 return operator==<double>(w1, w2); 124 inline bool operator==(const FloatWeightTpl<float> &w1, argument 126 return operator==<float>(w1, w2); 130 inline bool operator!=(const FloatWeightTpl<T> &w1, argument 132 return !(w1 == w2); 135 inline bool operator!=(const FloatWeightTpl<double> &w1, argument 137 return operator!=<double>(w1, w 140 operator !=(const FloatWeightTpl<float> &w1, const FloatWeightTpl<float> &w2) argument 146 ApproxEqual(const FloatWeightTpl<T> &w1, const FloatWeightTpl<T> &w2, float delta = kDelta) argument 239 Plus(const TropicalWeightTpl<T> &w1, const TropicalWeightTpl<T> &w2) argument 246 Plus(const TropicalWeightTpl<float> &w1, const TropicalWeightTpl<float> &w2) argument 251 Plus(const TropicalWeightTpl<double> &w1, const TropicalWeightTpl<double> &w2) argument 257 Times(const TropicalWeightTpl<T> &w1, const TropicalWeightTpl<T> &w2) argument 270 Times(const TropicalWeightTpl<float> &w1, const TropicalWeightTpl<float> &w2) argument 275 Times(const TropicalWeightTpl<double> &w1, const TropicalWeightTpl<double> &w2) argument 281 Divide(const TropicalWeightTpl<T> &w1, const TropicalWeightTpl<T> &w2, DivideType typ = DIVIDE_ANY) argument 295 Divide(const TropicalWeightTpl<float> &w1, const TropicalWeightTpl<float> &w2, DivideType typ = DIVIDE_ANY) argument 301 Divide(const TropicalWeightTpl<double> &w1, const TropicalWeightTpl<double> &w2, DivideType typ = DIVIDE_ANY) argument 368 Plus(const LogWeightTpl<T> &w1, const LogWeightTpl<T> &w2) argument 381 Plus(const LogWeightTpl<float> &w1, const LogWeightTpl<float> &w2) argument 386 Plus(const LogWeightTpl<double> &w1, const LogWeightTpl<double> &w2) argument 392 Times(const LogWeightTpl<T> &w1, const LogWeightTpl<T> &w2) argument 405 Times(const LogWeightTpl<float> &w1, const LogWeightTpl<float> &w2) argument 410 Times(const LogWeightTpl<double> &w1, const LogWeightTpl<double> &w2) argument 416 Divide(const LogWeightTpl<T> &w1, const LogWeightTpl<T> &w2, DivideType typ = DIVIDE_ANY) argument 430 Divide(const LogWeightTpl<float> &w1, const LogWeightTpl<float> &w2, DivideType typ = DIVIDE_ANY) argument 436 Divide(const LogWeightTpl<double> &w1, const LogWeightTpl<double> &w2, DivideType typ = DIVIDE_ANY) argument 500 Plus( const MinMaxWeightTpl<T> &w1, const MinMaxWeightTpl<T> &w2) argument 507 Plus( const MinMaxWeightTpl<float> &w1, const MinMaxWeightTpl<float> &w2) argument 512 Plus( const MinMaxWeightTpl<double> &w1, const MinMaxWeightTpl<double> &w2) argument 519 Times( const MinMaxWeightTpl<T> &w1, const MinMaxWeightTpl<T> &w2) argument 526 Times( const MinMaxWeightTpl<float> &w1, const MinMaxWeightTpl<float> &w2) argument 531 Times( const MinMaxWeightTpl<double> &w1, const MinMaxWeightTpl<double> &w2) argument 538 Divide(const MinMaxWeightTpl<T> &w1, const MinMaxWeightTpl<T> &w2, DivideType typ = DIVIDE_ANY) argument 547 Divide(const MinMaxWeightTpl<float> &w1, const MinMaxWeightTpl<float> &w2, DivideType typ = DIVIDE_ANY) argument 553 Divide(const MinMaxWeightTpl<double> &w1, const MinMaxWeightTpl<double> &w2, DivideType typ = DIVIDE_ANY) argument [all...] |
H A D | weight.h | 142 bool operator()(const W &w1, const W &w2) const { argument 143 return (Plus(w1, w2) == w1) && w1 != w2; 164 W2 operator()(W1 w1) const {
|
H A D | string-weight.h | 296 inline bool operator==(const StringWeight<L, S> &w1, argument 298 if (w1.Size() != w2.Size()) 301 StringWeightIterator<L, S> iter1(w1); 312 inline bool operator!=(const StringWeight<L, S> &w1, argument 314 return !(w1 == w2); 318 inline bool ApproxEqual(const StringWeight<L, S> &w1, argument 321 return w1 == w2; 370 Plus(const StringWeight<L, S> &w1, argument 372 if (!w1.Member() || !w2.Member()) 374 if (w1 393 Plus(const StringWeight<L, STRING_LEFT> &w1, const StringWeight<L, STRING_LEFT> &w2) argument 414 Plus(const StringWeight<L, STRING_RIGHT> &w1, const StringWeight<L, STRING_RIGHT> &w2) argument 434 Times(const StringWeight<L, S> &w1, const StringWeight<L, S> &w2) argument 452 Divide(const StringWeight<L, S> &w1, const StringWeight<L, S> &w2, DivideType typ) argument 482 Divide(const StringWeight<L, STRING_RIGHT> &w1, const StringWeight<L, STRING_RIGHT> &w2, DivideType typ) argument 512 Divide(const StringWeight<L, STRING_RIGHT_RESTRICT> &w1, const StringWeight<L, STRING_RIGHT_RESTRICT> &w2, DivideType typ) argument 548 GallicWeight(StringWeight<L, S> w1, W w2) argument [all...] |
H A D | sparse-power-weight.h | 150 inline SparsePowerWeight<W, K> Plus(const SparsePowerWeight<W, K> &w1, argument 154 SparseTupleWeightMap(&ret, w1, w2, operator_mapper); 160 inline SparsePowerWeight<W, K> Times(const SparsePowerWeight<W, K> &w1, argument 164 SparseTupleWeightMap(&ret, w1, w2, operator_mapper); 170 inline SparsePowerWeight<W, K> Divide(const SparsePowerWeight<W, K> &w1, argument 175 SparseTupleWeightMap(&ret, w1, w2, operator_mapper); 181 inline const W& DotProduct(const SparsePowerWeight<W, K> &w1, argument 183 const SparsePowerWeight<W, K>& product = Times(w1, w2); 192 inline bool ApproxEqual(const SparsePowerWeight<W, K> &w1, argument 197 SparseTupleWeightMap(&ret, w1, w 209 Times(const SparsePowerWeight<W, K> &w1, const W &k) argument 216 Divide(const SparsePowerWeight<W, K> &w1, const W &k, DivideType divide_type = DIVIDE_ANY) argument [all...] |
H A D | signed-log-weight.h | 108 inline SignedLogWeightTpl<T> Plus(const SignedLogWeightTpl<T> &w1, argument 110 if (!w1.Member() || !w2.Member()) 112 bool s1 = w1.Value1().Value() > 0.0; 114 T f1 = w1.Value2().Value(); 119 return w1; 122 return SignedLogWeightTpl<T>(w1.Value1(), (f2 - log(2.0F))); 128 w1.Value1(), (f2 - log(1.0F + exp(f2 - f1)))); 139 w1.Value1(), (f1 - log(1.0F - exp(f1 - f2)))); 145 inline SignedLogWeightTpl<T> Minus(const SignedLogWeightTpl<T> &w1, argument 148 return Plus(w1, minus_w 152 Times(const SignedLogWeightTpl<T> &w1, const SignedLogWeightTpl<T> &w2) argument 167 Divide(const SignedLogWeightTpl<T> &w1, const SignedLogWeightTpl<T> &w2, DivideType typ = DIVIDE_ANY) argument 189 ApproxEqual(const SignedLogWeightTpl<T> &w1, const SignedLogWeightTpl<T> &w2, float delta = kDelta) argument 203 operator ==(const SignedLogWeightTpl<T> &w1, const SignedLogWeightTpl<T> &w2) argument [all...] |
H A D | pair-weight.h | 54 PairWeight(W1 w1, W2 w2) : value1_(w1), value2_(w2) {} argument 132 W1 w1 = W1::Zero(); local 133 strm1 >> w1; local 139 w = PairWeight<W1, W2>(w1, w2); 181 W1 w1 = W1::Zero(); local 182 strm1 >> w1; local 202 w = PairWeight<W1, W2>(w1, w2); 219 inline bool operator!=(const PairWeight<W1, W2> &w1, argument 221 return w1 226 ApproxEqual(const PairWeight<W1, W2> &w1, const PairWeight<W1, W2> &w2, float delta = kDelta) argument [all...] |
H A D | power-weight.h | 99 inline PowerWeight<W, n> Plus(const PowerWeight<W, n> &w1, argument 103 w.SetValue(i, Plus(w1.Value(i), w2.Value(i))); 109 inline PowerWeight<W, n> Times(const PowerWeight<W, n> &w1, argument 113 w.SetValue(i, Times(w1.Value(i), w2.Value(i))); 119 inline PowerWeight<W, n> Divide(const PowerWeight<W, n> &w1, argument 124 w.SetValue(i, Divide(w1.Value(i), w2.Value(i), type)); 148 inline W DotProduct(const PowerWeight<W, n> &w1, argument 152 w = Plus(w, Times(w1.Value(i), w2.Value(i)));
|
H A D | tuple-weight.h | 246 inline bool operator==(const TupleWeight<W, n> &w1, argument 250 equal = equal && (w1.Value(i) == w2.Value(i)); 255 inline bool operator!=(const TupleWeight<W, n> &w1, argument 259 not_equal = not_equal || (w1.Value(i) != w2.Value(i)); 264 inline bool ApproxEqual(const TupleWeight<W, n> &w1, argument 270 ApproxEqual(w1.Value(i), w2.Value(i), delta);
|
/external/srec/tools/thirdparty/OpenFst/fst/lib/ |
H A D | weight.h | 132 bool operator()(const W &w1, const W &w2) const { argument 133 return (Plus(w1, w2) == w1) && w1 != w2;
|
H A D | float-weight.h | 68 inline bool operator==(const FloatWeight &w1, const FloatWeight &w2) { argument 71 volatile float v1 = w1.Value(); 76 inline bool operator!=(const FloatWeight &w1, const FloatWeight &w2) { argument 77 return !(w1 == w2); 80 inline bool ApproxEqual(const FloatWeight &w1, const FloatWeight &w2, argument 82 return w1.Value() <= w2.Value() + delta && w2.Value() <= w1.Value() + delta; 152 inline TropicalWeight Plus(const TropicalWeight &w1, argument 154 return w1.Value() < w2.Value() ? w1 157 Times(const TropicalWeight &w1, const TropicalWeight &w2) argument 168 Divide(const TropicalWeight &w1, const TropicalWeight &w2, DivideType typ = DIVIDE_ANY) argument 219 Plus(const LogWeight &w1, const LogWeight &w2) argument 231 Times(const LogWeight &w1, const LogWeight &w2) argument 241 Divide(const LogWeight &w1, const LogWeight &w2, DivideType typ = DIVIDE_ANY) argument [all...] |
H A D | string-weight.h | 288 inline bool operator==(const StringWeight<L, S> &w1, argument 290 if (w1.Size() != w2.Size()) 293 StringWeightIterator<L, S> iter1(w1); 304 inline bool operator!=(const StringWeight<L, S> &w1, argument 306 return !(w1 == w2); 310 inline bool ApproxEqual(const StringWeight<L, S> &w1, argument 313 return w1 == w2; 362 Plus(const StringWeight<L, S> &w1, argument 364 if (w1 == StringWeight<L, S>::Zero()) 367 return w1; 379 Plus(const StringWeight<L, STRING_LEFT> &w1, const StringWeight<L, STRING_LEFT> &w2) argument 398 Plus(const StringWeight<L, STRING_RIGHT> &w1, const StringWeight<L, STRING_RIGHT> &w2) argument 416 Times(const StringWeight<L, S> &w1, const StringWeight<L, S> &w2) argument 432 Divide(const StringWeight<L, S> &w1, const StringWeight<L, S> &w2, DivideType typ) argument 457 Divide(const StringWeight<L, STRING_RIGHT> &w1, const StringWeight<L, STRING_RIGHT> &w2, DivideType typ) argument 482 Divide(const StringWeight<L, STRING_RIGHT_RESTRICT> &w1, const StringWeight<L, STRING_RIGHT_RESTRICT> &w2, DivideType typ) argument 513 GallicWeight(StringWeight<L, S> w1, W w2) argument [all...] |
H A D | product-weight.h | 37 ProductWeight(W1 w1, W2 w2) : value1_(w1), value2_(w2) {} argument 111 inline bool operator!=(const ProductWeight<W1, W2> &w1, argument 113 return w1.Value1() != w2.Value1() || w1.Value2() != w2.Value2(); 118 inline bool ApproxEqual(const ProductWeight<W1, W2> &w1, argument 121 return w1 == w2; 159 W1 w1 = W1::Zero(); local 160 strm1 >> w1; local 166 w = ProductWeight<W1, W2>(w1, w [all...] |
H A D | random-weight.h | 135 W1 w1 = generator1_(); local 137 return Weight(w1, w2);
|
/external/dropbear/libtommath/ |
H A D | bn_mp_toom_mul.c | 27 mp_int w0, w1, w2, w3, w4, tmp1, tmp2, a0, a1, a2, b0, b1, b2; local 31 if ((res = mp_init_multi(&w0, &w1, &w2, &w3, &w4, 82 /* w1 = (a2 + 2(a1 + 2a0))(b2 + 2(b1 + 2b0)) */ 109 if ((res = mp_mul(&tmp1, &tmp2, &w1)) != MP_OKAY) { 175 if ((res = mp_sub(&w1, &w4, &w1)) != MP_OKAY) { 183 if ((res = mp_div_2(&w1, &w1)) != MP_OKAY) { 198 if ((res = mp_sub(&w1, &w2, &w1)) ! [all...] |
H A D | bn_mp_toom_sqr.c | 22 mp_int w0, w1, w2, w3, w4, tmp1, a0, a1, a2; local 26 if ((res = mp_init_multi(&w0, &w1, &w2, &w3, &w4, &a0, &a1, &a2, &tmp1, NULL)) != MP_OKAY) { 59 /* w1 = (a2 + 2(a1 + 2a0))**2 */ 73 if ((res = mp_sqr(&tmp1, &w1)) != MP_OKAY) { 119 if ((res = mp_sub(&w1, &w4, &w1)) != MP_OKAY) { 127 if ((res = mp_div_2(&w1, &w1)) != MP_OKAY) { 142 if ((res = mp_sub(&w1, &w2, &w1)) ! [all...] |
/external/chromium/net/websockets/ |
H A D | websocket_throttle_unittest.cc | 86 scoped_refptr<WebSocketJob> w1(new WebSocketJob(&delegate)); 88 new SocketStream(GURL("ws://host1/"), w1.get())); 89 w1->InitSocketStream(s1.get()); 96 EXPECT_EQ(OK, w1->OnStartOpenConnection(s1, &callback_s1)); 100 // 1.2.3.4 | w1 101 // 1.2.3.5 | w1 102 // 1.2.3.6 | w1 115 // Trying to open connection to host2 will wait for w1. 119 // 1.2.3.4 | w1 w2 120 // 1.2.3.5 | w1 [all...] |
/external/dropbear/libtomcrypt/src/ciphers/ |
H A D | skipjack.c | 91 tmp = g_func(w1, &kp, skey->skipjack.key); \ 92 w1 = tmp ^ w4 ^ x; \ 97 tmp = g_func(w1, &kp, skey->skipjack.key); \ 99 w3 = w1 ^ w2 ^ x; \ 100 w1 = tmp1; w2 = tmp; 103 tmp = w1 ^ w2 ^ x; \ 104 w1 = ig_func(w2, &kp, skey->skipjack.key); \ 110 w3 = w4; w4 = w1; w1 = tmp; 149 unsigned w1,w local 213 unsigned w1,w2,w3,w4,tmp; local [all...] |
/external/tremolo/Tremolo/ |
H A D | mdct.h | 62 LOOKUP_T *w0,LOOKUP_T *w1,
|
H A D | mdct.c | 276 DATA_TYPE *w1 = x+(n>>1); local 282 w1 -= 2; 284 s0 = w0[0] + w1[0]; 285 s1 = w1[1] - w0[1]; 290 s0 = (w0[1] + w1[1])>>1; 291 s1 = (w0[0] - w1[0])>>1; 294 w1[0] = s0 - s2; 295 w1[1] = s3 - s1; 300 w1 -= 2; 302 s0 = w0[0] + w1[ 468 mdct_unroll_lap(int n0,int n1, int lW,int W, DATA_TYPE *in, DATA_TYPE *right, LOOKUP_T *w0, LOOKUP_T *w1, ogg_int16_t *out, int step, int start, int end ) argument [all...] |
/external/clang/test/SemaCXX/ |
H A D | default-assignment-operator.cpp | 53 W w1, w2; variable 56 w1 = w2;
|
/external/apache-xml/src/main/java/org/apache/xml/dtm/ref/ |
H A D | ChunkedIntArray.java | 71 int appendSlot(int w0, int w1, int w2, int w3) argument 78 fastArray[newoffset+1] = w1; 96 chunk[slotpos+1] = w1; 217 * @param w1 int 221 void writeSlot(int position, int w0, int w1, int w2, int w3) argument 232 chunk[slotpos + 1] = w1;
|
H A D | DTMDocumentImpl.java | 200 * @param w1 int As in ChunkedIntArray.append 206 private final int appendNode(int w0, int w1, int w2, int w3) argument 209 int slotnumber = nodes.appendSlot(w0, w1, w2, w3); 211 if (DEBUG) System.out.println(slotnumber+": "+w0+" "+w1+" "+w2+" "+w3); 693 // int w1 = currentParent; 698 // //int ourslot = nodes.appendSlot(w0, w1, w2, w3); 699 // int ourslot = appendNode(w0, w1, w2, w3); 850 // int w1 = currentParent; 856 // int ourslot = appendNode(w0, w1, w2, w3); 862 // w1 [all...] |
/external/opencv/cv/src/ |
H A D | cvmatchcontours.cpp | 231 double match_v, d12, area1, area2, r11, r12, r21, r22, w1, w2; local 284 r11 = r12 = r21 = r22 = w1 = w2 = d12 = 0; 314 w1 = ptr11[j]->area / area1; 343 t0 = fabs( r11 * w1 + r21 * w2 ); 344 t1 = fabs( r12 * w1 + r22 * w2 ); 348 t0 = fabs( r11 * w1 - r21 * w2 ); 349 t1 = fabs( r12 * w1 - r22 * w2 );
|
H A D | _cvmatrix.h | 283 CV_INLINE void icvMulMatrix_32f( const float* src1, int w1, int h1, argument 289 if( w1 != h2 ) 295 for( i = 0; i < h1; i++, src1 += w1, dst += w2 ) 299 for( k = 0; k < w1; k++ ) 308 CV_INLINE void icvMulMatrix_64d( const double* src1, int w1, int h1, argument 314 if( w1 != h2 ) 320 for( i = 0; i < h1; i++, src1 += w1, dst += w2 ) 324 for( k = 0; k < w1; k++ )
|