Searched refs:w2 (Results 1 - 25 of 222) sorted by relevance

123456789

/external/libcxx/test/utilities/memory/util.smartptr/util.smartptr.weak/util.smartptr.weak.obs/
H A Dnot_less_than.fail.cpp24 const std::weak_ptr<int> w2(p2);
26 bool b = w1 < w2;
H A Downer_before_weak_ptr.pass.cpp25 const std::weak_ptr<int> w2(p2);
27 assert(!w1.owner_before(w2));
28 assert(!w2.owner_before(w1));
30 assert(w3.owner_before(w1) == w3.owner_before(w2));
H A Downer_before_shared_ptr.pass.cpp25 const std::weak_ptr<int> w2(p2);
28 assert(!w2.owner_before(p1));
/external/openfst/src/test/
H A Dweight-tester.h43 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 Dfloat-weight.h114 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 Dstring-weight.h297 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 Dsparse-power-weight.h151 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 Dsigned-log-weight.h109 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...]
/external/llvm/test/MC/AArch64/
H A Dalias-logicalimm.s28 // CHECK: orr w2, w1, #0xfffffffc
29 // CHECK: orr w2, w1, #0xfffffffc
30 orr w2, w1, #~3
31 orn w2, w1, #3
38 // CHECK: eor w2, w1, #0xfffffffc
39 // CHECK: eor w2, w1, #0xfffffffc
40 eor w2, w1, #~3
41 eon w2, w1, #3
H A Darm64-bitfield-encoding.s8 bfm w1, w2, #1, #15
10 sbfm w1, w2, #1, #15
12 ubfm w1, w2, #1, #15
19 ; CHECK: bfxil w1, w2, #1, #15 ; encoding: [0x41,0x3c,0x01,0x33]
21 ; CHECK: sbfx w1, w2, #1, #15 ; encoding: [0x41,0x3c,0x01,0x13]
23 ; CHECK: ubfx w1, w2, #1, #15 ; encoding: [0x41,0x3c,0x01,0x53]
34 extr w1, w2, w3, #15
37 ; CHECK: extr w1, w2, w3, #15 ; encoding: [0x41,0x3c,0x83,0x13]
H A Darm64-logical-encoding.s10 and w1, w2, #15
15 ands w1, w2, #15
20 ; CHECK: and w1, w2, #0xf ; encoding: [0x41,0x0c,0x00,0x12]
25 ; CHECK: ands w1, w2, #0xf ; encoding: [0x41,0x0c,0x00,0x72]
28 eor w1, w2, #0x4000
31 ; CHECK: eor w1, w2, #0x4000 ; encoding: [0x41,0x00,0x12,0x52]
34 orr w1, w2, #0x4000
37 ; CHECK: orr w1, w2, #0x4000 ; encoding: [0x41,0x00,0x12,0x32]
50 and w1, w2, w3
52 and w1, w2, w
[all...]
H A Darm64-arithmetic-encoding.s8 adc w1, w2, w3
13 ; CHECK: adc w1, w2, w3 ; encoding: [0x41,0x00,0x03,0x1a]
18 sbc w1, w2, w3
20 sbcs w1, w2, w3
23 ; CHECK: sbc w1, w2, w3 ; encoding: [0x41,0x00,0x03,0x5a]
25 ; CHECK: sbcs w1, w2, w3 ; encoding: [0x41,0x00,0x03,0x7a]
170 add w1, w2, w3, uxtb
171 add w1, w2, w3, uxth
172 add w1, w2, w3, uxtw
173 add w1, w2, w
[all...]
/external/valgrind/main/none/tests/amd64/
H A Dbmi.c858 ULong w1, w2; local
861 w2 = 0x57657438291CDEF0ULL;
865 do_andn64(&flags, &res, w1, w2);
866 printf("andn64 %016llx %016llx -> %016llx %04x\n", w1, w2, res, flags);
869 w2 = ((w2 >> 2) | (w2 >> 1)) + (w2 / 17ULL);
873 w2 = 0x57657438291CDEF0ULL;
877 do_andn32(&flags, &res, w1, w2);
[all...]
/external/libcxx/test/utilities/memory/util.smartptr/util.smartptr.weak/util.smartptr.ownerless/
H A Downer_less.pass.cpp43 const std::weak_ptr<int> w2(p2);
55 assert(!cs(p1, w2));
58 assert(cs(p3, w1) == cs(p3, w2));
64 assert(!cs(w1, w2));
65 assert(!cs(w2, w1));
67 assert(cs(w3, w1) == cs(w3, w2));
70 assert(!cs(w2, p1));
/external/libcxx/test/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.obs/
H A Downer_before_weak_ptr.pass.cpp25 const std::weak_ptr<int> w2(p2);
27 assert(!p1.owner_before(w2));
30 assert(p3.owner_before(w1) == p3.owner_before(w2));
/external/libcxx/test/utilities/memory/util.smartptr/util.smartptr.weak/util.smartptr.weak.mod/
H A Dswap.pass.cpp39 std::weak_ptr<A> w2(p2);
40 w1.swap(w2);
43 assert(w2.use_count() == 1);
44 assert(w2.lock().get() == ptr1);
/external/libcxx/test/utilities/memory/util.smartptr/util.smartptr.weak/util.smartptr.weak.spec/
H A Dswap.pass.cpp39 std::weak_ptr<A> w2(p2);
40 swap(w1, w2);
43 assert(w2.use_count() == 1);
44 assert(w2.lock().get() == ptr1);
/external/smack/src/org/xbill/DNS/
H A DFormattedTime.java16 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 Dstacking_controller_unittest.cc40 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 ::wm::AddTransientChild(w2.get(), w1.get());
/external/chromium_org/ui/views/widget/desktop_aura/
H A Ddesktop_focus_rules_unittest.cc38 // Two widgets (each with a DesktopNativeWidgetAura). |w2| has a child Window
42 scoped_ptr<views::Widget> w2(CreateDesktopWidget());
47 w2->GetNativeView()->AddChild(w2_child);
49 aura::client::GetFocusClient(w2->GetNativeView())->FocusWindow(w2_child);
51 aura::client::GetFocusClient(w2->GetNativeView())->GetFocusedWindow();
52 EXPECT_TRUE((focused == NULL) || w2->GetNativeView()->Contains(focused));
55 w2.reset();
/external/srec/tools/thirdparty/OpenFst/fst/lib/
H A Dfloat-weight.h68 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 Dweight.h132 bool operator()(const W &w1, const W &w2) const {
133 return (Plus(w1, w2) == w1) && w1 != w2;
/external/chromium_org/ash/wm/dock/
H A Ddocked_window_layout_manager_unittest.cc401 scoped_ptr<aura::Window> w2(CreateTestWindow(gfx::Rect(0, 0, 210, 202)));
403 DragToVerticalPositionAndToEdge(DOCKED_EDGE_RIGHT, w2.get(), 300);
409 EXPECT_EQ(w2->GetRootWindow()->bounds().right(),
410 w2->GetBoundsInScreen().right());
411 EXPECT_EQ(kShellWindowId_DockedContainer, w2->parent()->id());
417 int gap2 = w2->GetBoundsInScreen().y() - w1->GetBoundsInScreen().bottom();
418 int gap3 = work_area.bottom() - w2->GetBoundsInScreen().bottom();
430 scoped_ptr<aura::Window> w2(CreateTestWindow(gfx::Rect(0, 0, 210, 202)));
432 DragToVerticalPositionAndToEdge(DOCKED_EDGE_RIGHT, w2.get(), 300);
438 EXPECT_EQ(w2
[all...]
H A Ddocked_window_resizer_unittest.cc544 scoped_ptr<aura::Window> w2(CreateTestWindow(gfx::Rect(0, 0, 201, 201)));
546 DragToVerticalPositionAndToEdge(DOCKED_EDGE_RIGHT, w2.get(), 50);
557 EXPECT_EQ(w2->GetRootWindow()->GetBoundsInScreen().right(),
558 w2->GetBoundsInScreen().right());
559 EXPECT_EQ(kShellWindowId_DockedContainer, w2->parent()->id());
562 const int left_edge = w2->bounds().x();
563 ASSERT_NO_FATAL_FAILURE(DragStart(w2.get()));
576 EXPECT_EQ(left_edge - 32, w2->GetBoundsInScreen().x());
577 EXPECT_EQ(kShellWindowId_DefaultContainer, w2->parent()->id());
593 scoped_ptr<aura::Window> w2(CreateTestWindowInShellWithDelegateAndTyp
[all...]
/external/chromium_org/ui/views/corewm/
H A Dcapture_controller_unittest.cc106 scoped_ptr<aura::Window> w2(
111 w2->SetCapture();
128 scoped_ptr<aura::Window> w2(
130 w2->SetCapture();
131 EXPECT_EQ(w2.get(), GetCaptureWindow());
132 EXPECT_EQ(w2.get(), GetSecondCaptureWindow());
149 scoped_ptr<aura::Window> w2(
151 w2->SetCapture();
152 EXPECT_EQ(w2.get(), GetCaptureWindow());
153 EXPECT_EQ(w2
[all...]

Completed in 463 milliseconds

123456789