| /llvm-project-15.0.7/libcxx/include/__random/ |
| H A D | linear_congruential_engine.h | 29 bool _MightOverflow = (__a != 0 && __m != 0 && __m-1 > (_Mp-__c)/__a), 30 bool _OverflowOK = ((__m | (__m-1)) > __m), // m = 2^n 31 bool _SchrageOK = (__a != 0 && __m != 0 && __m % __a <= __m / __a)> // r <= q 58 const result_type __q = __m / __a; 59 const result_type __r = __m % __a; 63 __x += __c - (__x >= __m - __c) * __m; 92 return (__a * __x + __c) % __m; 125 __x += __c - (__x >= __m - __c) * __m; 159 return (__a * __x + __c) % __m; 217 static_assert(__m == 0 || __a < __m, "linear_congruential_engine invalid parameters"); [all …]
|
| H A D | mersenne_twister_engine.h | 31 template <class _UIntType, size_t __w, size_t __n, size_t __m, size_t __r, 73 template <class _UIntType, size_t __w, size_t __n, size_t __m, size_t __r, 86 static_assert( 0 < __m, "mersenne_twister_engine invalid parameters"); 87 static_assert(__m <= __n, "mersenne_twister_engine invalid parameters"); 110 static _LIBCPP_CONSTEXPR const size_t shift_size = __m; 247 template <class _UIntType, size_t __w, size_t __n, size_t __m, size_t __r, 253 template <class _UIntType, size_t __w, size_t __n, size_t __m, size_t __r, 259 template <class _UIntType, size_t __w, size_t __n, size_t __m, size_t __r, 265 template <class _UIntType, size_t __w, size_t __n, size_t __m, size_t __r, 271 template <class _UIntType, size_t __w, size_t __n, size_t __m, size_t __r, [all …]
|
| H A D | fisher_f_distribution.h | 42 explicit param_type(result_type __m = 1, result_type __n = 1) 43 : __m_(__m), __n_(__n) {} in __m_() argument 67 explicit fisher_f_distribution(result_type __m, result_type __n = 1) 68 : __p_(param_type(__m, __n)) {} in __p_() argument 71 explicit fisher_f_distribution(result_type __m = 1, result_type __n = 1) 72 : __p_(param_type(__m, __n)) {} 150 result_type __m; variable 152 __is >> __m >> __n; 154 __x.param(param_type(__m, __n));
|
| H A D | lognormal_distribution.h | 43 explicit param_type(result_type __m = 0, result_type __s = 1) 44 : __nd_(__m, __s) {} in __nd_() argument 81 explicit lognormal_distribution(result_type __m, result_type __s = 1) 82 : __p_(param_type(__m, __s)) {} in __p_() argument 85 explicit lognormal_distribution(result_type __m = 0, 87 : __p_(param_type(__m, __s)) {} 178 explicit param_type(result_type __m = 0, result_type __s = 1) 179 : __m_(__m), __s_(__s) {} 204 : __nd_(__m, __s) {} 207 explicit lognormal_distribution(result_type __m = 0, [all …]
|
| /llvm-project-15.0.7/libcxx/src/support/win32/ |
| H A D | thread_win32.cpp | 44 InitializeCriticalSection((LPCRITICAL_SECTION)__m); in __libcpp_recursive_mutex_init() 50 EnterCriticalSection((LPCRITICAL_SECTION)__m); in __libcpp_recursive_mutex_lock() 61 LeaveCriticalSection((LPCRITICAL_SECTION)__m); in __libcpp_recursive_mutex_unlock() 67 DeleteCriticalSection((LPCRITICAL_SECTION)__m); in __libcpp_recursive_mutex_destroy() 71 int __libcpp_mutex_lock(__libcpp_mutex_t *__m) in __libcpp_mutex_lock() argument 73 AcquireSRWLockExclusive((PSRWLOCK)__m); in __libcpp_mutex_lock() 77 bool __libcpp_mutex_trylock(__libcpp_mutex_t *__m) in __libcpp_mutex_trylock() argument 82 int __libcpp_mutex_unlock(__libcpp_mutex_t *__m) in __libcpp_mutex_unlock() argument 84 ReleaseSRWLockExclusive((PSRWLOCK)__m); in __libcpp_mutex_unlock() 88 int __libcpp_mutex_destroy(__libcpp_mutex_t *__m) in __libcpp_mutex_destroy() argument [all …]
|
| /llvm-project-15.0.7/libcxx/include/__algorithm/ |
| H A D | nth_element.h | 38 if (__comp(*__j, *__m)) { in __nth_element_find_guard() 150 while (__comp(*__i, *__m)) in __nth_element() 153 while (!__comp(*--__j, *__m)) in __nth_element() 161 if (__m == __i) in __nth_element() 162 __m = __j; in __nth_element() 167 if (__i != __m && __comp(*__m, *__i)) in __nth_element() 169 _Ops::iter_swap(__i, __m); in __nth_element() 181 __j = __m = __first; in __nth_element() 191 __m = __j; in __nth_element() 197 __j = __m = __i; in __nth_element() [all …]
|
| H A D | stable_partition.h | 40 _ForwardIterator __m = __first; in __stable_partition_impl() local 41 if (__pred(*++__m)) in __stable_partition_impl() 44 return __m; in __stable_partition_impl() 84 _ForwardIterator __m = __first; in __stable_partition_impl() local 86 _Ops::advance(__m, __len2); in __stable_partition_impl() 95 _ForwardIterator __m1 = __m; in __stable_partition_impl() 168 if (__pred(*++__m)) in __stable_partition_impl() 174 _Ops::iter_swap(__m, __last); in __stable_partition_impl() 176 return __m; in __stable_partition_impl() 218 _Ops::advance(__m, __len2); in __stable_partition_impl() [all …]
|
| H A D | shift_left.h | 35 _ForwardIterator __m = __first; in shift_left() local 40 __m += __n; in shift_left() 43 if (__m == __last) { in shift_left() 46 ++__m; in shift_left() 49 return _VSTD::move(__m, __last, __first); in shift_left()
|
| H A D | shift_right.h | 43 _ForwardIterator __m = __first + (__d - __n); in shift_right() local 44 return _VSTD::move_backward(__first, __m, __last); in shift_right() 46 _ForwardIterator __m = __last; in shift_right() local 48 if (__m == __first) { in shift_right() 51 --__m; in shift_right() 53 return _VSTD::move_backward(__first, __m, __last); in shift_right()
|
| /llvm-project-15.0.7/pstl/include/pstl/internal/omp/ |
| H A D | parallel_scan.h | 23 __split(_Index __m) in __split() argument 26 while (2 * __k < __m) in __split() 35 if (__m == 1) in __upsweep() 39 _Index __k = __split(__m); in __upsweep() 45 if (__m == 2 * __k) in __upsweep() 46 __r[__m - 1] = __combine(__r[__k - 1], __r[__m - 1]); in __upsweep() 55 if (__m == 1) in __downsweep() 59 const _Index __k = __split(__m); in __downsweep() 80 _Index __m = (__n - 1) / __tilesize; in __parallel_strict_scan_body() local 81 __buffer<_Tp> __buf(__m + 1); in __parallel_strict_scan_body() [all …]
|
| /llvm-project-15.0.7/libcxx/include/ |
| H A D | __threading_support | 269 __ec = pthread_mutex_init(__m, &attr); 276 pthread_mutex_destroy(__m); 284 return pthread_mutex_lock(__m); 294 return pthread_mutex_unlock(__m); 299 return pthread_mutex_destroy(__m); 304 return pthread_mutex_lock(__m); 314 return pthread_mutex_unlock(__m); 319 return pthread_mutex_destroy(__m); 335 return pthread_cond_wait(__cv, __m); 455 mtx_destroy(__m); [all …]
|
| H A D | __bit_reference | 95 : __seg_(__s), __mask_(__m) {} 171 : __seg_(__s), __mask_(__m) {} 352 *__first.__seg_ &= ~__m; 365 *__first.__seg_ &= ~__m; 382 *__first.__seg_ |= __m; 396 *__first.__seg_ |= __m; 526 *__result.__seg_ &= __m; 750 *__first.__seg_ &= ~__m; 769 *__first.__seg_ &= ~__m; 1077 if ((*__first2.__seg_ & __m) != (*__first1.__seg_ & __m)) [all …]
|
| H A D | atomic | 1594 {return __cxx_atomic_compare_exchange_weak(&__a_, &__e, __d, __m, __m);} 1598 {return __cxx_atomic_compare_exchange_weak(&__a_, &__e, __d, __m, __m);} 1602 {return __cxx_atomic_compare_exchange_strong(&__a_, &__e, __d, __m, __m);} 1606 {return __cxx_atomic_compare_exchange_strong(&__a_, &__e, __d, __m, __m);} 1897 __o->store(__d, __m); 1906 __o->store(__d, __m); 1935 return __o->load(__m); 2495 __o->clear(__m); 2502 __o->clear(__m); 2524 __o->wait(__v, __m); [all …]
|
| /llvm-project-15.0.7/clang/lib/Headers/ |
| H A D | mmintrin.h | 69 _mm_cvtsi64_si32(__m64 __m) in _mm_cvtsi64_si32() argument 101 _mm_cvtm64_si64(__m64 __m) in _mm_cvtm64_si64() argument 103 return (long long)__m; in _mm_cvtm64_si64() 756 _mm_slli_pi16(__m64 __m, int __count) in _mm_slli_pi16() argument 801 _mm_slli_pi32(__m64 __m, int __count) in _mm_slli_pi32() argument 841 _mm_slli_si64(__m64 __m, int __count) in _mm_slli_si64() argument 888 _mm_srai_pi16(__m64 __m, int __count) in _mm_srai_pi16() argument 935 _mm_srai_pi32(__m64 __m, int __count) in _mm_srai_pi32() argument 980 _mm_srli_pi16(__m64 __m, int __count) in _mm_srli_pi16() argument 1025 _mm_srli_pi32(__m64 __m, int __count) in _mm_srli_pi32() argument [all …]
|
| H A D | xsavesintrin.h | 21 _xsaves(void *__p, unsigned long long __m) { in _xsaves() argument 22 __builtin_ia32_xsaves(__p, __m); in _xsaves() 26 _xrstors(void *__p, unsigned long long __m) { in _xrstors() argument 27 __builtin_ia32_xrstors(__p, __m); in _xrstors() 32 _xrstors64(void *__p, unsigned long long __m) { in _xrstors64() argument 33 __builtin_ia32_xrstors64(__p, __m); in _xrstors64() 37 _xsaves64(void *__p, unsigned long long __m) { in _xsaves64() argument 38 __builtin_ia32_xsaves64(__p, __m); in _xsaves64()
|
| H A D | mm3dnow.h | 32 _m_pf2id(__m64 __m) { in _m_pf2id() argument 33 return (__m64)__builtin_ia32_pf2id((__v2sf)__m); in _m_pf2id() 77 _m_pfrcp(__m64 __m) { in _m_pfrcp() argument 78 return (__m64)__builtin_ia32_pfrcp((__v2sf)__m); in _m_pfrcp() 92 _m_pfrsqrt(__m64 __m) { in _m_pfrsqrt() argument 112 _m_pi2fd(__m64 __m) { in _m_pi2fd() argument 113 return (__m64)__builtin_ia32_pi2fd((__v2si)__m); in _m_pi2fd() 126 _m_pf2iw(__m64 __m) { in _m_pf2iw() argument 141 _m_pi2fw(__m64 __m) { in _m_pi2fw() argument 146 _m_pswapdsf(__m64 __m) { in _m_pswapdsf() argument [all …]
|
| H A D | xsaveintrin.h | 25 _xsave(void *__p, unsigned long long __m) { in _xsave() argument 26 __builtin_ia32_xsave(__p, __m); in _xsave() 30 _xrstor(void *__p, unsigned long long __m) { in _xrstor() argument 31 __builtin_ia32_xrstor(__p, __m); in _xrstor() 50 _xsave64(void *__p, unsigned long long __m) { in _xsave64() argument 51 __builtin_ia32_xsave64(__p, __m); in _xsave64() 55 _xrstor64(void *__p, unsigned long long __m) { in _xrstor64() argument 56 __builtin_ia32_xrstor64(__p, __m); in _xrstor64()
|
| H A D | xsaveoptintrin.h | 21 _xsaveopt(void *__p, unsigned long long __m) { in _xsaveopt() argument 22 __builtin_ia32_xsaveopt(__p, __m); in _xsaveopt() 27 _xsaveopt64(void *__p, unsigned long long __m) { in _xsaveopt64() argument 28 __builtin_ia32_xsaveopt64(__p, __m); in _xsaveopt64()
|
| H A D | xsavecintrin.h | 21 _xsavec(void *__p, unsigned long long __m) { in _xsavec() argument 22 __builtin_ia32_xsavec(__p, __m); in _xsavec() 27 _xsavec64(void *__p, unsigned long long __m) { in _xsavec64() argument 28 __builtin_ia32_xsavec64(__p, __m); in _xsavec64()
|
| /llvm-project-15.0.7/clang/lib/Headers/ppc_wrappers/ |
| H A D | bmi2intrin.h | 55 unsigned long __m = __M; in _pdep_u64() local 66 while (__m != 0) { in _pdep_u64() 67 __c = __builtin_clzl(__m); in _pdep_u64() 69 __m ^= (__mask >> __c); in _pdep_u64() 81 unsigned long __m = __M; in _pext_u64() local 93 __c = __builtin_clzl(__m); in _pext_u64() 95 __m ^= (__mask >> __c); in _pext_u64() 106 while (__m != 0) { in _pext_u64() 108 __c = __builtin_clzl(__m); in _pext_u64() 110 __m ^= (__mask >> __c); in _pext_u64()
|
| H A D | mmintrin.h | 601 return (__m << __count); in _mm_sll_si64() 607 return _mm_sll_si64(__m, __count); in _m_psllq() 613 return (__m << __count); in _mm_slli_si64() 626 return (__m >> __count); in _mm_srl_si64() 632 return _mm_srl_si64(__m, __count); in _m_psrlq() 638 return (__m >> __count); in _mm_srli_si64() 1144 return _mm_sll_pi16(__m, __count); in _m_psllw() 1151 return _mm_sll_pi16(__m, __count); in _mm_slli_pi16() 1166 __res.as_m64 = __m; in _mm_sll_pi32() 1233 __res.as_m64 = __m; in _mm_sra_pi32() [all …]
|
| /llvm-project-15.0.7/libcxx/include/__numeric/ |
| H A D | gcd_lcm.h | 51 _Tp __gcd(_Tp __m, _Tp __n) 54 return __n == 0 ? __m : _VSTD::__gcd<_Tp>(__n, __m % __n); 60 gcd(_Tp __m, _Up __n) 68 static_cast<_Wp>(__ct_abs<_Rp, _Tp>()(__m)), 75 lcm(_Tp __m, _Up __n) 80 if (__m == 0 || __n == 0) 84 _Rp __val1 = __ct_abs<_Rp, _Tp>()(__m) / _VSTD::gcd(__m, __n);
|
| /llvm-project-15.0.7/libcxx/include/__chrono/ |
| H A D | year_month.h | 31 chrono::month __m; variable 35 : __y{__yval}, __m{__mval} {} in year_month() 37 _LIBCPP_HIDE_FROM_ABI inline constexpr chrono::month month() const noexcept { return __m; } in month() 38 …line constexpr year_month& operator+=(const months& __dm) noexcept { this->__m += __dm; return *th… 39 …line constexpr year_month& operator-=(const months& __dm) noexcept { this->__m -= __dm; return *th… 42 _LIBCPP_HIDE_FROM_ABI inline constexpr bool ok() const noexcept { return __y.ok() && __m.ok(); } in ok() 46 year_month operator/(const year& __y, const month& __m) noexcept { return year_month{__y, __m}; } 49 year_month operator/(const year& __y, int __m) noexcept { return year_month{__y, month(__m)}; }
|
| H A D | month_weekday.h | 30 chrono::month __m; 34 : __m{__mval}, __wdi{__wdival} {} in month_weekday() 35 …_FROM_ABI inline constexpr chrono::month month() const noexcept { return __m; } in month() 37 …onstexpr bool ok() const noexcept { return __m.ok() && __wdi.ok();… in ok() 66 chrono::month __m; variable 70 : __m{__mval}, __wdl{__wdlval} {} in month_weekday_last() 71 …P_HIDE_FROM_ABI inline constexpr chrono::month month() const noexcept { return __m; } in month() 73 …line constexpr bool ok() const noexcept { return __m.ok() && __wdl.ok();… in ok()
|
| H A D | monthday.h | 31 chrono::month __m; 36 : __m{__mval}, __d{__dval} {} in month_day() 37 _LIBCPP_HIDE_FROM_ABI inline constexpr chrono::month month() const noexcept { return __m; } in month() 45 if (!__m.ok()) return false; in ok() 50 const unsigned __mval = static_cast<unsigned>(__m); in ok() 106 chrono::month __m; 109 : __m{__val} {} in month_day_last() 110 _LIBCPP_HIDE_FROM_ABI inline constexpr chrono::month month() const noexcept { return __m; } in month() 111 _LIBCPP_HIDE_FROM_ABI inline constexpr bool ok() const noexcept { return __m.ok(); } in ok()
|