mirror of
https://github.com/boostorg/multiprecision.git
synced 2026-01-27 07:02:10 +00:00
Restore CI
This commit is contained in:
@@ -152,15 +152,12 @@ namespace local
|
||||
// and base these on the actual range of the exponent10 member of limits.
|
||||
// The use of the digits member here is a strange workaround that
|
||||
// still needs to be investigated on GCC's 10-bit x86 long double.
|
||||
using local_exp10_float_type =
|
||||
typename std::conditional<std::is_same<long double, float_type>::value, double, float_type>::type;
|
||||
|
||||
static std::uniform_int_distribution<unsigned>
|
||||
dist_exp
|
||||
(
|
||||
0,
|
||||
(unsigned) ( float( std::numeric_limits<local_exp10_float_type>::max_exponent10)
|
||||
* float((std::numeric_limits<local_exp10_float_type>::max_exponent10 < 100) ? 0.3F : 0.4F))
|
||||
((std::numeric_limits<float_type>::digits10 < 10) ? 13
|
||||
: ((std::numeric_limits<float_type>::digits10 < 20) ? 85 : 1035))
|
||||
);
|
||||
|
||||
std::string str_exp = ((exp_is_neg == false) ? "E+" : "E-");
|
||||
@@ -373,16 +370,16 @@ namespace local
|
||||
|
||||
int main()
|
||||
{
|
||||
#if defined(CPP_DOUBLE_FLOAT_REDUCE_TEST_DEPTH)
|
||||
constexpr unsigned int test_cases_built_in = 5000U;
|
||||
#if !defined(CPP_DOUBLE_FLOAT_REDUCE_TEST_DEPTH)
|
||||
constexpr unsigned int test_cases_built_in = (unsigned int) (1ULL << 17U);
|
||||
#else
|
||||
constexpr unsigned int test_cases_built_in = 2ULL << 16U;
|
||||
constexpr unsigned int test_cases_built_in = (unsigned int) (1ULL << 14U);
|
||||
#endif
|
||||
|
||||
#if defined(CPP_DOUBLE_FLOAT_REDUCE_TEST_DEPTH)
|
||||
constexpr unsigned int test_cases_float128 = 1000U;
|
||||
#if !defined(CPP_DOUBLE_FLOAT_REDUCE_TEST_DEPTH)
|
||||
constexpr unsigned int test_cases_float128 = (unsigned int) (1ULL << 15U);
|
||||
#else
|
||||
constexpr unsigned int test_cases_float128 = 20000U;
|
||||
constexpr unsigned int test_cases_float128 = (unsigned int) (1ULL << 12U);
|
||||
#endif
|
||||
|
||||
const bool result_flt__is_ok = local::test_arithmetic<float> (test_cases_built_in); std::cout << "result_flt__is_ok: " << std::boolalpha << result_flt__is_ok << std::endl;
|
||||
|
||||
Reference in New Issue
Block a user