Lines Matching defs:zic_t
35 typedef int_fast64_t zic_t;
36 static zic_t const
39 ZIC32_MIN = -1 - (zic_t) 0x7fffffff,
106 zic_t r_loyear; /* for example, 1986 */
107 zic_t r_hiyear; /* for example, 1986 */
116 zic_t r_tod; /* time from midnight */
120 zic_t r_save; /* offset from standard time */
124 zic_t r_temp; /* used in outzone */
141 zic_t z_stdoff;
147 zic_t z_save;
153 zic_t z_untiltime;
183 static void addtt(zic_t starttime, int type);
184 static int addtype(zic_t, char const *, bool, bool, bool);
185 static void leapadd(zic_t, int, int);
190 static zic_t gethms(const char * string, const char * errstring);
191 static zic_t getsave(char *, bool *);
205 static zic_t oadd(zic_t t1, zic_t t2);
207 static zic_t rpytime(const struct rule * rp, zic_t wantedy);
212 static zic_t tadd(zic_t t1, zic_t t2);
223 static zic_t leapminyear;
224 static zic_t leapmaxyear;
228 static zic_t max_year;
229 static zic_t min_year;
451 zic_t at;
455 static zic_t utoffs[TZ_MAX_TYPES];
461 static zic_t trans[TZ_MAX_LEAPS];
462 static zic_t corr[TZ_MAX_LEAPS];
903 static zic_t const min_time = MINVAL(zic_t, TIME_T_BITS_IN_FILE);
904 static zic_t const max_time = MAXVAL(zic_t, TIME_T_BITS_IN_FILE);
908 static zic_t lo_time = MINVAL(zic_t, TIME_T_BITS_IN_FILE);
909 static zic_t hi_time = MAXVAL(zic_t, TIME_T_BITS_IN_FILE);
913 static zic_t redundant_time = MINVAL(zic_t, TIME_T_BITS_IN_FILE);
916 static zic_t leapexpires = -1;
1004 if (TYPE_BIT(zic_t) < 64) {
1006 _("wild compilation-time specification of zic_t"));
1812 static zic_t
1815 zic_t hh;
1866 static zic_t
1870 zic_t save;
2050 static zic_t
2055 register zic_t i, j;
2056 zic_t year;
2058 zic_t dayoff, tod;
2059 zic_t t;
2129 zic_t t = getleapdatetime(fields, false);
2343 puttzcode(zic_t val, FILE *fp)
2352 puttzcodepass(zic_t val, FILE *fp, int pass)
2368 zic_t a = ap->at, b = bp->at;
2380 limitrange(struct timerange r, zic_t lo, zic_t hi,
2381 zic_t const *ats, unsigned char const *types)
2434 zic_t *ats = xmalloc(align_to(size_product(timecnt + !timecnt,
2436 alignof(zic_t)));
2550 zic_t lo, thismin, thismax;
2784 register zic_t todo;
2831 abbroffset(char *buf, zic_t offset)
2870 bool isdst, zic_t save, bool doquotes)
2908 updateminmax(const zic_t x)
2917 stringoffset(char *result, int resultlen, zic_t offset)
2950 stringrule(char *result, int resultlen, struct rule *const rp, zic_t save, const zic_t stdoff)
2952 register zic_t tod = rp->r_tod;
3087 zic_t save = dstrp ? dstrp->r_save : zp->z_save;
3166 register zic_t starttime, untiltime;
3177 zic_t nonTZlimtime = ZIC_MIN;
3179 zic_t max_year0;
3268 zic_t save = 0;
3272 zic_t stdoff = zp->z_stdoff;
3273 zic_t startoff = stdoff;
3296 zic_t year;
3306 zic_t one = 1;
3307 zic_t y2038_boundary = one << 31;
3322 register zic_t jtime, ktime;
3323 register zic_t offset;
3471 zic_t keep_at_max;
3474 zic_t TZstarttime = ZIC_MAX;
3476 zic_t at = attypes[i].at;
3531 addtt(zic_t starttime, int type)
3541 addtype(zic_t utoff, char const *abbr, bool isdst, bool ttisstd, bool ttisut)
3582 leapadd(zic_t t, int correction, int rolling)
3610 register zic_t last = 0;
3611 register zic_t prevtrans = 0;
3821 ATTRIBUTE_PURE_114833 static zic_t
3822 oadd(zic_t t1, zic_t t2)
3825 zic_t sum;
3835 ATTRIBUTE_PURE_114833 static zic_t
3836 tadd(zic_t t1, zic_t t2)
3839 zic_t sum;
3856 static zic_t
3857 rpytime(const struct rule *rp, zic_t wantedy)
3860 register zic_t dayoff; /* with a nod to Margaret O. */
3861 register zic_t t, y;
3905 zic_t wday = ((EPOCH_WDAY + dayoff % DAYSPERWEEK + DAYSPERWEEK)
3909 dayoff = oadd(dayoff, (zic_t) 1);
3914 dayoff = oadd(dayoff, (zic_t) -1);
3929 t = (zic_t) dayoff * SECSPERDAY;