Lines Matching refs:SEC_TO_NS
26 #define SEC_TO_NS (SEC_TO_MS * MS_TO_NS)
395 return pytime_object_to_denominator(obj, sec, nsec, SEC_TO_NS, round);
411 bits, whereas _PyTime_t type has at least 64 bits (SEC_TO_NS takes 30
413 static_assert(INT_MAX <= _PyTime_MAX / SEC_TO_NS, "_PyTime_t overflow");
414 static_assert(INT_MIN >= _PyTime_MIN / SEC_TO_NS, "_PyTime_t underflow");
417 assert((t >= 0 && t <= _PyTime_MAX / SEC_TO_NS)
418 || (t < 0 && t >= _PyTime_MIN / SEC_TO_NS));
419 t *= SEC_TO_NS;
467 int res1 = pytime_mul(&t, SEC_TO_NS);
497 int res1 = pytime_mul(&t, SEC_TO_NS);
583 return pytime_from_object(tp, obj, round, SEC_TO_NS);
601 if (ns % SEC_TO_NS == 0) {
604 _PyTime_t secs = ns / SEC_TO_NS;
833 int res = pytime_divmod(ns, SEC_TO_NS, &tv_sec, &tv_nsec);
1204 /* Make also sure that (ticks * SEC_TO_NS) cannot overflow in
1214 if (frequency > _PyTime_MAX / SEC_TO_NS) {
1257 _PyTime_t ns = _PyTime_MulDiv(ticks, SEC_TO_NS, (_PyTime_t)frequency);