Lines Matching refs:__r

1687         const result_type __r = __m % __a;
1689 const result_type __t1 = __r * (__x / __q);
1705 const result_type __r = __m % __a;
1707 const result_type __t1 = __r * (__x / __q);
1749 const result_type __r = __m % __a;
1751 const result_type __t1 = __r * (__x / __q);
1769 const result_type __r = __m % __a;
1771 const result_type __t1 = __r * (__x / __q);
2013 template <class _UIntType, size_t __w, size_t __n, size_t __m, size_t __r,
2055 template <class _UIntType, size_t __w, size_t __n, size_t __m, size_t __r,
2073 static_assert(__r <= __w, "mersenne_twister_engine invalid parameters");
2093 static _LIBCPP_CONSTEXPR const size_t mask_bits = __r;
2221 template <class _UIntType, size_t __w, size_t __n, size_t __m, size_t __r,
2225 …mersenne_twister_engine<_UIntType, __w, __n, __m, __r, __a, __u, __d, __s, __b, __t, __c, __l, __f…
2227 template <class _UIntType, size_t __w, size_t __n, size_t __m, size_t __r,
2231 …mersenne_twister_engine<_UIntType, __w, __n, __m, __r, __a, __u, __d, __s, __b, __t, __c, __l, __f…
2233 template <class _UIntType, size_t __w, size_t __n, size_t __m, size_t __r,
2237 …mersenne_twister_engine<_UIntType, __w, __n, __m, __r, __a, __u, __d, __s, __b, __t, __c, __l, __f…
2239 template <class _UIntType, size_t __w, size_t __n, size_t __m, size_t __r,
2243 …mersenne_twister_engine<_UIntType, __w, __n, __m, __r, __a, __u, __d, __s, __b, __t, __c, __l, __f…
2245 template <class _UIntType, size_t __w, size_t __n, size_t __m, size_t __r,
2248 …_LIBCPP_CONSTEXPR const typename mersenne_twister_engine<_UIntType, __w, __n, __m, __r, __a, __u, …
2249 …mersenne_twister_engine<_UIntType, __w, __n, __m, __r, __a, __u, __d, __s, __b, __t, __c, __l, __f…
2251 template <class _UIntType, size_t __w, size_t __n, size_t __m, size_t __r,
2255 …mersenne_twister_engine<_UIntType, __w, __n, __m, __r, __a, __u, __d, __s, __b, __t, __c, __l, __f…
2257 template <class _UIntType, size_t __w, size_t __n, size_t __m, size_t __r,
2260 …_LIBCPP_CONSTEXPR const typename mersenne_twister_engine<_UIntType, __w, __n, __m, __r, __a, __u, …
2261 …mersenne_twister_engine<_UIntType, __w, __n, __m, __r, __a, __u, __d, __s, __b, __t, __c, __l, __f…
2263 template <class _UIntType, size_t __w, size_t __n, size_t __m, size_t __r,
2267 …mersenne_twister_engine<_UIntType, __w, __n, __m, __r, __a, __u, __d, __s, __b, __t, __c, __l, __f…
2269 template <class _UIntType, size_t __w, size_t __n, size_t __m, size_t __r,
2272 …_LIBCPP_CONSTEXPR const typename mersenne_twister_engine<_UIntType, __w, __n, __m, __r, __a, __u, …
2273 …mersenne_twister_engine<_UIntType, __w, __n, __m, __r, __a, __u, __d, __s, __b, __t, __c, __l, __f…
2275 template <class _UIntType, size_t __w, size_t __n, size_t __m, size_t __r,
2279 …mersenne_twister_engine<_UIntType, __w, __n, __m, __r, __a, __u, __d, __s, __b, __t, __c, __l, __f…
2281 template <class _UIntType, size_t __w, size_t __n, size_t __m, size_t __r,
2284 …_LIBCPP_CONSTEXPR const typename mersenne_twister_engine<_UIntType, __w, __n, __m, __r, __a, __u, …
2285 …mersenne_twister_engine<_UIntType, __w, __n, __m, __r, __a, __u, __d, __s, __b, __t, __c, __l, __f…
2287 template <class _UIntType, size_t __w, size_t __n, size_t __m, size_t __r,
2291 …mersenne_twister_engine<_UIntType, __w, __n, __m, __r, __a, __u, __d, __s, __b, __t, __c, __l, __f…
2293 template <class _UIntType, size_t __w, size_t __n, size_t __m, size_t __r,
2296 …_LIBCPP_CONSTEXPR const typename mersenne_twister_engine<_UIntType, __w, __n, __m, __r, __a, __u, …
2297 …mersenne_twister_engine<_UIntType, __w, __n, __m, __r, __a, __u, __d, __s, __b, __t, __c, __l, __f…
2299 template <class _UIntType, size_t __w, size_t __n, size_t __m, size_t __r,
2302 …_LIBCPP_CONSTEXPR const typename mersenne_twister_engine<_UIntType, __w, __n, __m, __r, __a, __u, …
2303 …mersenne_twister_engine<_UIntType, __w, __n, __m, __r, __a, __u, __d, __s, __b, __t, __c, __l, __f…
2305 template <class _UIntType, size_t __w, size_t __n, size_t __m, size_t __r,
2309 mersenne_twister_engine<_UIntType, __w, __n, __m, __r, __a, __u, __d, __s, __b,
2319 template <class _UIntType, size_t __w, size_t __n, size_t __m, size_t __r,
2324 mersenne_twister_engine<_UIntType, __w, __n, __m, __r, __a, __u, __d, __s, __b,
2332 const result_type __mask = __r == _Dt ? result_type(~0) :
2333 (result_type(1) << __r) - result_type(1);
2344 template <class _UIntType, size_t __w, size_t __n, size_t __m, size_t __r,
2349 mersenne_twister_engine<_UIntType, __w, __n, __m, __r, __a, __u, __d, __s, __b,
2358 const result_type __mask = __r == _Dt ? result_type(~0) :
2359 (result_type(1) << __r) - result_type(1);
2370 template <class _UIntType, size_t __w, size_t __n, size_t __m, size_t __r,
2374 mersenne_twister_engine<_UIntType, __w, __n, __m, __r, __a, __u, __d, __s, __b,
2378 const result_type __mask = __r == _Dt ? result_type(~0) :
2379 (result_type(1) << __r) - result_type(1);
2504 template<class _UIntType, size_t __w, size_t __s, size_t __r>
2532 template<class _UIntType, size_t __w, size_t __s, size_t __r>
2540 result_type __x_[__r];
2548 static_assert(__s < __r, "subtract_with_carry_engine invalid parameters");
2558 static _LIBCPP_CONSTEXPR const size_t long_lag = __r;
2630 template<class _UIntType, size_t __w, size_t __s, size_t __r>
2631 _LIBCPP_CONSTEXPR const size_t subtract_with_carry_engine<_UIntType, __w, __s, __r>::word_size;
2633 template<class _UIntType, size_t __w, size_t __s, size_t __r>
2634 _LIBCPP_CONSTEXPR const size_t subtract_with_carry_engine<_UIntType, __w, __s, __r>::short_lag;
2636 template<class _UIntType, size_t __w, size_t __s, size_t __r>
2637 _LIBCPP_CONSTEXPR const size_t subtract_with_carry_engine<_UIntType, __w, __s, __r>::long_lag;
2639 template<class _UIntType, size_t __w, size_t __s, size_t __r>
2640 … _LIBCPP_CONSTEXPR const typename subtract_with_carry_engine<_UIntType, __w, __s, __r>::result_type
2641 subtract_with_carry_engine<_UIntType, __w, __s, __r>::default_seed;
2643 template<class _UIntType, size_t __w, size_t __s, size_t __r>
2645 subtract_with_carry_engine<_UIntType, __w, __s, __r>::seed(result_type __sd,
2650 for (size_t __i = 0; __i < __r; ++__i)
2652 __c_ = __x_[__r-1] == 0;
2656 template<class _UIntType, size_t __w, size_t __s, size_t __r>
2658 subtract_with_carry_engine<_UIntType, __w, __s, __r>::seed(result_type __sd,
2663 for (size_t __i = 0; __i < __r; ++__i)
2669 __c_ = __x_[__r-1] == 0;
2673 template<class _UIntType, size_t __w, size_t __s, size_t __r>
2676 subtract_with_carry_engine<_UIntType, __w, __s, __r>::__seed(_Sseq& __q,
2680 uint32_t __ar[__r * __k];
2681 __q.generate(__ar, __ar + __r * __k);
2682 for (size_t __i = 0; __i < __r; ++__i)
2684 __c_ = __x_[__r-1] == 0;
2688 template<class _UIntType, size_t __w, size_t __s, size_t __r>
2691 subtract_with_carry_engine<_UIntType, __w, __s, __r>::__seed(_Sseq& __q,
2695 uint32_t __ar[__r * __k];
2696 __q.generate(__ar, __ar + __r * __k);
2697 for (size_t __i = 0; __i < __r; ++__i)
2700 __c_ = __x_[__r-1] == 0;
2704 template<class _UIntType, size_t __w, size_t __s, size_t __r>
2706 subtract_with_carry_engine<_UIntType, __w, __s, __r>::operator()()
2708 const result_type& __xs = __x_[(__i_ + (__r - __s)) % __r];
2713 __i_ = (__i_ + 1) % __r;
2815 template<class _Engine, size_t __p, size_t __r>
2821 static_assert( 0 < __r, "discard_block_engine invalid parameters");
2822 static_assert(__r <= __p, "discard_block_engine invalid parameters");
2823 static_assert(__r <= INT_MAX, "discard_block_engine invalid parameters");
2830 static _LIBCPP_CONSTEXPR const size_t used_block = __r;
2915 template<class _Engine, size_t __p, size_t __r>
2916 _LIBCPP_CONSTEXPR const size_t discard_block_engine<_Engine, __p, __r>::block_size;
2918 template<class _Engine, size_t __p, size_t __r>
2919 _LIBCPP_CONSTEXPR const size_t discard_block_engine<_Engine, __p, __r>::used_block;
2921 template<class _Engine, size_t __p, size_t __r>
2922 typename discard_block_engine<_Engine, __p, __r>::result_type
2923 discard_block_engine<_Engine, __p, __r>::operator()()
2925 if (__n_ >= static_cast<int>(__r))
2927 __e_.discard(__p - __r);
3591 result_type __r = 1664525 * _Tp(__first[0] ^ __first[__p]
3593 __first[__p] += __r;
3594 __r += __s;
3595 __first[__q] += __r;
3596 __first[0] = __r;
3602 result_type __r = 1664525 * _Tp(__first[__kmodn] ^ __first[__kpmodn]
3604 __first[__kpmodn] += __r;
3605 __r += __kmodn + __v_[__k-1];
3606 __first[(__k + __q) % __n] += __r;
3607 __first[__kmodn] = __r;
3613 result_type __r = 1664525 * _Tp(__first[__kmodn] ^ __first[__kpmodn]
3615 __first[__kpmodn] += __r;
3616 __r += __kmodn;
3617 __first[(__k + __q) % __n] += __r;
3618 __first[__kmodn] = __r;
3624 result_type __r = 1566083941 * _Tp(__first[__kmodn] +
3627 __first[__kpmodn] ^= __r;
3628 __r -= __kmodn;
3629 __first[(__k + __q) % __n] ^= __r;
3630 __first[__kmodn] = __r;
4694 double __r = (0.5 - __difmuk) / __pr.__s_;
4695 double __r2 = __r * __r;