Lines Matching refs:_Up
538 template<class _Tp, class _Up>
540 common_type_t<_Tp,_Up>
541 gcd(_Tp __m, _Up __n)
543 …static_assert((is_integral<_Tp>::value && is_integral<_Up>::value), "Arguments to gcd must be inte…
545 …static_assert((!is_same<typename remove_cv<_Up>::type, bool>::value), "Second argument to gcd cann…
546 using _Rp = common_type_t<_Tp,_Up>;
550 static_cast<_Wp>(__ct_abs<_Rp, _Up>()(__n))));
553 template<class _Tp, class _Up>
555 common_type_t<_Tp,_Up>
556 lcm(_Tp __m, _Up __n)
558 …static_assert((is_integral<_Tp>::value && is_integral<_Up>::value), "Arguments to lcm must be inte…
560 …static_assert((!is_same<typename remove_cv<_Up>::type, bool>::value), "Second argument to lcm cann…
564 using _Rp = common_type_t<_Tp,_Up>;
566 _Rp __val2 = __ct_abs<_Rp, _Up>()(__n);
580 using _Up = make_unsigned_t<_Tp>;
581 constexpr _Up __bitshift = numeric_limits<_Up>::digits - 1;
583 _Up __diff = _Up(__b) - _Up(__a);
584 _Up __sign_bit = __b < __a;
586 _Up __half_diff = (__diff / 2) + (__sign_bit << __bitshift) + (__sign_bit & __diff);