Searched refs:relative_margin (Results 1 – 3 of 3) sorted by relevance
/external/protobuf/src/google/protobuf/stubs/ |
D | mathutil.h | 154 T relative_margin = static_cast<T>(fraction * Max(Abs(x), Abs(y))); in WithinFractionOrMargin() local 155 return AbsDiff(x, y) <= Max(margin, relative_margin); in WithinFractionOrMargin()
|
/external/cronet/third_party/protobuf/src/google/protobuf/stubs/ |
D | mathutil.h | 154 T relative_margin = static_cast<T>(fraction * Max(Abs(x), Abs(y))); in WithinFractionOrMargin() local 155 return AbsDiff(x, y) <= Max(margin, relative_margin); in WithinFractionOrMargin()
|
/external/cronet/net/third_party/quiche/src/quiche/quic/test_tools/ |
D | quic_test_utils.h | 1582 void ExpectApproxEq(T expected, T actual, float relative_margin) { in ExpectApproxEq() argument 1585 ASSERT_LE(relative_margin, 1); in ExpectApproxEq() 1586 ASSERT_GE(relative_margin, 0); in ExpectApproxEq() 1588 T absolute_margin = expected * relative_margin; in ExpectApproxEq() 1594 #define EXPECT_APPROX_EQ(expected, actual, relative_margin) \ argument 1596 SCOPED_TRACE(testing::Message() << "relative_margin:" << relative_margin); \ 1597 quic::test::ExpectApproxEq(expected, actual, relative_margin); \
|