Lines Matching refs:newp
775 delta_nonneg(struct tm *newp, struct tm *oldp)
778 int cycles = (newp->tm_year - oldy) / YEARSPERREPEAT;
781 for ( ; tmy < newp->tm_year; ++tmy)
783 result += newp->tm_yday - oldp->tm_yday;
785 result += newp->tm_hour - oldp->tm_hour;
787 result += newp->tm_min - oldp->tm_min;
789 result += newp->tm_sec - oldp->tm_sec;
794 delta(struct tm *newp, struct tm *oldp)
796 return (newp->tm_year < oldp->tm_year
797 ? -delta_nonneg(oldp, newp)
798 : delta_nonneg(newp, oldp));