Home
last modified time | relevance | path

Searched refs:_PyTime_MIN (Results 1 - 3 of 3) sorted by relevance

/third_party/python/Python/
H A Dpytime.c47 #if _PyTime_MIN + _PyTime_MAX != -1
84 // Compute t1 + t2. Clamp to [_PyTime_MIN; _PyTime_MAX] on overflow.
92 else if (t2 < 0 && *t1 < _PyTime_MIN - t2) { in pytime_add()
93 *t1 = _PyTime_MIN; in pytime_add()
116 return ((a < _PyTime_MIN / b) || (_PyTime_MAX / b < a)); in pytime_mul_check_overflow()
124 // Compute t * k. Clamp to [_PyTime_MIN; _PyTime_MAX] on overflow.
130 *t = (*t >= 0) ? _PyTime_MAX : _PyTime_MIN; in pytime_mul()
140 // Compute t * k. Clamp to [_PyTime_MIN; _PyTime_MAX] on overflow.
414 static_assert(INT_MIN >= _PyTime_MIN / SEC_TO_NS, "_PyTime_t underflow"); in _PyTime_FromSeconds()
418 || (t < 0 && t >= _PyTime_MIN / SEC_TO_N in _PyTime_FromSeconds()
[all...]
/third_party/python/Include/cpython/
H A Dpytime.h28 // Some functions clamp the result in the range [_PyTime_MIN; _PyTime_MAX], so
60 // _PyTime_MIN nanoseconds is around -292.3 years
61 #define _PyTime_MIN INT64_MIN macro
221 // Compute t1 + t2. Clamp to [_PyTime_MIN; _PyTime_MAX] on overflow.
225 Clamp to [_PyTime_MIN; _PyTime_MAX] on overflow.
243 [_PyTime_MIN; _PyTime_MAX].
263 [_PyTime_MIN; _PyTime_MAX].
294 [_PyTime_MIN; _PyTime_MAX].
/third_party/python/Lib/test/
H A Dtest_time.py42 _PyTime_MIN = -2 ** 63 variable
1007 for t in (_PyTime_MIN, _PyTime_MAX):
1026 for t in (_PyTime_MIN, _PyTime_MAX):

Completed in 4 milliseconds