Lines Matching refs:sparse
24 /* A nodearray is an array type that is either sparse or dense, depending on
30 * In sparse mode, the array has elements with a 24-bit node index and a value.
37 * up a lot, especially when NEON is available, by making the sparse mode store
53 * elements and included into sparse elements.
59 /* Type storing sparse nodearray elements, consisting of a nodearray_value at
66 nodearray_sparse *sparse;
77 for (nodearray_sparse *elem = (buf)->sparse; \
78 elem < (buf)->sparse + (buf)->size; elem++)
103 free(a->sparse);
132 nodearray_sparse *data = a->sparse;
193 nodearray_sparse *data = a->sparse;
201 a->sparse = (nodearray_sparse *)malloc(a->sparse_capacity * sizeof(nodearray_sparse));
204 memcpy(a->sparse, data, left * sizeof(nodearray_sparse));
207 nodearray_sparse *elem = a->sparse + left;
237 free(old.sparse);