2 // Created by kirill on 8/30/22.
5 #ifndef LLVM_IN_FLOAT_RANGE_TEST_HELPER_H
6 #define LLVM_IN_FLOAT_RANGE_TEST_HELPER_H
10 #define CHECK_DATA(start, stop, mfp_op, f, f_check, count, prec) \
12 uint64_t ustart = FPBits(start).uintval(); \
13 uint64_t ustop = FPBits(stop).uintval(); \
14 for (uint64_t i = 0;; ++i) { \
15 uint64_t v = ustart + (ustop - ustart) * i / count; \
18 float x = FPBits(uint32_t(v)).get_val(); \
20 EXPECT_MPFR_MATCH_ALL_ROUNDING(mfp_op, x, static_cast<float>((f)(x)), \
26 #endif // LLVM_IN_FLOAT_RANGE_TEST_HELPER_H