Lines Matching refs:w1
68 inline bool operator==(const FloatWeight &w1, const FloatWeight &w2) {
71 volatile float v1 = w1.Value();
76 inline bool operator!=(const FloatWeight &w1, const FloatWeight &w2) {
77 return !(w1 == w2);
80 inline bool ApproxEqual(const FloatWeight &w1, const FloatWeight &w2,
82 return w1.Value() <= w2.Value() + delta && w2.Value() <= w1.Value() + delta;
152 inline TropicalWeight Plus(const TropicalWeight &w1, in Plus() argument
154 return w1.Value() < w2.Value() ? w1 : w2; in Plus()
157 inline TropicalWeight Times(const TropicalWeight &w1, in Times() argument
159 float f1 = w1.Value(), f2 = w2.Value(); in Times()
161 return w1; in Times()
168 inline TropicalWeight Divide(const TropicalWeight &w1,
171 float f1 = w1.Value(), f2 = w2.Value();
219 inline LogWeight Plus(const LogWeight &w1, const LogWeight &w2) { in Plus() argument
220 float f1 = w1.Value(), f2 = w2.Value(); in Plus()
224 return w1; in Plus()
231 inline LogWeight Times(const LogWeight &w1, const LogWeight &w2) { in Times() argument
232 float f1 = w1.Value(), f2 = w2.Value(); in Times()
234 return w1; in Times()
241 inline LogWeight Divide(const LogWeight &w1,
244 float f1 = w1.Value(), f2 = w2.Value();