| 8747 | |
| 8748 | template <typename FP> |
| 8749 | FP step(FP start, FP direction, uint64_t steps) { |
| 8750 | for (uint64_t i = 0; i < steps; ++i) { |
| 8751 | start = Catch::nextafter(start, direction); |
| 8752 | } |
| 8753 | return start; |
| 8754 | } |
| 8755 | |
| 8756 | // Performs equivalent check of std::fabs(lhs - rhs) <= margin |
| 8757 | // But without the subtraction to allow for INFINITY in comparison |