Lines Matching defs:wantedy
207 static zic_t rpytime(const struct rule * rp, zic_t wantedy);
3857 rpytime(const struct rule *rp, zic_t wantedy)
3864 if (wantedy == ZIC_MIN)
3866 if (wantedy == ZIC_MAX)
3871 /* dayoff = floor((wantedy - y) / YEARSPERREPEAT) * DAYSPERREPEAT,
3873 yrem = wantedy % YEARSPERREPEAT - y % YEARSPERREPEAT;
3874 dayoff = ((wantedy / YEARSPERREPEAT - y / YEARSPERREPEAT
3877 /* wantedy = y + ((wantedy - y) mod YEARSPERREPEAT), sans overflow. */
3878 wantedy = y + (yrem + 2 * YEARSPERREPEAT) % YEARSPERREPEAT;
3880 while (wantedy != y) {