Lines Matching refs:num_transitions
40 size_t num_transitions; member
111 unsigned char *isdsts, size_t num_transitions,
116 size_t num_transitions);
514 size_t num_trans = self->num_transitions; in zoneinfo_fromutc()
894 Py_ssize_t num_transitions = PyTuple_Size(trans_utc); in load_data() local
895 if (num_transitions < 0) { in load_data()
904 self->num_transitions = (size_t)num_transitions; in load_data()
909 PyMem_Malloc(self->num_transitions * sizeof(int64_t)); in load_data()
913 trans_idx = PyMem_Malloc(self->num_transitions * sizeof(Py_ssize_t)); in load_data()
918 for (size_t i = 0; i < self->num_transitions; ++i) { in load_data()
987 utcoff_to_dstoff(trans_idx, utcoff, dstoff, isdst, self->num_transitions, in load_data()
992 self->num_transitions)) { in load_data()
1015 PyMem_Calloc(self->num_transitions, sizeof(_ttinfo *)); in load_data()
1019 for (size_t i = 0; i < self->num_transitions; ++i) { in load_data()
1051 if (!self->num_transitions) { in load_data()
1055 idx = trans_idx[self->num_transitions - 1]; in load_data()
1974 unsigned char *isdsts, size_t num_transitions, in utcoff_to_dstoff() argument
1983 for (size_t i = 1; i < num_transitions; ++i) { in utcoff_to_dstoff()
2059 size_t num_transitions) in ts_to_local() argument
2061 if (num_transitions == 0) { in ts_to_local()
2067 trans_local[i] = PyMem_Malloc(num_transitions * sizeof(int64_t)); in ts_to_local()
2072 memcpy(trans_local[i], trans_utc, num_transitions * sizeof(int64_t)); in ts_to_local()
2092 for (size_t i = 1; i < num_transitions; ++i) { in ts_to_local()
2151 size_t num_trans = self->num_transitions; in find_ttinfo()
2156 else if (!num_trans || ts > local_transitions[self->num_transitions - 1]) { in find_ttinfo()
2161 size_t idx = _bisect(ts, local_transitions, self->num_transitions) - 1; in find_ttinfo()
2162 assert(idx < self->num_transitions); in find_ttinfo()