Commit 7881b64a authored by Christoph Conrads's avatar Christoph Conrads

Fix compilation without 128-bit integers

parent 53bb1edd
......@@ -162,15 +162,21 @@ int main()
run<rlxt::ranlux8_base>(num_draws);
run<rlxt::ranlux16_base>(num_draws);
run<rlxt::ranlux32_base>(num_draws);
#if RANLUX_TOOLS_HAS_INT128
run<rlxt::ranlux64_base>(num_draws);
#endif
run<rlxt::fast_ranlux8>(num_draws);
run<rlxt::fast_ranlux16>(num_draws);
run<rlxt::fast_ranlux32>(num_draws);
#if RANLUX_TOOLS_HAS_INT128
run<rlxt::fast_ranlux64>(num_draws);
#endif
run<rlxt::ranlux8>(num_draws);
run<rlxt::ranlux16>(num_draws);
run<rlxt::ranlux32>(num_draws);
#if RANLUX_TOOLS_HAS_INT128
run<rlxt::ranlux64>(num_draws);
#endif
run<std::ranlux24>(num_draws);
run<std::mt19937>(num_draws);
run<std::mt19937_64>(num_draws);
......
......@@ -77,15 +77,17 @@ int main(int argc, const char** argv)
if(false) {}
COMPARE_AND_CALL(ranlux8_base)
COMPARE_AND_CALL(ranlux16_base)
COMPARE_AND_CALL(ranlux32_base)
COMPARE_AND_CALL(ranlux64_base)
COMPARE_AND_CALL(ranlux8)
COMPARE_AND_CALL(fast_ranlux8)
COMPARE_AND_CALL(ranlux16_base)
COMPARE_AND_CALL(fast_ranlux16)
COMPARE_AND_CALL(fast_ranlux32)
COMPARE_AND_CALL(fast_ranlux64)
COMPARE_AND_CALL(ranlux8)
COMPARE_AND_CALL(ranlux16)
COMPARE_AND_CALL(ranlux32_base)
COMPARE_AND_CALL(fast_ranlux32)
COMPARE_AND_CALL(ranlux32)
#if RANLUX_TOOLS_HAS_INT128
COMPARE_AND_CALL(ranlux64_base)
COMPARE_AND_CALL(fast_ranlux64)
COMPARE_AND_CALL(ranlux64)
#endif
}
......@@ -47,9 +47,8 @@ namespace impl_random_number_engine
template<std::size_t w>
using big_integer_t = typename std::conditional<
w == 16u, std::uint32_t, typename std::conditional<
w == 32u, std::uint64_t, typename std::conditional<
w == 64u, unsigned __int128, void
>::type>::type>::type;
w == 32u, std::uint64_t, void
>::type>::type;
#endif
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment