Lines Matching defs:wantedy
198 static zic_t rpytime(const struct rule * rp, zic_t wantedy);
3801 rpytime(const struct rule *rp, zic_t wantedy)
3808 if (wantedy == ZIC_MIN)
3810 if (wantedy == ZIC_MAX)
3815 /* dayoff = floor((wantedy - y) / YEARSPERREPEAT) * DAYSPERREPEAT,
3817 yrem = wantedy % YEARSPERREPEAT - y % YEARSPERREPEAT;
3818 dayoff = ((wantedy / YEARSPERREPEAT - y / YEARSPERREPEAT
3821 /* wantedy = y + ((wantedy - y) mod YEARSPERREPEAT), sans overflow. */
3822 wantedy = y + (yrem + 2 * YEARSPERREPEAT) % YEARSPERREPEAT;
3824 while (wantedy != y) {