Lines Matching refs:leftover_us
2419 double leftover_us = 0.0; in delta_new() local
2443 y = accum("microseconds", x, us, _PyLong_One, &leftover_us); in delta_new()
2447 y = accum("milliseconds", x, ms, us_per_ms, &leftover_us); in delta_new()
2451 y = accum("seconds", x, second, us_per_second, &leftover_us); in delta_new()
2455 y = accum("minutes", x, minute, us_per_minute, &leftover_us); in delta_new()
2459 y = accum("hours", x, hour, us_per_hour, &leftover_us); in delta_new()
2463 y = accum("days", x, day, us_per_day, &leftover_us); in delta_new()
2467 y = accum("weeks", x, week, us_per_week, &leftover_us); in delta_new()
2470 if (leftover_us) { in delta_new()
2472 double whole_us = round(leftover_us); in delta_new()
2476 whole_us = round(leftover_us); in delta_new()
2477 if (fabs(whole_us - leftover_us) == 0.5) { in delta_new()
2494 whole_us = 2.0 * round((leftover_us + x_is_odd) * 0.5) - x_is_odd; in delta_new()