Lines Matching defs:newp
777 delta_nonneg(struct tm *newp, struct tm *oldp)
780 int cycles = (newp->tm_year - oldy) / YEARSPERREPEAT;
783 for ( ; tmy < newp->tm_year; ++tmy)
785 result += newp->tm_yday - oldp->tm_yday;
787 result += newp->tm_hour - oldp->tm_hour;
789 result += newp->tm_min - oldp->tm_min;
791 result += newp->tm_sec - oldp->tm_sec;
796 delta(struct tm *newp, struct tm *oldp)
798 return (newp->tm_year < oldp->tm_year
799 ? -delta_nonneg(oldp, newp)
800 : delta_nonneg(newp, oldp));