Lines Matching refs:_PyTime_t
12 (_PyTime_t)(a) < _PyTime_MIN / (_PyTime_t)(b) \
13 || _PyTime_MAX / (_PyTime_t)(b) < (_PyTime_t)(a))
46 _PyTime_t
47 _PyTime_MulDiv(_PyTime_t ticks, _PyTime_t mul, _PyTime_t div) in _PyTime_MulDiv()
49 _PyTime_t intpart, remaining; in _PyTime_MulDiv()
237 _PyTime_t
240 _PyTime_t t; in _PyTime_FromSeconds()
247 t = (_PyTime_t)seconds; in _PyTime_FromSeconds()
254 _PyTime_t
255 _PyTime_FromNanoseconds(_PyTime_t ns) in _PyTime_FromNanoseconds()
262 _PyTime_FromNanosecondsObject(_PyTime_t *tp, PyObject *obj) in _PyTime_FromNanosecondsObject()
265 _PyTime_t t; in _PyTime_FromNanosecondsObject()
273 Py_BUILD_ASSERT(sizeof(long long) == sizeof(_PyTime_t)); in _PyTime_FromNanosecondsObject()
283 t = (_PyTime_t)nsec; in _PyTime_FromNanosecondsObject()
290 pytime_fromtimespec(_PyTime_t *tp, struct timespec *ts, int raise) in pytime_fromtimespec()
292 _PyTime_t t, nsec; in pytime_fromtimespec()
295 Py_BUILD_ASSERT(sizeof(ts->tv_sec) <= sizeof(_PyTime_t)); in pytime_fromtimespec()
296 t = (_PyTime_t)ts->tv_sec; in pytime_fromtimespec()
328 _PyTime_FromTimespec(_PyTime_t *tp, struct timespec *ts) in _PyTime_FromTimespec()
336 pytime_fromtimeval(_PyTime_t *tp, struct timeval *tv, int raise) in pytime_fromtimeval()
338 _PyTime_t t, usec; in pytime_fromtimeval()
341 Py_BUILD_ASSERT(sizeof(tv->tv_sec) <= sizeof(_PyTime_t)); in pytime_fromtimeval()
342 t = (_PyTime_t)tv->tv_sec; in pytime_fromtimeval()
355 usec = (_PyTime_t)tv->tv_usec * US_TO_NS; in pytime_fromtimeval()
374 _PyTime_FromTimeval(_PyTime_t *tp, struct timeval *tv) in _PyTime_FromTimeval()
381 _PyTime_FromDouble(_PyTime_t *t, double value, _PyTime_round_t round, in _PyTime_FromDouble()
392 if (!_Py_InIntegralTypeRange(_PyTime_t, d)) { in _PyTime_FromDouble()
396 *t = (_PyTime_t)d; in _PyTime_FromDouble()
401 _PyTime_FromObject(_PyTime_t *t, PyObject *obj, _PyTime_round_t round, in _PyTime_FromObject()
415 Py_BUILD_ASSERT(sizeof(long long) <= sizeof(_PyTime_t)); in _PyTime_FromObject()
435 _PyTime_FromSecondsObject(_PyTime_t *t, PyObject *obj, _PyTime_round_t round) in _PyTime_FromSecondsObject()
441 _PyTime_FromMillisecondsObject(_PyTime_t *t, PyObject *obj, _PyTime_round_t round) in _PyTime_FromMillisecondsObject()
447 _PyTime_AsSecondsDouble(_PyTime_t t) in _PyTime_AsSecondsDouble()
453 _PyTime_t secs; in _PyTime_AsSecondsDouble()
467 _PyTime_AsNanosecondsObject(_PyTime_t t) in _PyTime_AsNanosecondsObject()
469 Py_BUILD_ASSERT(sizeof(long long) >= sizeof(_PyTime_t)); in _PyTime_AsNanosecondsObject()
473 static _PyTime_t
474 _PyTime_Divide(const _PyTime_t t, const _PyTime_t k, in _PyTime_Divide()
479 _PyTime_t x, r, abs_r; in _PyTime_Divide()
520 _PyTime_t
521 _PyTime_AsMilliseconds(_PyTime_t t, _PyTime_round_t round) in _PyTime_AsMilliseconds()
526 _PyTime_t
527 _PyTime_AsMicroseconds(_PyTime_t t, _PyTime_round_t round) in _PyTime_AsMicroseconds()
533 _PyTime_AsTimeval_impl(_PyTime_t t, _PyTime_t *p_secs, int *p_us, in _PyTime_AsTimeval_impl()
536 _PyTime_t secs, ns; in _PyTime_AsTimeval_impl()
571 _PyTime_AsTimevalStruct_impl(_PyTime_t t, struct timeval *tv, in _PyTime_AsTimevalStruct_impl()
574 _PyTime_t secs, secs2; in _PyTime_AsTimevalStruct_impl()
587 secs2 = (_PyTime_t)tv->tv_sec; in _PyTime_AsTimevalStruct_impl()
598 _PyTime_AsTimeval(_PyTime_t t, struct timeval *tv, _PyTime_round_t round) in _PyTime_AsTimeval()
604 _PyTime_AsTimeval_noraise(_PyTime_t t, struct timeval *tv, _PyTime_round_t round) in _PyTime_AsTimeval_noraise()
610 _PyTime_AsTimevalTime_t(_PyTime_t t, time_t *p_secs, int *us, in _PyTime_AsTimevalTime_t()
613 _PyTime_t secs; in _PyTime_AsTimevalTime_t()
620 if (res < 0 || (_PyTime_t)*p_secs != secs) { in _PyTime_AsTimevalTime_t()
630 _PyTime_AsTimespec(_PyTime_t t, struct timespec *ts) in _PyTime_AsTimespec()
632 _PyTime_t secs, nsec; in _PyTime_AsTimespec()
644 if ((_PyTime_t)ts->tv_sec != secs) { in _PyTime_AsTimespec()
653 pygettimeofday(_PyTime_t *tp, _Py_clock_info_t *info, int raise) in pygettimeofday()
747 _PyTime_t
750 _PyTime_t t; in _PyTime_GetSystemClock()
759 _PyTime_GetSystemClockWithInfo(_PyTime_t *t, _Py_clock_info_t *info) in _PyTime_GetSystemClockWithInfo()
765 pymonotonic(_PyTime_t *tp, _Py_clock_info_t *info, int raise) in pymonotonic()
769 _PyTime_t t; in pymonotonic()
774 Py_BUILD_ASSERT(sizeof(ticks) <= sizeof(_PyTime_t)); in pymonotonic()
775 t = (_PyTime_t)ticks; in pymonotonic()
823 assert(sizeof(timebase.numer) < sizeof(_PyTime_t)); in pymonotonic()
824 assert(sizeof(timebase.denom) < sizeof(_PyTime_t)); in pymonotonic()
836 if ((_PyTime_t)timebase.numer > _PyTime_MAX / (_PyTime_t)timebase.denom) { in pymonotonic()
857 (_PyTime_t)timebase.numer, in pymonotonic()
858 (_PyTime_t)timebase.denom); in pymonotonic()
918 _PyTime_t
921 _PyTime_t t; in _PyTime_GetMonotonicClock()
931 _PyTime_GetMonotonicClockWithInfo(_PyTime_t *tp, _Py_clock_info_t *info) in _PyTime_GetMonotonicClockWithInfo()
939 win_perf_counter(_PyTime_t *tp, _Py_clock_info_t *info) in win_perf_counter()
945 _PyTime_t ticks; in win_perf_counter()
1002 ticks = (_PyTime_t)ticksll; in win_perf_counter()
1004 *tp = _PyTime_MulDiv(ticks, SEC_TO_NS, (_PyTime_t)frequency); in win_perf_counter()
1011 _PyTime_GetPerfCounterWithInfo(_PyTime_t *t, _Py_clock_info_t *info) in _PyTime_GetPerfCounterWithInfo()
1021 _PyTime_t
1024 _PyTime_t t; in _PyTime_GetPerfCounter()
1038 _PyTime_t t; in _PyTime_Init()