Commit 692e0489 authored by Jérôme Benoit's avatar Jérôme Benoit
Browse files

workaround __int128__ ill-fallback on 32bit arch

Description: upstream: workaround: __int128__ ill-fallback on 32bit arch
 Workaround a compile time issue due to a ill-fallback of the __int128__ type
 as supported by GCC on 64bit arch (see src/pcg-cpp/include/pcg_uint128.hpp).
 However this patch is useless since the building fails at link time due
 to architecture limitations on 32bit arch.
Origin: vendor, Debian
Comment: for the record only
Author: Jerome Benoit <calculus@rezozer.net>
Last-Update: 2022-08-27
parent 8151f1f6
Pipeline #976 passed with stage
in 49 minutes and 49 seconds
......@@ -20,8 +20,12 @@
#include "pcg_random.hpp"
#if __SIZEOF_INT128__ && !PCG_FORCE_EMULATED_128BIT_MATH
//typedef std::mt19937_64 rng_t;
typedef pcg64_k1024 rng_t;
#else
typedef pcg32_k1024 rng_t;
#endif
rng_t get_rng(size_t seed);
......
Supports Markdown
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