| /openbsd-src/gnu/llvm/libcxx/include/__random/ |
| H A D | linear_congruential_engine.h | 53 typedef unsigned long long result_type; 55 static result_type next(result_type __x) 58 const result_type __q = __m / __a; 59 const result_type __r = __m % __a; 60 const result_type __t0 = __a * (__x % __q); 61 const result_type __t1 = __r * (__x / __q); 71 typedef unsigned long long result_type; 73 static result_type next(result_type __x) 76 const result_type __q = __m / __a; 77 const result_type __r = __m % __a; [all …]
|
| H A D | gamma_distribution.h | 34 typedef _RealType result_type; typedef 38 result_type __alpha_; 39 result_type __beta_; 44 explicit param_type(result_type __alpha = 1, result_type __beta = 1) 48 result_type alpha() const {return __alpha_;} in alpha() 50 result_type beta() const {return __beta_;} in beta() 69 explicit gamma_distribution(result_type __alpha, result_type __beta = 1) 73 explicit gamma_distribution(result_type __alpha = 1, 74 result_type __beta = 1) 86 result_type operator()(_URNG& __g) in operator() [all …]
|
| H A D | lognormal_distribution.h | 34 typedef _RealType result_type; typedef 38 normal_distribution<result_type> __nd_; 43 explicit param_type(result_type __m = 0, result_type __s = 1) 47 result_type m() const {return __nd_.mean();} in m() 49 result_type s() const {return __nd_.stddev();} in s() 81 explicit lognormal_distribution(result_type __m, result_type __s = 1) 85 explicit lognormal_distribution(result_type __m = 0, 86 result_type __s = 1) 98 result_type operator()(_URNG& __g) in operator() 102 result_type operator()(_URNG& __g, const param_type& __p) in operator() [all …]
|
| H A D | normal_distribution.h | 33 typedef _RealType result_type; typedef 37 result_type __mean_; 38 result_type __stddev_; 43 explicit param_type(result_type __mean = 0, result_type __stddev = 1) 47 result_type mean() const {return __mean_;} in mean() 49 result_type stddev() const {return __stddev_;} in stddev() 61 result_type __v_; 70 explicit normal_distribution(result_type __mean, result_type __stddev = 1) 74 explicit normal_distribution(result_type __mean = 0, 75 result_type __stddev = 1) [all …]
|
| H A D | fisher_f_distribution.h | 32 typedef _RealType result_type; typedef 36 result_type __m_; 37 result_type __n_; 42 explicit param_type(result_type __m = 1, result_type __n = 1) 46 result_type m() const {return __m_;} in m() 48 result_type n() const {return __n_;} in n() 67 explicit fisher_f_distribution(result_type __m, result_type __n = 1) 71 explicit fisher_f_distribution(result_type __m = 1, result_type __n = 1) 83 result_type operator()(_URNG& __g) in operator() 85 template<class _URNG> result_type operator()(_URNG& __g, const param_type& __p); [all …]
|
| H A D | uniform_int_distribution.h | 36 typedef _UIntType result_type; typedef 39 typedef typename _Engine::result_type _Engine_result_type; 40 …typedef __conditional_t<sizeof(_Engine_result_type) <= sizeof(result_type), result_type, _Engine_r… 69 result_type operator()() {return __eval(integral_constant<bool, _Rp != 0>());} in operator() 72 result_type __eval(false_type); 73 result_type __eval(true_type); 116 return static_cast<result_type>(__e_() & __mask0_); in __eval() 123 const size_t _WRt = numeric_limits<result_type>::digits; in __eval() 124 result_type _Sp = 0; in __eval() 160 typedef _IntType result_type; typedef [all …]
|
| H A D | weibull_distribution.h | 32 typedef _RealType result_type; typedef 36 result_type __a_; 37 result_type __b_; 42 explicit param_type(result_type __a = 1, result_type __b = 1) 46 result_type a() const {return __a_;} in a() 48 result_type b() const {return __b_;} in b() 67 explicit weibull_distribution(result_type __a, result_type __b = 1) 71 explicit weibull_distribution(result_type __a = 1, result_type __b = 1) 83 result_type operator()(_URNG& __g) in operator() 87 result_type operator()(_URNG& __g, const param_type& __p) in operator() [all …]
|
| H A D | extreme_value_distribution.h | 33 typedef _RealType result_type; typedef 37 result_type __a_; 38 result_type __b_; 43 explicit param_type(result_type __a = 0, result_type __b = 1) 47 result_type a() const {return __a_;} in a() 49 result_type b() const {return __b_;} in b() 68 explicit extreme_value_distribution(result_type __a, result_type __b = 1) 72 explicit extreme_value_distribution(result_type __a = 0, 73 result_type __b = 1) 85 result_type operator()(_URNG& __g) in operator() [all …]
|
| H A D | cauchy_distribution.h | 33 typedef _RealType result_type; typedef 37 result_type __a_; 38 result_type __b_; 43 explicit param_type(result_type __a = 0, result_type __b = 1) 47 result_type a() const {return __a_;} in a() 49 result_type b() const {return __b_;} in b() 68 explicit cauchy_distribution(result_type __a, result_type __b = 1) 72 explicit cauchy_distribution(result_type __a = 0, result_type __b = 1) 84 result_type operator()(_URNG& __g) in operator() 86 …template<class _URNG> _LIBCPP_INLINE_VISIBILITY result_type operator()(_URNG& __g, const param_typ… [all …]
|
| H A D | uniform_real_distribution.h | 33 typedef _RealType result_type; typedef 37 result_type __a_; 38 result_type __b_; 43 explicit param_type(result_type __a = 0, 44 result_type __b = 1) 48 result_type a() const {return __a_;} in a() 50 result_type b() const {return __b_;} in b() 68 explicit uniform_real_distribution(result_type __a, result_type __b = 1) 72 explicit uniform_real_distribution(result_type __a = 0, result_type __b = 1) 83 result_type operator()(_URNG& __g) in operator() [all …]
|
| H A D | exponential_distribution.h | 34 typedef _RealType result_type; typedef 38 result_type __lambda_; 43 explicit param_type(result_type __lambda = 1) : __lambda_(__lambda) {} in __lambda_() 46 result_type lambda() const {return __lambda_;} in lambda() 65 explicit exponential_distribution(result_type __lambda) in exponential_distribution() 69 explicit exponential_distribution(result_type __lambda = 1) 80 result_type operator()(_URNG& __g) in operator() 82 template<class _URNG> result_type operator()(_URNG& __g, const param_type& __p); 86 result_type lambda() const {return __p_.lambda();} in lambda() 94 result_type min() const {return 0;} in min() [all …]
|
| H A D | student_t_distribution.h | 34 typedef _RealType result_type; typedef 38 result_type __n_; 43 explicit param_type(result_type __n = 1) : __n_(__n) {} in __n_() 46 result_type n() const {return __n_;} in n() 58 normal_distribution<result_type> __nd_; 66 explicit student_t_distribution(result_type __n) in student_t_distribution() 70 explicit student_t_distribution(result_type __n = 1) 82 result_type operator()(_URNG& __g) in operator() 84 template<class _URNG> result_type operator()(_URNG& __g, const param_type& __p); 88 result_type n() const {return __p_.n();} in n() [all …]
|
| H A D | negative_binomial_distribution.h | 35 typedef _IntType result_type; typedef 39 result_type __k_; 45 explicit param_type(result_type __k = 1, double __p = 0.5) 49 result_type k() const {return __k_;} in k() 70 explicit negative_binomial_distribution(result_type __k, double __p = 0.5) 74 explicit negative_binomial_distribution(result_type __k = 1, 86 result_type operator()(_URNG& __g) in operator() 88 template<class _URNG> result_type operator()(_URNG& __g, const param_type& __p); 92 result_type k() const {return __p_.k();} in k() 102 result_type min() const {return 0;} in min() [all …]
|
| H A D | piecewise_linear_distribution.h | 34 typedef _RealType result_type; typedef 38 vector<result_type> __b_; 39 vector<result_type> __densities_; 40 vector<result_type> __areas_; 50 param_type(initializer_list<result_type> __bl, _UnaryOperation __fw); 53 param_type(size_t __nw, result_type __xmin, result_type __xmax, 59 vector<result_type> intervals() const {return __b_;} in intervals() 61 vector<result_type> densities() const {return __densities_;} in densities() 105 piecewise_linear_distribution(initializer_list<result_type> __bl, in piecewise_linear_distribution() 112 piecewise_linear_distribution(size_t __nw, result_type __xmin, in piecewise_linear_distribution() [all …]
|
| H A D | chi_squared_distribution.h | 31 typedef _RealType result_type; typedef 35 result_type __n_; 40 explicit param_type(result_type __n = 1) : __n_(__n) {} in __n_() 43 result_type n() const {return __n_;} in n() 62 explicit chi_squared_distribution(result_type __n) in chi_squared_distribution() 66 explicit chi_squared_distribution(result_type __n = 1) 78 result_type operator()(_URNG& __g) in operator() 82 result_type operator()(_URNG& __g, const param_type& __p) in operator() 83 {return gamma_distribution<result_type>(__p.n() / 2, 2)(__g);} in operator() 87 result_type n() const {return __p_.n();} in n() [all …]
|
| H A D | independent_bits_engine.h | 44 typedef _UIntType result_type; typedef 49 static _LIBCPP_CONSTEXPR const result_type _Dt = numeric_limits<result_type>::digits; 53 typedef typename _Engine::result_type _Engine_result_type; 54 …typedef __conditional_t<sizeof(_Engine_result_type) <= sizeof(result_type), result_type, _Engine_r… 80 static _LIBCPP_CONSTEXPR const result_type _Min = 0; 81 static _LIBCPP_CONSTEXPR const result_type _Max = __w == _Dt ? result_type(~0) : 82 (result_type(1) << __w) - result_type(1); 87 static _LIBCPP_CONSTEXPR result_type min() { return _Min; } in min() 89 static _LIBCPP_CONSTEXPR result_type max() { return _Max; } in max() 103 explicit independent_bits_engine(result_type __sd) : __e_(__sd) {} in independent_bits_engine() [all …]
|
| H A D | piecewise_constant_distribution.h | 34 typedef _RealType result_type; typedef 38 vector<result_type> __b_; 39 vector<result_type> __densities_; 40 vector<result_type> __areas_; 50 param_type(initializer_list<result_type> __bl, _UnaryOperation __fw); 53 param_type(size_t __nw, result_type __xmin, result_type __xmax, 59 vector<result_type> intervals() const {return __b_;} in intervals() 61 vector<result_type> densities() const {return __densities_;} in densities() 105 piecewise_constant_distribution(initializer_list<result_type> __bl, in piecewise_constant_distribution() 112 piecewise_constant_distribution(size_t __nw, result_type __xmin, in piecewise_constant_distribution() [all …]
|
| H A D | binomial_distribution.h | 33 typedef _IntType result_type; typedef 37 result_type __t_; 41 result_type __r0_; 45 explicit param_type(result_type __t = 1, double __p = 0.5); 48 result_type t() const {return __t_;} in t() 71 explicit binomial_distribution(result_type __t, double __p = 0.5) 75 explicit binomial_distribution(result_type __t = 1, double __p = 0.5) 86 result_type operator()(_URNG& __g) in operator() 88 template<class _URNG> result_type operator()(_URNG& __g, const param_type& __p); 92 result_type t() const {return __p_.t();} in t() [all …]
|
| H A D | shuffle_order_engine.h | 59 typedef typename _Engine::result_type result_type; 63 result_type __v_[__k]; 64 result_type __y_; 71 static const result_type _Min = _Engine::_Min; 72 static const result_type _Max = _Engine::_Max; 74 static _LIBCPP_CONSTEXPR const result_type _Min = _Engine::min(); 75 static _LIBCPP_CONSTEXPR const result_type _Max = _Engine::max(); 79 static _LIBCPP_CONSTEXPR result_type min() { return _Min; } 81 static _LIBCPP_CONSTEXPR result_type max() { return _Max; } 97 explicit shuffle_order_engine(result_type __sd) : __e_(__sd) {__init();} [all …]
|
| H A D | subtract_with_carry_engine.h | 65 typedef _UIntType result_type; typedef 68 result_type __x_[__r]; 69 result_type __c_; 72 static _LIBCPP_CONSTEXPR const result_type _Dt = numeric_limits<result_type>::digits; 78 static _LIBCPP_CONSTEXPR const result_type _Min = 0; 79 static _LIBCPP_CONSTEXPR const result_type _Max = __w == _Dt ? result_type(~0) : 80 (result_type(1) << __w) - result_type(1); 88 static _LIBCPP_CONSTEXPR result_type min() { return _Min; } in min() 90 static _LIBCPP_CONSTEXPR result_type max() { return _Max; } in max() 91 static _LIBCPP_CONSTEXPR const result_type default_seed = 19780503u; [all …]
|
| /openbsd-src/gnu/llvm/libcxx/include/ |
| H A D | random | 31 typedef UIntType result_type; 34 static constexpr result_type multiplier = a; 35 static constexpr result_type increment = c; 36 static constexpr result_type modulus = m; 37 static constexpr result_type min() { return c == 0u ? 1u: 0u;} 38 static constexpr result_type max() { return m - 1u;} 39 static constexpr result_type default_seed = 1u; 42 explicit linear_congruential_engine(result_type s = default_seed); // before C++20 44 explicit linear_congruential_engine(result_type s); // C++20 46 void seed(result_type s = default_seed); [all …]
|
| /openbsd-src/gnu/usr.bin/gcc/gcc/testsuite/gcc.c-torture/execute/ |
| H A D | 20001203-2.c | 47 create_array_type (struct type *result_type, struct type *element_type) in create_array_type() argument 50 if (result_type == ((void *)0)) in create_array_type() 52 result_type = alloc_type (); in create_array_type() 55 (result_type)->length = in create_array_type() 57 (result_type)->nfields = 1; in create_array_type() 58 (result_type)->fields = in create_array_type() 59 (struct field *) ((result_type)->objfile != ((void *)0) in create_array_type() 63 (&(result_type)->objfile -> type_obstack); in create_array_type() 88 return (result_type); in create_array_type() 114 struct type result_type; in main() local [all …]
|
| /openbsd-src/gnu/usr.bin/binutils-2.17/opcodes/ |
| H A D | frv-asm.c | 60 enum cgen_parse_operand_result result_type; in parse_symbolic_address() local 63 &result_type, valuep); in parse_symbolic_address() 66 && result_type != CGEN_PARSE_OPERAND_RESULT_QUEUED) in parse_symbolic_address() 70 *resultp = result_type; in parse_symbolic_address() 82 enum cgen_parse_operand_result result_type; in parse_ldd_annotation() local 92 &result_type, &value); in parse_ldd_annotation() 121 enum cgen_parse_operand_result result_type; in parse_call_annotation() local 131 &result_type, &value); in parse_call_annotation() 160 enum cgen_parse_operand_result result_type; in parse_ld_annotation() local 170 &result_type, &value); in parse_ld_annotation() [all …]
|
| /openbsd-src/gnu/usr.bin/binutils/opcodes/ |
| H A D | frv-asm.c | 84 enum cgen_parse_operand_result result_type; local 93 &result_type, &value); 98 && result_type == CGEN_PARSE_OPERAND_RESULT_NUMBER) 107 &result_type, &value); 112 && result_type == CGEN_PARSE_OPERAND_RESULT_NUMBER) 121 &result_type, &value); 126 && result_type == CGEN_PARSE_OPERAND_RESULT_NUMBER) 136 &result_type, &value); 141 && result_type == CGEN_PARSE_OPERAND_RESULT_NUMBER) 151 &result_type, &value); [all …]
|
| /openbsd-src/gnu/llvm/libcxx/include/__algorithm/ |
| H A D | shuffle.h | 39 typedef uint_fast32_t result_type; typedef 41 static const result_type _Min = 0; 42 static const result_type _Max = 0xFFFFFFFF; 44 _LIBCPP_HIDE_FROM_ABI result_type operator()() { in operator() 50 static _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR result_type min() { return _Min; } in min() 51 static _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR result_type max() { return _Max; } in max() 78 typedef uint_fast32_t result_type; typedef 80 static const result_type _Min = 0; 81 static const result_type _Max = 0xFFFFFFFF; 86 result_type operator()(); [all …]
|