Lines Matching refs:bit32

86 	tz->bit32.ttisgmtcnt = timelib_conv_int(buffer[0]);  in read_header()
87 tz->bit32.ttisstdcnt = timelib_conv_int(buffer[1]); in read_header()
88 tz->bit32.leapcnt = timelib_conv_int(buffer[2]); in read_header()
89 tz->bit32.timecnt = timelib_conv_int(buffer[3]); in read_header()
90 tz->bit32.typecnt = timelib_conv_int(buffer[4]); in read_header()
91 tz->bit32.charcnt = timelib_conv_int(buffer[5]); in read_header()
109 if (tz->bit32.timecnt) { in read_transistions()
110 buffer = (int32_t*) timelib_malloc(tz->bit32.timecnt * sizeof(int32_t)); in read_transistions()
114 memcpy(buffer, *tzf, sizeof(int32_t) * tz->bit32.timecnt); in read_transistions()
115 *tzf += (sizeof(int32_t) * tz->bit32.timecnt); in read_transistions()
116 for (i = 0; i < tz->bit32.timecnt; i++) { in read_transistions()
120 cbuffer = (unsigned char*) timelib_malloc(tz->bit32.timecnt * sizeof(unsigned char)); in read_transistions()
125 memcpy(cbuffer, *tzf, sizeof(unsigned char) * tz->bit32.timecnt); in read_transistions()
126 *tzf += sizeof(unsigned char) * tz->bit32.timecnt; in read_transistions()
154 buffer = (unsigned char*) timelib_malloc(tz->bit32.typecnt * sizeof(unsigned char) * 6); in read_types()
158 memcpy(buffer, *tzf, sizeof(unsigned char) * 6 * tz->bit32.typecnt); in read_types()
159 *tzf += sizeof(unsigned char) * 6 * tz->bit32.typecnt; in read_types()
161 tz->type = (ttinfo*) timelib_malloc(tz->bit32.typecnt * sizeof(struct ttinfo)); in read_types()
167 for (i = 0; i < tz->bit32.typecnt; i++) { in read_types()
175 tz->timezone_abbr = (char*) timelib_malloc(tz->bit32.charcnt); in read_types()
179 memcpy(tz->timezone_abbr, *tzf, sizeof(char) * tz->bit32.charcnt); in read_types()
180 *tzf += sizeof(char) * tz->bit32.charcnt; in read_types()
182 if (tz->bit32.leapcnt) { in read_types()
183 leap_buffer = (int32_t *) timelib_malloc(tz->bit32.leapcnt * 2 * sizeof(int32_t)); in read_types()
187 memcpy(leap_buffer, *tzf, sizeof(int32_t) * tz->bit32.leapcnt * 2); in read_types()
188 *tzf += sizeof(int32_t) * tz->bit32.leapcnt * 2; in read_types()
190 tz->leap_times = (tlinfo*) timelib_malloc(tz->bit32.leapcnt * sizeof(tlinfo)); in read_types()
195 for (i = 0; i < tz->bit32.leapcnt; i++) { in read_types()
202 if (tz->bit32.ttisstdcnt) { in read_types()
203 buffer = (unsigned char*) timelib_malloc(tz->bit32.ttisstdcnt * sizeof(unsigned char)); in read_types()
207 memcpy(buffer, *tzf, sizeof(unsigned char) * tz->bit32.ttisstdcnt); in read_types()
208 *tzf += sizeof(unsigned char) * tz->bit32.ttisstdcnt; in read_types()
210 for (i = 0; i < tz->bit32.ttisstdcnt; i++) { in read_types()
216 if (tz->bit32.ttisgmtcnt) { in read_types()
217 buffer = (unsigned char*) timelib_malloc(tz->bit32.ttisgmtcnt * sizeof(unsigned char)); in read_types()
221 memcpy(buffer, *tzf, sizeof(unsigned char) * tz->bit32.ttisgmtcnt); in read_types()
222 *tzf += sizeof(unsigned char) * tz->bit32.ttisgmtcnt; in read_types()
224 for (i = 0; i < tz->bit32.ttisgmtcnt; i++) { in read_types()
270 printf("UTC/Local count: " TIMELIB_ULONG_FMT "\n", (timelib_ulong) tz->bit32.ttisgmtcnt); in timelib_dump_tzinfo()
271 printf("Std/Wall count: " TIMELIB_ULONG_FMT "\n", (timelib_ulong) tz->bit32.ttisstdcnt); in timelib_dump_tzinfo()
272 printf("Leap.sec. count: " TIMELIB_ULONG_FMT "\n", (timelib_ulong) tz->bit32.leapcnt); in timelib_dump_tzinfo()
273 printf("Trans. count: " TIMELIB_ULONG_FMT "\n", (timelib_ulong) tz->bit32.timecnt); in timelib_dump_tzinfo()
274 printf("Local types count: " TIMELIB_ULONG_FMT "\n", (timelib_ulong) tz->bit32.typecnt); in timelib_dump_tzinfo()
275 printf("Zone Abbr. count: " TIMELIB_ULONG_FMT "\n", (timelib_ulong) tz->bit32.charcnt); in timelib_dump_tzinfo()
286 for (i = 0; i < tz->bit32.timecnt; i++) { in timelib_dump_tzinfo()
297 for (i = 0; i < tz->bit32.leapcnt; i++) { in timelib_dump_tzinfo()
414 if (!tz->bit32.timecnt || !tz->trans) { in fetch_timezone_offset()
416 if (tz->bit32.typecnt == 1) { in fetch_timezone_offset()
431 while (j < tz->bit32.timecnt && tz->type[tz->trans_idx[j]].isdst) { in fetch_timezone_offset()
434 if (j == tz->bit32.timecnt) { in fetch_timezone_offset()
442 for (i = 0; i < tz->bit32.timecnt; i++) { in fetch_timezone_offset()
448 *transition_time = tz->trans[tz->bit32.timecnt - 1]; in fetch_timezone_offset()
449 return &(tz->type[tz->trans_idx[tz->bit32.timecnt - 1]]); in fetch_timezone_offset()
456 if (!tz->bit32.leapcnt || !tz->leap_times) { in fetch_leaptime_offset()
460 for (i = tz->bit32.leapcnt - 1; i > 0; i--) { in fetch_leaptime_offset()