Lines Matching refs:x

67     UINT_SET_ITEM *x, *xnext;  in ossl_uint_set_destroy()  local
69 for (x = ossl_list_uint_set_head(s); x != NULL; x = xnext) { in ossl_uint_set_destroy()
70 xnext = ossl_list_uint_set_next(x); in ossl_uint_set_destroy()
71 OPENSSL_free(x); in ossl_uint_set_destroy()
76 static void uint_set_merge_adjacent(UINT_SET *s, UINT_SET_ITEM *x) in uint_set_merge_adjacent() argument
78 UINT_SET_ITEM *xprev = ossl_list_uint_set_prev(x); in uint_set_merge_adjacent()
83 if (x->range.start - 1 != xprev->range.end) in uint_set_merge_adjacent()
86 x->range.start = xprev->range.start; in uint_set_merge_adjacent()
91 static uint64_t u64_min(uint64_t x, uint64_t y) in u64_min() argument
93 return x < y ? x : y; in u64_min()
96 static uint64_t u64_max(uint64_t x, uint64_t y) in u64_max() argument
98 return x > y ? x : y; in u64_max()
114 UINT_SET_ITEM *x = OPENSSL_malloc(sizeof(UINT_SET_ITEM)); in create_set_item() local
116 if (x == NULL) in create_set_item()
119 ossl_list_uint_set_init_elem(x); in create_set_item()
120 x->range.start = start; in create_set_item()
121 x->range.end = end; in create_set_item()
122 return x; in create_set_item()
127 UINT_SET_ITEM *x, *xnext, *z, *zprev, *f; in ossl_uint_set_insert() local
135 x = create_set_item(start, end); in ossl_uint_set_insert()
136 if (x == NULL) in ossl_uint_set_insert()
138 ossl_list_uint_set_insert_head(s, x); in ossl_uint_set_insert()
156 x = create_set_item(start, end); in ossl_uint_set_insert()
157 if (x == NULL) in ossl_uint_set_insert()
159 ossl_list_uint_set_insert_tail(s, x); in ossl_uint_set_insert()
171 x = ossl_list_uint_set_head(s); in ossl_uint_set_insert()
172 x->range.start = start; in ossl_uint_set_insert()
173 x->range.end = end; in ossl_uint_set_insert()
174 for (x = ossl_list_uint_set_next(x); x != NULL; x = xnext) { in ossl_uint_set_insert()
175 xnext = ossl_list_uint_set_next(x); in ossl_uint_set_insert()
176 ossl_list_uint_set_remove(s, x); in ossl_uint_set_insert()
216 z = ossl_list_uint_set_next(x = z); in ossl_uint_set_insert()
217 ossl_list_uint_set_remove(s, x); in ossl_uint_set_insert()
218 OPENSSL_free(x); in ossl_uint_set_insert()
246 x = create_set_item(start, end); in ossl_uint_set_insert()
247 if (x == NULL) in ossl_uint_set_insert()
249 ossl_list_uint_set_insert_before(s, z, x); in ossl_uint_set_insert()
320 UINT_SET_ITEM *x; in ossl_uint_set_query() local
325 for (x = ossl_list_uint_set_tail(s); x != NULL; x = ossl_list_uint_set_prev(x)) in ossl_uint_set_query()
326 if (x->range.start <= v && x->range.end >= v) in ossl_uint_set_query()
328 else if (x->range.end < v) in ossl_uint_set_query()