Lines Matching refs:__d
128 inline _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR _ToDuration floor(const duration<_Rep, _Period>& __d…
129 _ToDuration __t = chrono::duration_cast<_ToDuration>(__d);
130 if (__t > __d)
136 inline _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR _ToDuration ceil(const duration<_Rep, _Period>& __d)…
137 _ToDuration __t = chrono::duration_cast<_ToDuration>(__d);
138 if (__t < __d)
144 inline _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR _ToDuration round(const duration<_Rep, _Period>& __d…
145 _ToDuration __lower = chrono::floor<_ToDuration>(__d);
147 auto __lower_diff = __d - __lower;
148 auto __upper_diff = __upper - __d;
219 _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR duration(const duration<_Rep2, _Period2>& __d)
220 : __rep_(chrono::duration_cast<duration>(__d).count()) {}
245 _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX17 duration& operator+=(const duration& __d) {
246 __rep_ += __d.count();
249 _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX17 duration& operator-=(const duration& __d) {
250 __rep_ -= __d.count();
417 operator*(const duration<_Rep1, _Period>& __d, const _Rep2& __s) {
420 return _Cd(_Cd(__d).count() * static_cast<_Cr>(__s));
428 operator*(const _Rep1& __s, const duration<_Rep2, _Period>& __d) {
429 return __d * __s;
441 operator/(const duration<_Rep1, _Period>& __d, const _Rep2& __s) {
444 return _Cd(_Cd(__d).count() / static_cast<_Cr>(__s));
463 operator%(const duration<_Rep1, _Period>& __d, const _Rep2& __s) {
466 return _Cd(_Cd(__d).count() % static_cast<_Cr>(__s));