MCPcopy Create free account
hub / github.com/apache/trafficserver / step

Function step

lib/catch2/catch.hpp:11536–11545  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11534
11535template <typename FP>
11536FP step(FP start, FP direction, uint64_t steps) {
11537 for (uint64_t i = 0; i < steps; ++i) {
11538#if defined(CATCH_CONFIG_GLOBAL_NEXTAFTER)
11539 start = Catch::nextafter(start, direction);
11540#else
11541 start = std::nextafter(start, direction);
11542#endif
11543 }
11544 return start;
11545}
11546
11547// Performs equivalent check of std::fabs(lhs - rhs) <= margin
11548// But without the subtraction to allow for INFINITY in comparison

Callers 1

describeMethod · 0.85

Calls 1

nextafterFunction · 0.85

Tested by

no test coverage detected