Searched refs:abs_tolerance (Results 1 – 2 of 2) sorted by relevance
/external/pigweed/pw_assert/public/pw_assert/internal/ |
D | check_impl.h | 114 #define PW_CHECK_FLOAT_NEAR(arga, argb, abs_tolerance, ...) \ argument 115 _PW_CHECK_FLOAT_NEAR(arga, argb, abs_tolerance, __VA_ARGS__) 270 #define _PW_CHECK_FLOAT_NEAR(argument_a, argument_b, abs_tolerance, ...) \ argument 272 PW_CHECK_FLOAT_EXACT_GE(abs_tolerance, 0.0f); \ 274 float evaluated_argument_b_min = (float)(argument_b)-abs_tolerance; \ 275 float evaluated_argument_b_max = (float)(argument_b) + abs_tolerance; \
|
/external/pigweed/pw_assert/ |
D | docs.rst | 336 .. cpp:function:: PW_CHECK_FLOAT_NEAR(a, b, abs_tolerance) 337 .. cpp:function:: PW_CHECK_FLOAT_NEAR(a, b, abs_tolerance, format, ...) 338 .. cpp:function:: PW_DCHECK_FLOAT_NEAR(a, b, abs_tolerance) 339 .. cpp:function:: PW_DCHECK_FLOAT_NEAR(a, b, abs_tolerance, format, ...) 341 Asserts that ``(a >= b - abs_tolerance) && (a <= b + abs_tolerance)`` is true, 342 where ``a``, ``b``, and ``abs_tolerance`` are converted to ``float``. 345 This also asserts that ``abs_tolerance >= 0``.
|