/netbsd-src/external/mpl/dhcp/bind/dist/lib/isc/ |
H A D | random.c | 126 isc_random_uniform(uint32_t upper_bound) { in isc_random_uniform() argument 133 if (upper_bound < 2) { in isc_random_uniform() 138 min = 0x100000000UL % upper_bound; in isc_random_uniform() 141 if (upper_bound > 0x80000000) { in isc_random_uniform() 142 min = 1 + ~upper_bound; /* 2**32 - upper_bound */ in isc_random_uniform() 145 min = ((0xffffffff - (upper_bound * 2)) + 1) % upper_bound; in isc_random_uniform() 162 return (r % upper_bound); in isc_random_uniform()
|
/netbsd-src/external/mpl/bind/dist/lib/isc/ |
H A D | random.c | 171 isc_random_uniform(uint32_t upper_bound) isc_random_uniform() argument
|
/netbsd-src/external/bsd/unbound/dist/compat/ |
H A D | arc4random_uniform.c | 34 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()
|
/netbsd-src/external/bsd/libfido2/dist/fuzz/ |
H A D | uniform_random.c | 34 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()
|
/netbsd-src/sys/external/isc/libsodium/dist/src/libsodium/randombytes/ |
H A D | randombytes.c | 125 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()
|
/netbsd-src/external/bsd/libevent/dist/ |
H A D | arc4random.c | 514 arc4random_uniform(unsigned int upper_bound) in arc4random_uniform() argument 518 if (upper_bound < 2) in arc4random_uniform() 522 min = 0x100000000UL % upper_bound; in arc4random_uniform() 525 if (upper_bound > 0x80000000) in arc4random_uniform() 526 min = 1 + ~upper_bound; /* 2**32 - upper_bound */ in arc4random_uniform() 529 min = ((0xffffffff - (upper_bound * 2)) + 1) % upper_bound; in arc4random_uniform() 545 return r % upper_bound; in arc4random_uniform()
|
/netbsd-src/external/gpl3/gcc.old/dist/gcc/ |
H A D | range-op.cc | 98 || wi::ge_p (op.upper_bound (), in undefined_shift_range_check() 156 wide_int lh_ub = lh.upper_bound (x); in fold_range() 158 wide_int rh_ub = rh.upper_bound (y); in fold_range() 354 if (!wi::eq_p (lhs.upper_bound (), lhs.lower_bound ())) in get_bool_state() 391 if (wi::eq_p (op1.lower_bound (), op1.upper_bound ()) in fold_range() 392 && wi::eq_p (op2.lower_bound (), op2.upper_bound ())) in fold_range() 394 if (wi::eq_p (op1.lower_bound (), op2.upper_bound())) in fold_range() 423 if (wi::eq_p (op2.lower_bound(), op2.upper_bound())) in op1_range() 476 if (wi::eq_p (op1.lower_bound (), op1.upper_bound ()) in fold_range() 477 && wi::eq_p (op2.lower_bound (), op2.upper_bound ())) in fold_range() [all …]
|
/netbsd-src/external/gpl3/gcc/dist/gcc/ |
H A D | range-op.cc | 214 wi_fold_in_parts (r, type, lh.lower_bound (), lh.upper_bound (), in fold_range() 215 rh.lower_bound (), rh.upper_bound ()); in fold_range() 226 wide_int lh_ub = lh.upper_bound (x); in fold_range() 228 wide_int rh_ub = rh.upper_bound (y); in fold_range() 571 if (wi::eq_p (op1.lower_bound (), op1.upper_bound ()) in fold_range() 572 && wi::eq_p (op2.lower_bound (), op2.upper_bound ())) in fold_range() 574 if (wi::eq_p (op1.lower_bound (), op2.upper_bound())) in fold_range() 604 if (wi::eq_p (op2.lower_bound(), op2.upper_bound())) in op1_range() 680 if (wi::eq_p (op1.lower_bound (), op1.upper_bound ()) in fold_range() 681 && wi::eq_p (op2.lower_bound (), op2.upper_bound ())) in fold_range() [all …]
|
H A D | value-range.h | 62 wide_int upper_bound (unsigned) const; in class() 63 wide_int upper_bound () const; in class() 529 irange::upper_bound (unsigned pair) const in upper_bound() function 541 irange::upper_bound () const in upper_bound() function 545 return upper_bound (pairs - 1); in upper_bound()
|
/netbsd-src/external/gpl3/gcc.old/dist/libstdc++-v3/include/profile/ |
H A D | multiset.h | 473 upper_bound(const key_type& __x) in _GLIBCXX_VISIBILITY() 477 return iterator(_Base::upper_bound(__x), this); in _GLIBCXX_VISIBILITY() 483 upper_bound(const key_type& __x) const in _GLIBCXX_VISIBILITY() 487 return const_iterator(_Base::upper_bound(__x), this); in _GLIBCXX_VISIBILITY() 495 upper_bound(const _Kt& __x) in _GLIBCXX_VISIBILITY() 499 return { _Base::upper_bound(__x), this }; in _GLIBCXX_VISIBILITY() 506 upper_bound(const _Kt& __x) const in _GLIBCXX_VISIBILITY() 510 return { _Base::upper_bound(__x), this }; in _GLIBCXX_VISIBILITY()
|
H A D | set.h | 460 upper_bound(const key_type& __x) in _GLIBCXX_VISIBILITY() 464 return iterator(_Base::upper_bound(__x), this); in _GLIBCXX_VISIBILITY() 468 upper_bound(const key_type& __x) const in _GLIBCXX_VISIBILITY() 472 return const_iterator(_Base::upper_bound(__x), this); in _GLIBCXX_VISIBILITY() 480 upper_bound(const _Kt& __x) in _GLIBCXX_VISIBILITY() 484 return { _Base::upper_bound(__x), this }; in _GLIBCXX_VISIBILITY() 491 upper_bound(const _Kt& __x) const in _GLIBCXX_VISIBILITY() 495 return { _Base::upper_bound(__x), this }; in _GLIBCXX_VISIBILITY()
|
H A D | map.h | 523 upper_bound(const key_type& __x) in _GLIBCXX_VISIBILITY() 527 return iterator(_Base::upper_bound(__x), this); in _GLIBCXX_VISIBILITY() 535 upper_bound(const _Kt& __x) in _GLIBCXX_VISIBILITY() 539 return { _Base::upper_bound(__x), this }; in _GLIBCXX_VISIBILITY() 544 upper_bound(const key_type& __x) const in _GLIBCXX_VISIBILITY() 548 return const_iterator(_Base::upper_bound(__x), this); in _GLIBCXX_VISIBILITY() 556 upper_bound(const _Kt& __x) const in _GLIBCXX_VISIBILITY() 560 return { _Base::upper_bound(__x), this }; in _GLIBCXX_VISIBILITY()
|
H A D | multimap.h | 482 upper_bound(const key_type& __x) in _GLIBCXX_VISIBILITY() 486 return iterator(_Base::upper_bound(__x), this); in _GLIBCXX_VISIBILITY() 494 upper_bound(const _Kt& __x) in _GLIBCXX_VISIBILITY() 498 return { _Base::upper_bound(__x), this }; in _GLIBCXX_VISIBILITY() 503 upper_bound(const key_type& __x) const in _GLIBCXX_VISIBILITY() 507 return const_iterator(_Base::upper_bound(__x), this); in _GLIBCXX_VISIBILITY() 515 upper_bound(const _Kt& __x) const in _GLIBCXX_VISIBILITY() 519 return { _Base::upper_bound(__x), this }; in _GLIBCXX_VISIBILITY()
|
/netbsd-src/sys/external/isc/libsodium/dist/src/libsodium/include/sodium/ |
H A D | randombytes.h | 23 …uint32_t (*uniform)(const uint32_t upper_bound); /* optional, a default implementation will be … 45 uint32_t randombytes_uniform(const uint32_t upper_bound);
|
/netbsd-src/external/gpl3/gcc/dist/libstdc++-v3/include/debug/ |
H A D | multiset.h | 486 upper_bound(const key_type& __x) in _GLIBCXX_VISIBILITY() 487 { return iterator(_Base::upper_bound(__x), this); } in _GLIBCXX_VISIBILITY() 492 upper_bound(const key_type& __x) const in _GLIBCXX_VISIBILITY() 493 { return const_iterator(_Base::upper_bound(__x), this); } in _GLIBCXX_VISIBILITY() 500 upper_bound(const _Kt& __x) in _GLIBCXX_VISIBILITY() 501 { return { _Base::upper_bound(__x), this }; } in _GLIBCXX_VISIBILITY() 507 upper_bound(const _Kt& __x) const in _GLIBCXX_VISIBILITY() 508 { return { _Base::upper_bound(__x), this }; } in _GLIBCXX_VISIBILITY()
|
H A D | set.h | 497 upper_bound(const key_type& __x) in _GLIBCXX_VISIBILITY() 498 { return iterator(_Base::upper_bound(__x), this); } in _GLIBCXX_VISIBILITY() 503 upper_bound(const key_type& __x) const in _GLIBCXX_VISIBILITY() 504 { return const_iterator(_Base::upper_bound(__x), this); } in _GLIBCXX_VISIBILITY() 511 upper_bound(const _Kt& __x) in _GLIBCXX_VISIBILITY() 512 { return { _Base::upper_bound(__x), this }; } in _GLIBCXX_VISIBILITY() 518 upper_bound(const _Kt& __x) const in _GLIBCXX_VISIBILITY() 519 { return { _Base::upper_bound(__x), this }; } in _GLIBCXX_VISIBILITY()
|
H A D | multimap.h | 518 upper_bound(const key_type& __x) in _GLIBCXX_VISIBILITY() 519 { return iterator(_Base::upper_bound(__x), this); } in _GLIBCXX_VISIBILITY() 526 upper_bound(const _Kt& __x) in _GLIBCXX_VISIBILITY() 527 { return { _Base::upper_bound(__x), this }; } in _GLIBCXX_VISIBILITY() 531 upper_bound(const key_type& __x) const in _GLIBCXX_VISIBILITY() 532 { return const_iterator(_Base::upper_bound(__x), this); } in _GLIBCXX_VISIBILITY() 539 upper_bound(const _Kt& __x) const in _GLIBCXX_VISIBILITY() 540 { return { _Base::upper_bound(__x), this }; } in _GLIBCXX_VISIBILITY()
|
H A D | map.h | 636 upper_bound(const key_type& __x) in _GLIBCXX_VISIBILITY() 637 { return iterator(_Base::upper_bound(__x), this); } in _GLIBCXX_VISIBILITY() 644 upper_bound(const _Kt& __x) in _GLIBCXX_VISIBILITY() 645 { return { _Base::upper_bound(__x), this }; } in _GLIBCXX_VISIBILITY() 649 upper_bound(const key_type& __x) const in _GLIBCXX_VISIBILITY() 650 { return const_iterator(_Base::upper_bound(__x), this); } in _GLIBCXX_VISIBILITY() 657 upper_bound(const _Kt& __x) const in _GLIBCXX_VISIBILITY() 658 { return { _Base::upper_bound(__x), this }; } in _GLIBCXX_VISIBILITY()
|
/netbsd-src/external/gpl3/gcc.old/dist/libstdc++-v3/include/debug/ |
H A D | set.h | 488 upper_bound(const key_type& __x) in _GLIBCXX_VISIBILITY() 489 { return iterator(_Base::upper_bound(__x), this); } in _GLIBCXX_VISIBILITY() 494 upper_bound(const key_type& __x) const in _GLIBCXX_VISIBILITY() 495 { return const_iterator(_Base::upper_bound(__x), this); } in _GLIBCXX_VISIBILITY() 502 upper_bound(const _Kt& __x) in _GLIBCXX_VISIBILITY() 503 { return { _Base::upper_bound(__x), this }; } in _GLIBCXX_VISIBILITY() 509 upper_bound(const _Kt& __x) const in _GLIBCXX_VISIBILITY() 510 { return { _Base::upper_bound(__x), this }; } in _GLIBCXX_VISIBILITY()
|
H A D | multiset.h | 476 upper_bound(const key_type& __x) in _GLIBCXX_VISIBILITY() 477 { return iterator(_Base::upper_bound(__x), this); } in _GLIBCXX_VISIBILITY() 482 upper_bound(const key_type& __x) const in _GLIBCXX_VISIBILITY() 483 { return const_iterator(_Base::upper_bound(__x), this); } in _GLIBCXX_VISIBILITY() 490 upper_bound(const _Kt& __x) in _GLIBCXX_VISIBILITY() 491 { return { _Base::upper_bound(__x), this }; } in _GLIBCXX_VISIBILITY() 497 upper_bound(const _Kt& __x) const in _GLIBCXX_VISIBILITY() 498 { return { _Base::upper_bound(__x), this }; } in _GLIBCXX_VISIBILITY()
|
H A D | multimap.h | 508 upper_bound(const key_type& __x) in _GLIBCXX_VISIBILITY() 509 { return iterator(_Base::upper_bound(__x), this); } in _GLIBCXX_VISIBILITY() 516 upper_bound(const _Kt& __x) in _GLIBCXX_VISIBILITY() 517 { return { _Base::upper_bound(__x), this }; } in _GLIBCXX_VISIBILITY() 521 upper_bound(const key_type& __x) const in _GLIBCXX_VISIBILITY() 522 { return const_iterator(_Base::upper_bound(__x), this); } in _GLIBCXX_VISIBILITY() 529 upper_bound(const _Kt& __x) const in _GLIBCXX_VISIBILITY() 530 { return { _Base::upper_bound(__x), this }; } in _GLIBCXX_VISIBILITY()
|
H A D | map.h | 627 upper_bound(const key_type& __x) in _GLIBCXX_VISIBILITY() 628 { return iterator(_Base::upper_bound(__x), this); } in _GLIBCXX_VISIBILITY() 635 upper_bound(const _Kt& __x) in _GLIBCXX_VISIBILITY() 636 { return { _Base::upper_bound(__x), this }; } in _GLIBCXX_VISIBILITY() 640 upper_bound(const key_type& __x) const in _GLIBCXX_VISIBILITY() 641 { return const_iterator(_Base::upper_bound(__x), this); } in _GLIBCXX_VISIBILITY() 648 upper_bound(const _Kt& __x) const in _GLIBCXX_VISIBILITY() 649 { return { _Base::upper_bound(__x), this }; } in _GLIBCXX_VISIBILITY()
|
/netbsd-src/external/apache2/llvm/dist/libcxx/include/ |
H A D | set | 172 iterator upper_bound(const key_type& k); 173 const_iterator upper_bound(const key_type& k) const; 175 iterator upper_bound(const K& x); // C++14 177 const_iterator upper_bound(const K& x) const; // C++14 377 iterator upper_bound(const key_type& k); 378 const_iterator upper_bound(const key_type& k) const; 380 iterator upper_bound(const K& x); // C++14 382 const_iterator upper_bound(const K& x) const; // C++14 835 iterator upper_bound(const key_type& __k) 836 {return __tree_.upper_bound(__k);} [all …]
|
/netbsd-src/external/gpl3/gcc/dist/libstdc++-v3/include/bits/ |
H A D | stl_multiset.h | 842 upper_bound(const key_type& __x) in _GLIBCXX_VISIBILITY() 843 { return _M_t.upper_bound(__x); } in _GLIBCXX_VISIBILITY() 846 upper_bound(const key_type& __x) const in _GLIBCXX_VISIBILITY() 847 { return _M_t.upper_bound(__x); } in _GLIBCXX_VISIBILITY() 852 upper_bound(const _Kt& __x) in _GLIBCXX_VISIBILITY() 858 upper_bound(const _Kt& __x) const in _GLIBCXX_VISIBILITY()
|
/netbsd-src/external/gpl3/gcc.old/dist/libstdc++-v3/include/bits/ |
H A D | stl_multiset.h | 840 upper_bound(const key_type& __x) in _GLIBCXX_VISIBILITY() 841 { return _M_t.upper_bound(__x); } in _GLIBCXX_VISIBILITY() 844 upper_bound(const key_type& __x) const in _GLIBCXX_VISIBILITY() 845 { return _M_t.upper_bound(__x); } in _GLIBCXX_VISIBILITY() 850 upper_bound(const _Kt& __x) in _GLIBCXX_VISIBILITY() 856 upper_bound(const _Kt& __x) const in _GLIBCXX_VISIBILITY()
|