Lines Matching refs:__m
1670 unsigned long long __m, unsigned long long _Mp,
1671 bool _MightOverflow = (__a != 0 && __m != 0 && __m-1 > (_Mp-__c)/__a)>
1676 template <unsigned long long __a, unsigned long long __c, unsigned long long __m>
1677 struct __lce_ta<__a, __c, __m, (unsigned long long)(~0), true>
1684 const result_type __q = __m / __a;
1685 const result_type __r = __m % __a;
1688 __x = __t0 + (__t0 < __t1) * __m - __t1;
1689 __x += __c - (__x >= __m - __c) * __m;
1694 template <unsigned long long __a, unsigned long long __m>
1695 struct __lce_ta<__a, 0, __m, (unsigned long long)(~0), true>
1702 const result_type __q = __m / __a;
1703 const result_type __r = __m % __a;
1706 __x = __t0 + (__t0 < __t1) * __m - __t1;
1711 template <unsigned long long __a, unsigned long long __c, unsigned long long __m>
1712 struct __lce_ta<__a, __c, __m, (unsigned long long)(~0), false>
1718 return (__a * __x + __c) % __m;
1744 const result_type __m = static_cast<result_type>(_Mp);
1746 const result_type __q = __m / __a;
1747 const result_type __r = __m % __a;
1750 __x = __t0 + (__t0 < __t1) * __m - __t1;
1751 __x += __c - (__x >= __m - __c) * __m;
1764 const result_type __m = static_cast<result_type>(_Mp);
1766 const result_type __q = __m / __a;
1767 const result_type __r = __m % __a;
1770 __x = __t0 + (__t0 < __t1) * __m - __t1;
1784 const result_type __m = static_cast<result_type>(_Mp);
1785 return (__a * __x + __c) % __m;
1804 template <unsigned long long __a, unsigned long long __c, unsigned long long __m, bool __b>
1805 struct __lce_ta<__a, __c, __m, (unsigned short)(~0), __b>
1811 return static_cast<result_type>(__lce_ta<__a, __c, __m, unsigned(~0)>::next(__x));
1815 template <class _UIntType, _UIntType __a, _UIntType __c, _UIntType __m>
1831 template <class _UIntType, _UIntType __a, _UIntType __c, _UIntType __m>
1843 static_assert(__m == 0 || __a < __m, "linear_congruential_engine invalid parameters");
1844 static_assert(__m == 0 || __c < __m, "linear_congruential_engine invalid parameters");
1847 static _LIBCPP_CONSTEXPR const result_type _Max = __m - 1u;
1853 static _LIBCPP_CONSTEXPR const result_type modulus = __m;
1871 {seed(integral_constant<bool, __m == 0>(),
1882 1 + (__m == 0 ? (sizeof(result_type) * __CHAR_BIT__ - 1)/32
1883 : (__m > 0x100000000ull))>());}
1888 {return __x_ = static_cast<result_type>(__lce_ta<__a, __c, __m, _Mp>::next(__x_));}
1908 void seed(false_type, true_type, result_type __s) {__x_ = __s % __m == 0 ?
1909 1 : __s % __m;}
1911 void seed(false_type, false_type, result_type __s) {__x_ = __s % __m;}
1933 template <class _UIntType, _UIntType __a, _UIntType __c, _UIntType __m>
1934 … _LIBCPP_CONSTEXPR const typename linear_congruential_engine<_UIntType, __a, __c, __m>::result_type
1935 linear_congruential_engine<_UIntType, __a, __c, __m>::multiplier;
1937 template <class _UIntType, _UIntType __a, _UIntType __c, _UIntType __m>
1938 … _LIBCPP_CONSTEXPR const typename linear_congruential_engine<_UIntType, __a, __c, __m>::result_type
1939 linear_congruential_engine<_UIntType, __a, __c, __m>::increment;
1941 template <class _UIntType, _UIntType __a, _UIntType __c, _UIntType __m>
1942 … _LIBCPP_CONSTEXPR const typename linear_congruential_engine<_UIntType, __a, __c, __m>::result_type
1943 linear_congruential_engine<_UIntType, __a, __c, __m>::modulus;
1945 template <class _UIntType, _UIntType __a, _UIntType __c, _UIntType __m>
1946 … _LIBCPP_CONSTEXPR const typename linear_congruential_engine<_UIntType, __a, __c, __m>::result_type
1947 linear_congruential_engine<_UIntType, __a, __c, __m>::default_seed;
1949 template <class _UIntType, _UIntType __a, _UIntType __c, _UIntType __m>
1952 linear_congruential_engine<_UIntType, __a, __c, __m>::__seed(_Sseq& __q,
1958 result_type __s = static_cast<result_type>(__ar[3] % __m);
1962 template <class _UIntType, _UIntType __a, _UIntType __c, _UIntType __m>
1965 linear_congruential_engine<_UIntType, __a, __c, __m>::__seed(_Sseq& __q,
1972 ((uint64_t)__ar[4] << 32)) % __m);
1977 class _UIntType, _UIntType __a, _UIntType __c, _UIntType __m>
1981 const linear_congruential_engine<_UIntType, __a, __c, __m>& __x)
1990 class _UIntType, _UIntType __a, _UIntType __c, _UIntType __m>
1993 linear_congruential_engine<_UIntType, __a, __c, __m>& __x)
2011 template <class _UIntType, size_t __w, size_t __n, size_t __m, size_t __r,
2053 template <class _UIntType, size_t __w, size_t __n, size_t __m, size_t __r,
2066 static_assert( 0 < __m, "mersenne_twister_engine invalid parameters");
2067 static_assert(__m <= __n, "mersenne_twister_engine invalid parameters");
2090 static _LIBCPP_CONSTEXPR const size_t shift_size = __m;
2219 template <class _UIntType, size_t __w, size_t __n, size_t __m, size_t __r,
2223 …mersenne_twister_engine<_UIntType, __w, __n, __m, __r, __a, __u, __d, __s, __b, __t, __c, __l, __f…
2225 template <class _UIntType, size_t __w, size_t __n, size_t __m, size_t __r,
2229 …mersenne_twister_engine<_UIntType, __w, __n, __m, __r, __a, __u, __d, __s, __b, __t, __c, __l, __f…
2231 template <class _UIntType, size_t __w, size_t __n, size_t __m, size_t __r,
2235 …mersenne_twister_engine<_UIntType, __w, __n, __m, __r, __a, __u, __d, __s, __b, __t, __c, __l, __f…
2237 template <class _UIntType, size_t __w, size_t __n, size_t __m, size_t __r,
2241 …mersenne_twister_engine<_UIntType, __w, __n, __m, __r, __a, __u, __d, __s, __b, __t, __c, __l, __f…
2243 template <class _UIntType, size_t __w, size_t __n, size_t __m, size_t __r,
2246 …_LIBCPP_CONSTEXPR const typename mersenne_twister_engine<_UIntType, __w, __n, __m, __r, __a, __u, …
2247 …mersenne_twister_engine<_UIntType, __w, __n, __m, __r, __a, __u, __d, __s, __b, __t, __c, __l, __f…
2249 template <class _UIntType, size_t __w, size_t __n, size_t __m, size_t __r,
2253 …mersenne_twister_engine<_UIntType, __w, __n, __m, __r, __a, __u, __d, __s, __b, __t, __c, __l, __f…
2255 template <class _UIntType, size_t __w, size_t __n, size_t __m, size_t __r,
2258 …_LIBCPP_CONSTEXPR const typename mersenne_twister_engine<_UIntType, __w, __n, __m, __r, __a, __u, …
2259 …mersenne_twister_engine<_UIntType, __w, __n, __m, __r, __a, __u, __d, __s, __b, __t, __c, __l, __f…
2261 template <class _UIntType, size_t __w, size_t __n, size_t __m, size_t __r,
2265 …mersenne_twister_engine<_UIntType, __w, __n, __m, __r, __a, __u, __d, __s, __b, __t, __c, __l, __f…
2267 template <class _UIntType, size_t __w, size_t __n, size_t __m, size_t __r,
2270 …_LIBCPP_CONSTEXPR const typename mersenne_twister_engine<_UIntType, __w, __n, __m, __r, __a, __u, …
2271 …mersenne_twister_engine<_UIntType, __w, __n, __m, __r, __a, __u, __d, __s, __b, __t, __c, __l, __f…
2273 template <class _UIntType, size_t __w, size_t __n, size_t __m, size_t __r,
2277 …mersenne_twister_engine<_UIntType, __w, __n, __m, __r, __a, __u, __d, __s, __b, __t, __c, __l, __f…
2279 template <class _UIntType, size_t __w, size_t __n, size_t __m, size_t __r,
2282 …_LIBCPP_CONSTEXPR const typename mersenne_twister_engine<_UIntType, __w, __n, __m, __r, __a, __u, …
2283 …mersenne_twister_engine<_UIntType, __w, __n, __m, __r, __a, __u, __d, __s, __b, __t, __c, __l, __f…
2285 template <class _UIntType, size_t __w, size_t __n, size_t __m, size_t __r,
2289 …mersenne_twister_engine<_UIntType, __w, __n, __m, __r, __a, __u, __d, __s, __b, __t, __c, __l, __f…
2291 template <class _UIntType, size_t __w, size_t __n, size_t __m, size_t __r,
2294 …_LIBCPP_CONSTEXPR const typename mersenne_twister_engine<_UIntType, __w, __n, __m, __r, __a, __u, …
2295 …mersenne_twister_engine<_UIntType, __w, __n, __m, __r, __a, __u, __d, __s, __b, __t, __c, __l, __f…
2297 template <class _UIntType, size_t __w, size_t __n, size_t __m, size_t __r,
2300 …_LIBCPP_CONSTEXPR const typename mersenne_twister_engine<_UIntType, __w, __n, __m, __r, __a, __u, …
2301 …mersenne_twister_engine<_UIntType, __w, __n, __m, __r, __a, __u, __d, __s, __b, __t, __c, __l, __f…
2303 template <class _UIntType, size_t __w, size_t __n, size_t __m, size_t __r,
2307 mersenne_twister_engine<_UIntType, __w, __n, __m, __r, __a, __u, __d, __s, __b,
2316 template <class _UIntType, size_t __w, size_t __n, size_t __m, size_t __r,
2321 mersenne_twister_engine<_UIntType, __w, __n, __m, __r, __a, __u, __d, __s, __b,
2341 template <class _UIntType, size_t __w, size_t __n, size_t __m, size_t __r,
2346 mersenne_twister_engine<_UIntType, __w, __n, __m, __r, __a, __u, __d, __s, __b,
2367 template <class _UIntType, size_t __w, size_t __n, size_t __m, size_t __r,
2371 mersenne_twister_engine<_UIntType, __w, __n, __m, __r, __a, __u, __d, __s, __b,
2378 const size_t __k = (__i_ + __m) % __n;
3023 static _LIBCPP_CONSTEXPR const size_t __m = __log2<_Working_result_type, _Rp>::value;
3024 static _LIBCPP_CONSTEXPR const size_t __n = __get_n<_Working_result_type, _Rp, __w, __m>::value;
3583 const size_t __m = _VSTD::max(__s + 1, __n);
3604 for (size_t __k = __s + 1; __k < __m; ++__k)
3615 for (size_t __k = __m; __k < __m + __n; ++__k)
4380 explicit param_type(result_type __m = 0, result_type __s = 1)
4381 : __nd_(__m, __s) {}
4415 explicit lognormal_distribution(result_type __m = 0, result_type __s = 1)
4416 : __p_(param_type(__m, __s)) {}
5610 explicit param_type(result_type __m = 1, result_type __n = 1)
5611 : __m_(__m), __n_(__n) {}
5632 explicit fisher_f_distribution(result_type __m = 1, result_type __n = 1)
5633 : __p_(param_type(__m, __n)) {}
5707 result_type __m;
5709 __is >> __m >> __n;
5711 __x.param(param_type(__m, __n));