Lines Matching refs:newp
764 delta_nonneg(struct tm *newp, struct tm *oldp)
767 int cycles = (newp->tm_year - oldy) / YEARSPERREPEAT;
770 for ( ; tmy < newp->tm_year; ++tmy)
772 result += newp->tm_yday - oldp->tm_yday;
774 result += newp->tm_hour - oldp->tm_hour;
776 result += newp->tm_min - oldp->tm_min;
778 result += newp->tm_sec - oldp->tm_sec;
783 delta(struct tm *newp, struct tm *oldp)
785 return (newp->tm_year < oldp->tm_year
786 ? -delta_nonneg(oldp, newp)
787 : delta_nonneg(newp, oldp));