Lines Matching refs:amount
718 static void add_with_overflow(Scanner *s, timelib_sll *e, timelib_sll amount, int multiplier)
721 if (__builtin_saddll_overflow(*e, amount * multiplier, e)) {
725 *e += (amount * multiplier);
735 static void timelib_set_relative(const char **ptr, timelib_sll amount, int behavior, Scanner *s, in…
744 …case TIMELIB_MICROSEC: add_with_overflow(s, &s->time->relative.us, amount, relunit->multiplier); b…
745 …case TIMELIB_SECOND: add_with_overflow(s, &s->time->relative.s, amount, relunit->multiplier); br…
746 …case TIMELIB_MINUTE: add_with_overflow(s, &s->time->relative.i, amount, relunit->multiplier); br…
747 …case TIMELIB_HOUR: add_with_overflow(s, &s->time->relative.h, amount, relunit->multiplier); br…
748 …case TIMELIB_DAY: add_with_overflow(s, &s->time->relative.d, amount, relunit->multiplier); br…
749 …case TIMELIB_MONTH: add_with_overflow(s, &s->time->relative.m, amount, relunit->multiplier); br…
750 …case TIMELIB_YEAR: add_with_overflow(s, &s->time->relative.y, amount, relunit->multiplier); br…
757 s->time->relative.d += (amount > 0 ? amount - 1 : amount) * 7;
768 s->time->relative.special.amount = amount;
1813 s->time->relative.special.amount = 0 - s->time->relative.special.amount;