- static constexpr size_t value =
- (std::numeric_limits<UIntType>::digits + 31) / 32 + 3;
-};
-
-template <class UIntType, UIntType a, UIntType c, UIntType m>
-constexpr size_t
-StateSize<std::linear_congruential_engine<UIntType, a, c, m>>::value;
-
-template <class UIntType, size_t w, size_t n, size_t m, size_t r,
- UIntType a, size_t u, UIntType d, size_t s,
- UIntType b, size_t t,
- UIntType c, size_t l, UIntType f>
-struct StateSize<std::mersenne_twister_engine<UIntType, w, n, m, r,
- a, u, d, s, b, t, c, l, f>> {
- static constexpr size_t value =
- std::mersenne_twister_engine<UIntType, w, n, m, r,
- a, u, d, s, b, t, c, l, f>::state_size;
-};
-
-template <class UIntType, size_t w, size_t n, size_t m, size_t r,
- UIntType a, size_t u, UIntType d, size_t s,
- UIntType b, size_t t,
- UIntType c, size_t l, UIntType f>
-constexpr size_t
-StateSize<std::mersenne_twister_engine<UIntType, w, n, m, r,
- a, u, d, s, b, t, c, l, f>>::value;
-
-#if FOLLY_HAVE_EXTRANDOM_SFMT19937
-
-template <class UIntType, size_t m, size_t pos1, size_t sl1, size_t sl2,
- size_t sr1, size_t sr2, uint32_t msk1, uint32_t msk2, uint32_t msk3,
- uint32_t msk4, uint32_t parity1, uint32_t parity2, uint32_t parity3,
- uint32_t parity4>
-struct StateSize<__gnu_cxx::simd_fast_mersenne_twister_engine<
- UIntType, m, pos1, sl1, sl2, sr1, sr2, msk1, msk2, msk3, msk4,
- parity1, parity2, parity3, parity4>> {
- static constexpr size_t value =
- __gnu_cxx::simd_fast_mersenne_twister_engine<
- UIntType, m, pos1, sl1, sl2, sr1, sr2,
- msk1, msk2, msk3, msk4,
- parity1, parity2, parity3, parity4>::state_size;