/external/openfst/src/test/ |
H A D | weight-tester.h | 43 Weight w2 = weight_generator_(); local 48 VLOG(1) << "w2 = " << w2; 51 TestSemiring(w1, w2, w3); 53 TestDivision(w1, w2); 54 TestReverse(w1, w2); 55 TestEquality(w1, w2, w3); 66 void TestSemiring(Weight w1, Weight w2, Weight w3) { argument 68 CHECK(Plus(w1, w2).Member()); 69 CHECK(Times(w1, w2) 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 | 114 const FloatWeightTpl<T> &w2) { 118 volatile T v2 = w2.Value(); 123 const FloatWeightTpl<double> &w2) { 124 return operator==<double>(w1, w2); 128 const FloatWeightTpl<float> &w2) { 129 return operator==<float>(w1, w2); 134 const FloatWeightTpl<T> &w2) { 135 return !(w1 == w2); 139 const FloatWeightTpl<double> &w2) { 140 return operator!=<double>(w1, w2); 113 operator ==(const FloatWeightTpl<T> &w1, const FloatWeightTpl<T> &w2) argument 122 operator ==(const FloatWeightTpl<double> &w1, const FloatWeightTpl<double> &w2) argument 127 operator ==(const FloatWeightTpl<float> &w1, const FloatWeightTpl<float> &w2) argument 133 operator !=(const FloatWeightTpl<T> &w1, const FloatWeightTpl<T> &w2) argument 138 operator !=(const FloatWeightTpl<double> &w1, const FloatWeightTpl<double> &w2) argument 143 operator !=(const FloatWeightTpl<float> &w1, const FloatWeightTpl<float> &w2) argument 149 ApproxEqual(const FloatWeightTpl<T> &w1, const FloatWeightTpl<T> &w2, float delta = kDelta) argument 242 Plus(const TropicalWeightTpl<T> &w1, const TropicalWeightTpl<T> &w2) argument 249 Plus(const TropicalWeightTpl<float> &w1, const TropicalWeightTpl<float> &w2) argument 254 Plus(const TropicalWeightTpl<double> &w1, const TropicalWeightTpl<double> &w2) argument 260 Times(const TropicalWeightTpl<T> &w1, const TropicalWeightTpl<T> &w2) argument 273 Times(const TropicalWeightTpl<float> &w1, const TropicalWeightTpl<float> &w2) argument 278 Times(const TropicalWeightTpl<double> &w1, const TropicalWeightTpl<double> &w2) argument 284 Divide(const TropicalWeightTpl<T> &w1, const TropicalWeightTpl<T> &w2, DivideType typ = DIVIDE_ANY) argument 298 Divide(const TropicalWeightTpl<float> &w1, const TropicalWeightTpl<float> &w2, DivideType typ = DIVIDE_ANY) argument 304 Divide(const TropicalWeightTpl<double> &w1, const TropicalWeightTpl<double> &w2, DivideType typ = DIVIDE_ANY) argument 371 Plus(const LogWeightTpl<T> &w1, const LogWeightTpl<T> &w2) argument 384 Plus(const LogWeightTpl<float> &w1, const LogWeightTpl<float> &w2) argument 389 Plus(const LogWeightTpl<double> &w1, const LogWeightTpl<double> &w2) argument 395 Times(const LogWeightTpl<T> &w1, const LogWeightTpl<T> &w2) argument 408 Times(const LogWeightTpl<float> &w1, const LogWeightTpl<float> &w2) argument 413 Times(const LogWeightTpl<double> &w1, const LogWeightTpl<double> &w2) argument 419 Divide(const LogWeightTpl<T> &w1, const LogWeightTpl<T> &w2, DivideType typ = DIVIDE_ANY) argument 433 Divide(const LogWeightTpl<float> &w1, const LogWeightTpl<float> &w2, DivideType typ = DIVIDE_ANY) argument 439 Divide(const LogWeightTpl<double> &w1, const LogWeightTpl<double> &w2, DivideType typ = DIVIDE_ANY) argument 503 Plus( const MinMaxWeightTpl<T> &w1, const MinMaxWeightTpl<T> &w2) argument 510 Plus( const MinMaxWeightTpl<float> &w1, const MinMaxWeightTpl<float> &w2) argument 515 Plus( const MinMaxWeightTpl<double> &w1, const MinMaxWeightTpl<double> &w2) argument 522 Times( const MinMaxWeightTpl<T> &w1, const MinMaxWeightTpl<T> &w2) argument 529 Times( const MinMaxWeightTpl<float> &w1, const MinMaxWeightTpl<float> &w2) argument 534 Times( const MinMaxWeightTpl<double> &w1, const MinMaxWeightTpl<double> &w2) argument 541 Divide(const MinMaxWeightTpl<T> &w1, const MinMaxWeightTpl<T> &w2, DivideType typ = DIVIDE_ANY) argument 550 Divide(const MinMaxWeightTpl<float> &w1, const MinMaxWeightTpl<float> &w2, DivideType typ = DIVIDE_ANY) argument 556 Divide(const MinMaxWeightTpl<double> &w1, const MinMaxWeightTpl<double> &w2, DivideType typ = DIVIDE_ANY) argument [all...] |
H A D | string-weight.h | 297 const StringWeight<L, S> &w2) { 298 if (w1.Size() != w2.Size()) 302 StringWeightIterator<L, S> iter2(w2); 313 const StringWeight<L, S> &w2) { 314 return !(w1 == w2); 319 const StringWeight<L, S> &w2, 321 return w1 == w2; 371 const StringWeight<L, S> &w2) { 372 if (!w1.Member() || !w2.Member()) 375 return w2; 296 operator ==(const StringWeight<L, S> &w1, const StringWeight<L, S> &w2) argument 312 operator !=(const StringWeight<L, S> &w1, const StringWeight<L, S> &w2) argument 318 ApproxEqual(const StringWeight<L, S> &w1, const StringWeight<L, S> &w2, float delta = kDelta) argument 370 Plus(const StringWeight<L, S> &w1, const StringWeight<L, S> &w2) argument 383 << " w2 = " << w2; local 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 | 151 const SparsePowerWeight<W, K> &w2) { 154 SparseTupleWeightMap(&ret, w1, w2, operator_mapper); 161 const SparsePowerWeight<W, K> &w2) { 164 SparseTupleWeightMap(&ret, w1, w2, operator_mapper); 171 const SparsePowerWeight<W, K> &w2, 175 SparseTupleWeightMap(&ret, w1, w2, operator_mapper); 182 const SparsePowerWeight<W, K> &w2) { 183 const SparsePowerWeight<W, K>& product = Times(w1, w2); 193 const SparsePowerWeight<W, K> &w2, 197 SparseTupleWeightMap(&ret, w1, w2, operator_mappe 150 Plus(const SparsePowerWeight<W, K> &w1, const SparsePowerWeight<W, K> &w2) argument 160 Times(const SparsePowerWeight<W, K> &w1, const SparsePowerWeight<W, K> &w2) argument 170 Divide(const SparsePowerWeight<W, K> &w1, const SparsePowerWeight<W, K> &w2, DivideType type = DIVIDE_ANY) argument 181 DotProduct(const SparsePowerWeight<W, K> &w1, const SparsePowerWeight<W, K> &w2) argument 192 ApproxEqual(const SparsePowerWeight<W, K> &w1, const SparsePowerWeight<W, K> &w2, float delta = kDelta) argument 202 Times(const W &k, const SparsePowerWeight<W, K> &w2) argument [all...] |
H A D | signed-log-weight.h | 109 const SignedLogWeightTpl<T> &w2) { 110 if (!w1.Member() || !w2.Member()) 113 bool s2 = w2.Value1().Value() > 0.0; 115 T f2 = w2.Value2().Value(); 117 return w2; 131 w2.Value1(), (f2 - log(1.0F - exp(f2 - f1)))); 136 w2.Value1(), (f1 - log(1.0F + exp(f1 - f2)))); 146 const SignedLogWeightTpl<T> &w2) { 147 SignedLogWeightTpl<T> minus_w2(-w2.Value1().Value(), w2 108 Plus(const SignedLogWeightTpl<T> &w1, const SignedLogWeightTpl<T> &w2) argument 145 Minus(const SignedLogWeightTpl<T> &w1, const SignedLogWeightTpl<T> &w2) argument 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 | weight.h | 142 bool operator()(const W &w1, const W &w2) const { 143 return (Plus(w1, w2) == w1) && w1 != w2;
|
H A D | pair-weight.h | 54 PairWeight(W1 w1, W2 w2) : value1_(w1), value2_(w2) {} argument 136 W2 w2 = W2::Zero(); local 137 strm >> w2; local 139 w = PairWeight<W1, W2>(w1, w2); 199 W2 w2 = W2::Zero(); local 200 strm2 >> w2; local 202 w = PairWeight<W1, W2>(w1, w2); 220 const PairWeight<W1, W2> &w2) { 221 return w1.Value1() != w2 219 operator !=(const PairWeight<W1, W2> &w1, const PairWeight<W1, W2> &w2) argument 226 ApproxEqual(const PairWeight<W1, W2> &w1, const PairWeight<W1, W2> &w2, float delta = kDelta) argument [all...] |
/external/smack/src/org/xbill/DNS/ |
H A D | FormattedTime.java | 16 private static NumberFormat w2, w4; field in class:FormattedTime 19 w2 = new DecimalFormat(); 20 w2.setMinimumIntegerDigits(2); 42 sb.append(w2.format(c.get(Calendar.MONTH)+1)); 43 sb.append(w2.format(c.get(Calendar.DAY_OF_MONTH))); 44 sb.append(w2.format(c.get(Calendar.HOUR_OF_DAY))); 45 sb.append(w2.format(c.get(Calendar.MINUTE))); 46 sb.append(w2.format(c.get(Calendar.SECOND)));
|
/external/chromium_org/ash/wm/ |
H A D | stacking_controller_unittest.cc | 40 scoped_ptr<Window> w2(CreateTestWindow()); 41 w2->SetBounds(gfx::Rect(10, 11, 250, 251)); 44 launcher->AddChild(w2.get()); 45 w2->Show(); 47 wm::ActivateWindow(w2.get()); 51 w2->AddTransientChild(w1.get());
|
H A D | solo_window_tracker_unittest.cc | 170 scoped_ptr<aura::Window> w2(CreateWindowInPrimary()); 171 w2->Show(); 177 w2->Hide(); 181 w2->Show(); 186 EXPECT_EQ(w2.get(), GetWindowWithSoloHeaderInPrimary()); 190 EXPECT_EQ(w2.get(), GetWindowWithSoloHeaderInPrimary()); 199 EXPECT_EQ(w2.get(), GetWindowWithSoloHeaderInPrimary()); 219 scoped_ptr<aura::Window> w2(CreateWindowInPrimary()); 220 w2->Show(); 223 DockWindow(w2 [all...] |
H A D | mru_window_tracker_unittest.cc | 38 scoped_ptr<aura::Window> w2(CreateWindow()); 41 wm::ActivateWindow(w2.get()); 47 EXPECT_EQ(w2.get(), window_list[1]); 55 scoped_ptr<aura::Window> w2(CreateWindow()); 64 wm::ActivateWindow(w2.get()); 75 EXPECT_EQ(w2.get(), window_list[0]);
|
H A D | workspace_controller_unittest.cc | 199 scoped_ptr<Window> w2(CreateTestWindow()); 206 w2->SetBounds(gfx::Rect(0, 0, 50, 51)); 207 w2->SetProperty(aura::client::kShowStateKey, ui::SHOW_STATE_FULLSCREEN); 208 w2->Show(); 209 wm::ActivateWindow(w2.get()); 213 EXPECT_EQ(w2.get(), GetDesktop()->children()[1]); 217 EXPECT_EQ(work_area.width(), w2->bounds().width()); 218 EXPECT_EQ(work_area.height(), w2->bounds().height()); 220 // Restore w2, which should then go back to one workspace. 221 w2 [all...] |
/external/srec/tools/thirdparty/OpenFst/fst/lib/ |
H A D | float-weight.h | 68 inline bool operator==(const FloatWeight &w1, const FloatWeight &w2) { argument 72 volatile float v2 = w2.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; 153 const TropicalWeight &w2) { 154 return w1.Value() < w2.Value() ? w1 : w2; 152 Plus(const TropicalWeight &w1, const TropicalWeight &w2) argument 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 | weight.h | 132 bool operator()(const W &w1, const W &w2) const { 133 return (Plus(w1, w2) == w1) && w1 != w2;
|
H A D | string-weight.h | 289 const StringWeight<L, S> &w2) { 290 if (w1.Size() != w2.Size()) 294 StringWeightIterator<L, S> iter2(w2); 305 const StringWeight<L, S> &w2) { 306 return !(w1 == w2); 311 const StringWeight<L, S> &w2, 313 return w1 == w2; 363 const StringWeight<L, S> &w2) { 365 return w2; 366 if (w2 288 operator ==(const StringWeight<L, S> &w1, const StringWeight<L, S> &w2) argument 304 operator !=(const StringWeight<L, S> &w1, const StringWeight<L, S> &w2) argument 310 ApproxEqual(const StringWeight<L, S> &w1, const StringWeight<L, S> &w2, float delta = kDelta) argument 362 Plus(const StringWeight<L, S> &w1, const StringWeight<L, S> &w2) argument 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 112 const ProductWeight<W1, W2> &w2) { 113 return w1.Value1() != w2.Value1() || w1.Value2() != w2.Value2(); 119 const ProductWeight<W1, W2> &w2, 121 return w1 == w2; 163 W2 w2 = W2::Zero(); local 164 strm >> w2; local 166 w = ProductWeight<W1, W2>(w1, w2); 111 operator !=(const ProductWeight<W1, W2> &w1, const ProductWeight<W1, W2> &w2) argument 118 ApproxEqual(const ProductWeight<W1, W2> &w1, const ProductWeight<W1, W2> &w2, float delta = kDelta) argument [all...] |
/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, 145 /* w2 = (a2 + a1 + a0)(b2 + b1 + b0) */ 158 if ((res = mp_mul(&tmp1, &tmp2, &w2)) != MP_OKAY) { 191 if ((res = mp_sub(&w2, &w0, &w2)) != MP_OKAY) { 194 if ((res = mp_sub(&w2, &w4, &w2)) != MP_OKAY) { 198 if ((res = mp_sub(&w1, &w2, &w1)) != MP_OKAY) { 202 if ((res = mp_sub(&w3, &w2, [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) { 96 /* w2 = (a2 + a1 + a0)**2 */ 103 if ((res = mp_sqr(&tmp1, &w2)) != MP_OKAY) { 135 if ((res = mp_sub(&w2, &w0, &w2)) != MP_OKAY) { 138 if ((res = mp_sub(&w2, &w4, &w2)) != MP_OKAY) { 142 if ((res = mp_sub(&w1, &w2, &w1)) != MP_OKAY) { 146 if ((res = mp_sub(&w3, &w2, [all...] |
/external/chromium_org/ash/wm/dock/ |
H A D | docked_window_layout_manager_unittest.cc | 406 scoped_ptr<aura::Window> w2(CreateTestWindow(gfx::Rect(0, 0, 210, 202))); 408 DragToVerticalPositionAndToEdge(DOCKED_EDGE_RIGHT, w2.get(), 300); 414 EXPECT_EQ(w2->GetRootWindow()->bounds().right(), 415 w2->GetBoundsInScreen().right()); 416 EXPECT_EQ(internal::kShellWindowId_DockedContainer, w2->parent()->id()); 422 int gap2 = w2->GetBoundsInScreen().y() - w1->GetBoundsInScreen().bottom(); 423 int gap3 = work_area.bottom() - w2->GetBoundsInScreen().bottom(); 435 scoped_ptr<aura::Window> w2(CreateTestWindow(gfx::Rect(0, 0, 210, 202))); 437 DragToVerticalPositionAndToEdge(DOCKED_EDGE_RIGHT, w2.get(), 300); 443 EXPECT_EQ(w2 [all...] |
H A D | docked_window_resizer_unittest.cc | 498 scoped_ptr<aura::Window> w2(CreateTestWindow(gfx::Rect(0, 0, 201, 201))); 500 DragToVerticalPositionAndToEdge(DOCKED_EDGE_RIGHT, w2.get(), 50); 507 EXPECT_EQ(w2->GetRootWindow()->bounds().right(), 508 w2->GetBoundsInScreen().right()); 509 EXPECT_EQ(internal::kShellWindowId_DockedContainer, w2->parent()->id()); 512 const int left_edge = w2->bounds().x(); 513 ASSERT_NO_FATAL_FAILURE(DragStart(w2.get())); 525 EXPECT_EQ(left_edge - 32, w2->GetBoundsInScreen().x()); 527 w2->parent()->id()); 543 scoped_ptr<aura::Window> w2(CreateTestWindowInShellWithDelegateAndTyp [all...] |
/external/chromium_org/ui/views/corewm/ |
H A D | capture_controller_unittest.cc | 111 scoped_ptr<aura::Window> w2( 116 w2->SetCapture(); 133 scoped_ptr<aura::Window> w2( 135 w2->SetCapture(); 136 EXPECT_EQ(w2.get(), GetCaptureWindow()); 137 EXPECT_EQ(w2.get(), GetSecondCaptureWindow()); 153 scoped_ptr<aura::Window> w2( 155 w2->SetCapture(); 156 EXPECT_EQ(w2.get(), GetCaptureWindow()); 157 EXPECT_EQ(w2 [all...] |
H A D | transient_window_stacking_client_unittest.cc | 42 scoped_ptr<Window> w2(CreateTestWindowWithId(2, parent.get())); 51 w2->AddTransientChild(w21); // w21 is now owned by w2. 52 w2->AddTransientChild(w22); // w22 is now owned by w2. 66 parent->StackChildAtTop(w2.get()); 70 parent->StackChildAbove(w11, w2.get()); 98 parent->StackChildAbove(w2.get(), w1.get()); 112 scoped_ptr<Window> w2(CreateTestWindowWithId(2, parent.get())); 121 w2 [all...] |
/external/chromium_org/ash/wm/panels/ |
H A D | panel_layout_manager_unittest.cc | 363 scoped_ptr<aura::Window> w2(CreatePanelWindow(even_bounds)); 365 EXPECT_NO_FATAL_FAILURE(IsPanelAboveLauncherIcon(w2.get())); 369 EXPECT_NO_FATAL_FAILURE(IsPanelAboveLauncherIcon(w2.get())); 376 scoped_ptr<aura::Window> w2(CreatePanelWindow(bounds)); 380 EXPECT_TRUE(WindowIsAbove(w3.get(), w2.get())); 381 EXPECT_TRUE(WindowIsAbove(w2.get(), w1.get())); 386 EXPECT_TRUE(WindowIsAbove(w1.get(), w2.get())); 387 EXPECT_TRUE(WindowIsAbove(w2.get(), w3.get())); 389 wm::ActivateWindow(w2.get()); 392 EXPECT_TRUE(WindowIsAbove(w2 [all...] |
/external/lzma/CPP/Common/ |
H A D | MyGuidDef.h | 49 #define DEFINE_GUID(name, l, w1, w2, b1, b2, b3, b4, b5, b6, b7, b8) \
50 MY_EXTERN_C const GUID name = { l, w1, w2, { b1, b2, b3, b4, b5, b6, b7, b8 } }
52 #define DEFINE_GUID(name, l, w1, w2, b1, b2, b3, b4, b5, b6, b7, b8) \
|
/external/qemu/distrib/sdl-1.2.15/src/video/gem/ |
H A D | SDL_gemevents.c | 83 short x2,y2,w2,h2; local 89 x2=y2=w2=h2 = 0; 93 wind_get (GEM_handle, WF_WORKXYWH, &x2, &y2, &w2, &h2); 102 mouse_event,x2,y2,w2,h2, 177 short x2,y2,w2,h2; local 234 wind_get (message[3], WF_WORKXYWH, &x2, &y2, &w2, &h2); 237 SDL_PrivateResize(w2, h2); 254 wind_get (message[3], WF_WORKXYWH, &x2, &y2, &w2, &h2); 256 SDL_PrivateResize(w2, h2); 301 short x2, y2, w2, h local [all...] |