Home
last modified time | relevance | path

Searched refs:fptest_close_pct (Results 1 – 2 of 2) sorted by relevance

/external/llvm-project/libcxx/test/std/numerics/numeric.ops/numeric.ops.midpoint/
Dmidpoint.float.pass.cpp54 assert((fptest_close_pct(std::midpoint(T( 1.3), T(11.4)), T( 6.35), pct))); in fp_test()
55 assert((fptest_close_pct(std::midpoint(T(11.33), T(31.45)), T(21.39), pct))); in fp_test()
56 assert((fptest_close_pct(std::midpoint(T(-1.3), T(11.4)), T( 5.05), pct))); in fp_test()
57 assert((fptest_close_pct(std::midpoint(T(11.4), T(-1.3)), T( 5.05), pct))); in fp_test()
58 assert((fptest_close_pct(std::midpoint(T(0.1), T(0.4)), T(0.25), pct))); in fp_test()
60 assert((fptest_close_pct(std::midpoint(T(11.2345), T(14.5432)), T(12.88885), pct))); in fp_test()
63 assert((fptest_close_pct(std::midpoint(T(2.71828182845904523536028747135266249775724709369995), in fp_test()
67 assert((fptest_close_pct(std::midpoint(maxV, T(0)), maxV/2, pct))); in fp_test()
68 assert((fptest_close_pct(std::midpoint(T(0), maxV), maxV/2, pct))); in fp_test()
69 assert((fptest_close_pct(std::midpoint(minV, T(0)), minV/2, pct))); in fp_test()
[all …]
/external/llvm-project/libcxx/test/support/
Dfp_compare.h33 bool fptest_close_pct(T val, T expected, T percent) in fptest_close_pct() function