Home
last modified time | relevance | path

Searched refs:upper_bound (Results 1 – 25 of 149) sorted by relevance

123456

/freebsd/lib/libc/gen/
H A Darc4random_uniform.c17 arc4random_uniform(uint32_t upper_bound) in arc4random_uniform() argument
32 if (upper_bound <= 1) in arc4random_uniform()
35 product = upper_bound * (uint64_t)arc4random(); in arc4random_uniform()
37 if ((uint32_t)product < upper_bound) { in arc4random_uniform()
41 threshold = -upper_bound % upper_bound; in arc4random_uniform()
43 product = upper_bound * (uint64_t)arc4random(); in arc4random_uniform()
/freebsd/contrib/unbound/compat/
H A Darc4random_uniform.c34 arc4random_uniform(uint32_t upper_bound) in arc4random_uniform() argument
38 if (upper_bound < 2) in arc4random_uniform()
42 min = -upper_bound % upper_bound; in arc4random_uniform()
56 return r % upper_bound; in arc4random_uniform()
/freebsd/sys/libkern/
H A Darc4random_uniform.c33 arc4random_uniform(uint32_t upper_bound) in arc4random_uniform() argument
37 if (upper_bound < 2) in arc4random_uniform()
41 min = -upper_bound % upper_bound; in arc4random_uniform()
55 return r % upper_bound; in arc4random_uniform()
/freebsd/crypto/openssh/openbsd-compat/
H A Darc4random_uniform.c38 arc4random_uniform(uint32_t upper_bound) in arc4random_uniform() argument
42 if (upper_bound < 2) in arc4random_uniform()
46 min = -upper_bound % upper_bound; in arc4random_uniform()
60 return r % upper_bound; in arc4random_uniform()
/freebsd/contrib/libfido2/fuzz/
H A Duniform_random.c34 uniform_random(uint32_t upper_bound) in uniform_random() argument
38 if (upper_bound < 2) in uniform_random()
42 min = -upper_bound % upper_bound; in uniform_random()
56 return r % upper_bound; in uniform_random()
/freebsd/sys/contrib/libsodium/src/libsodium/randombytes/
H A Drandombytes.c125 randombytes_uniform(const uint32_t upper_bound) in randombytes_uniform() argument
133 return implementation->uniform(upper_bound); in randombytes_uniform()
136 if (upper_bound < 2) { in randombytes_uniform()
139 min = (1U + ~upper_bound) % upper_bound; /* = 2**32 mod upper_bound */ in randombytes_uniform()
146 return r % upper_bound; in randombytes_uniform()
/freebsd/contrib/ntp/sntp/libevent/
H A Darc4random.c513 arc4random_uniform(unsigned int upper_bound) in arc4random_uniform() argument
517 if (upper_bound < 2) in arc4random_uniform()
521 min = 0x100000000UL % upper_bound; in arc4random_uniform()
524 if (upper_bound > 0x80000000) in arc4random_uniform()
525 min = 1 + ~upper_bound; /* 2**32 - upper_bound */ in arc4random_uniform()
528 min = ((0xffffffff - (upper_bound * 2)) + 1) % upper_bound; in arc4random_uniform()
544 return r % upper_bound; in arc4random_uniform()
/freebsd/contrib/libevent/
H A Darc4random.c513 arc4random_uniform(unsigned int upper_bound) in arc4random_uniform() argument
517 if (upper_bound < 2) in arc4random_uniform()
521 min = 0x100000000UL % upper_bound; in arc4random_uniform()
524 if (upper_bound > 0x80000000) in arc4random_uniform()
525 min = 1 + ~upper_bound; /* 2**32 - upper_bound */ in arc4random_uniform()
528 min = ((0xffffffff - (upper_bound * 2)) + 1) % upper_bound; in arc4random_uniform()
544 return r % upper_bound; in arc4random_uniform()
/freebsd/crypto/krb5/src/util/
H A Dt_array.pm71 size_t upper_bound;
73 upper_bound = SIZE_MAX / sizeof(*arr->elts);
74 if (upper_bound > ULONG_MAX)
75 upper_bound = ULONG_MAX;
76 return (unsigned long) upper_bound;
/freebsd/contrib/llvm-project/lldb/source/Plugins/SymbolFile/DWARF/
H A DDWARFASTParser.cpp42 uint64_t upper_bound = 0; in ParseChildArrayInfo() local
85 upper_bound = form_value.Unsigned(); in ParseChildArrayInfo()
95 if (upper_bound_valid && upper_bound >= lower_bound) in ParseChildArrayInfo()
96 num_elements = upper_bound - lower_bound + 1; in ParseChildArrayInfo()
H A DAppleDWARFIndex.cpp166 dw_offset_t upper_bound = non_skeleton_cu.GetNextUnitOffset(); in GetGlobalVariables() local
167 auto is_in_range = [lower_bound, upper_bound](std::optional<uint32_t> val) { in GetGlobalVariables()
168 return val.has_value() && *val >= lower_bound && *val < upper_bound; in GetGlobalVariables()
/freebsd/krb5/lib/gssapi/
H A Derrmap.h83 size_t upper_bound; in mecherrmap__pairarray_max_size() local
85 upper_bound = SIZE_MAX / sizeof(*arr->elts); in mecherrmap__pairarray_max_size()
86 if (upper_bound > ULONG_MAX) in mecherrmap__pairarray_max_size()
87 upper_bound = ULONG_MAX; in mecherrmap__pairarray_max_size()
88 return (unsigned long) upper_bound; in mecherrmap__pairarray_max_size()
/freebsd/contrib/llvm-project/lldb/source/Breakpoint/
H A DBreakpointSiteList.cpp
/freebsd/contrib/llvm-project/libcxx/include/__cxx03/__algorithm/
H A Dupper_bound.h52 upper_bound(_ForwardIterator __first, _ForwardIterator __last, const _Tp& __value, _Compare __comp)… in upper_bound() function
60 upper_bound(_ForwardIterator __first, _ForwardIterator __last, const _Tp& __value) { in upper_bound() function
61 return std::upper_bound(std::move(__first), std::move(__last), __value, __less<>()); in upper_bound()
/freebsd/contrib/llvm-project/libcxx/include/__algorithm/
H A Dupper_bound.h54 upper_bound(_ForwardIterator __first, _ForwardIterator __last, const _Tp& __value, _Compare __comp)… in upper_bound() function
63 upper_bound(_ForwardIterator __first, _ForwardIterator __last, const _Tp& __value) { in upper_bound() function
64 return std::upper_bound(std::move(__first), std::move(__last), __value, __less<>()); in upper_bound()
/freebsd/contrib/llvm-project/lldb/include/lldb/Breakpoint/
H A DStopPointSiteList.h185 bool FindInRange(lldb::addr_t lower_bound, lldb::addr_t upper_bound, in FindInRange() argument
187 if (lower_bound > upper_bound) in FindInRange()
193 if (lower == m_site_list.end() || (*lower).first >= upper_bound) in FindInRange()
207 upper = m_site_list.upper_bound(upper_bound); in FindInRange()
/freebsd/contrib/ntp/scripts/
H A Dplot_summary.in109 my ($lower_bound, $upper_bound, $rms);
135 $upper_bound = $1 + $2;
136 $line .= "$1 $lower_bound $upper_bound";
138 $max_offs = max($max_offs, $upper_bound);
/freebsd/sys/contrib/libsodium/src/libsodium/include/sodium/
H A Drandombytes.h23 …uint32_t (*uniform)(const uint32_t upper_bound); /* optional, a default implementation will be …
45 uint32_t randombytes_uniform(const uint32_t upper_bound);
/freebsd/contrib/llvm-project/compiler-rt/lib/orc/
H A Dinterval_map.h69 auto I = Impl.upper_bound(K); in find()
94 auto J = Impl.upper_bound(KS); in erase()
134 auto J = this->Impl.upper_bound(KS); in insert()
/freebsd/contrib/llvm-project/lldb/include/lldb/Utility/
H A DRangeMap.h451 B upper_bound; member
454 : RangeData<B, S, T>(rd), upper_bound() {} in AugmentedRangeData()
682 entry.upper_bound = entry.base + entry.size; in ComputeUpperBounds()
685 entry.upper_bound = in ComputeUpperBounds()
686 std::max(entry.upper_bound, ComputeUpperBounds(lo, mid)); in ComputeUpperBounds()
689 entry.upper_bound = in ComputeUpperBounds()
690 std::max(entry.upper_bound, ComputeUpperBounds(mid + 1, hi)); in ComputeUpperBounds()
692 return entry.upper_bound; in ComputeUpperBounds()
704 if (addr > entry.upper_bound) in FindEntryIndexesThatContain()
/freebsd/sys/contrib/libsodium/test/default/
H A Drandombytes.c124 randombytes_uniform_impl(const uint32_t upper_bound) in randombytes_uniform_impl() argument
126 return upper_bound; in randombytes_uniform_impl()
/freebsd/contrib/llvm-project/lldb/source/Plugins/Trace/intel-pt/
H A DDecodedThread.cpp156 auto it = m_cpus.upper_bound(item_index); in GetCPUByIndex()
162 auto next_it = m_tscs.upper_bound(item_index); in GetTSCRangeByIndex()
170 auto next_it = m_nanoseconds.upper_bound(item_index); in GetNanosecondsRangeByIndex()
/freebsd/contrib/llvm-project/libcxx/include/__flat_set/
H A Dflat_multiset.h545 _LIBCPP_HIDE_FROM_ABI iterator upper_bound(const key_type& __x) { in upper_bound() function
547 return iterator(std::upper_bound(__keys.begin(), __keys.end(), __x, __compare_)); in upper_bound()
550 _LIBCPP_HIDE_FROM_ABI const_iterator upper_bound(const key_type& __x) const { in upper_bound() function
551 return const_iterator(std::upper_bound(__keys_.begin(), __keys_.end(), __x, __compare_)); in upper_bound()
556 _LIBCPP_HIDE_FROM_ABI iterator upper_bound(const _Kp& __x) { in upper_bound() function
558 return iterator(std::upper_bound(__keys.begin(), __keys.end(), __x, __compare_)); in upper_bound()
563 _LIBCPP_HIDE_FROM_ABI const_iterator upper_bound(const _Kp& __x) const { in upper_bound() function
564 return const_iterator(std::upper_bound(__keys_.begin(), __keys_.end(), __x, __compare_)); in upper_bound()
615 auto __it = upper_bound(__key); in __emplace()
635 __hint = std::upper_bound(begin(), __hint, __key, __compare_); in __emplace_hint()
/freebsd/contrib/llvm-project/libcxx/include/__cxx03/
H A Dset179 iterator upper_bound(const key_type& k);
180 const_iterator upper_bound(const key_type& k) const;
182 iterator upper_bound(const K& x); // C++14
184 const_iterator upper_bound(const K& x) const; // C++14
424 iterator upper_bound(const key_type& k);
425 const_iterator upper_bound(const key_type& k) const;
427 iterator upper_bound(const K& x); // C++14
429 const_iterator upper_bound(const K& x) const; // C++14
668 …_LIBCPP_HIDE_FROM_ABI iterator upper_bound(const key_type& __k) { return __tree_.upper_bound(__k);…
669 …_LIBCPP_HIDE_FROM_ABI const_iterator upper_bound(const key_type& __k) const { return __tree_.upper…
[all …]
/freebsd/contrib/llvm-project/libcxx/include/
H A Dset179 iterator upper_bound(const key_type& k);
180 const_iterator upper_bound(const key_type& k) const;
182 iterator upper_bound(const K& x); // C++14
184 const_iterator upper_bound(const K& x) const; // C++14
424 iterator upper_bound(const key_type& k);
425 const_iterator upper_bound(const key_type& k) const;
427 iterator upper_bound(const K& x); // C++14
429 const_iterator upper_bound(const K& x) const; // C++14
870 …_LIBCPP_HIDE_FROM_ABI iterator upper_bound(const key_type& __k) { return __tree_.upper_bound(__k);…
871 …_LIBCPP_HIDE_FROM_ABI const_iterator upper_bound(const key_type& __k) const { return __tree_.upper…
[all …]

123456