Skip to content

Commit a995cb8

Browse files
committed
chore: update to croaring 4.5.1
1 parent be61dad commit a995cb8

File tree

9 files changed

+7148
-7024
lines changed

9 files changed

+7148
-7024
lines changed

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ bindgen:
4242
bindgen --generate-inline-functions \
4343
--allowlist-item '(?i-u:roaring|bitset).*' \
4444
--allowlist-var '(?i-u:roaring|bitset).*' \
45+
--blocklist-item '.*(?i-u:(array|bitset|run)_container).*' \
46+
--blocklist-var '.*(?i-u:(array|bitset|run)_container).*' \
4547
--no-layout-tests \
4648
--rust-target 1.70 \
4749
--use-core \

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ Current documentation is available at https://docs.rs/croaring/latest/croaring/
127127

128128
## CRoaring Version
129129

130-
This crate uses [CRoaring version `4.4.1`](https://github.com/RoaringBitmap/CRoaring/releases/tag/v4.4.1).
130+
This crate uses [CRoaring version `4.5.1`](https://github.com/RoaringBitmap/CRoaring/releases/tag/v4.5.1).
131131
The version of this crate does not necessarily match the version of CRoaring: the major version of the crate is only
132132
incremented when there are breaking changes in the Rust API: It is possible (and has happened) that breaking changes
133133
in the CRoaring C API do not necessitate a major version bump in this crate.

croaring-sys/CRoaring/bindgen_bundled_version.rs

Lines changed: 100 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
/* automatically generated by rust-bindgen 0.72.1 */
22

3-
pub const ROARING_VERSION: &[u8; 6] = b"4.4.1\0";
3+
pub const ROARING_VERSION: &[u8; 6] = b"4.5.1\0";
44
pub const ROARING_VERSION_MAJOR: _bindgen_ty_1 = 4;
5-
pub const ROARING_VERSION_MINOR: _bindgen_ty_1 = 4;
5+
pub const ROARING_VERSION_MINOR: _bindgen_ty_1 = 5;
66
pub const ROARING_VERSION_REVISION: _bindgen_ty_1 = 1;
77
pub type _bindgen_ty_1 = ::core::ffi::c_uint;
88
extern "C" {
@@ -209,6 +209,103 @@ extern "C" {
209209
extern "C" {
210210
pub fn bitset_print(b: *const bitset_t);
211211
}
212+
pub type container_t = ::core::ffi::c_void;
213+
extern "C" {
214+
pub fn bitset_extract_setbits_avx2(
215+
words: *const u64,
216+
length: usize,
217+
out: *mut u32,
218+
outcapacity: usize,
219+
base: u32,
220+
) -> usize;
221+
}
222+
extern "C" {
223+
pub fn bitset_extract_setbits_avx512(
224+
words: *const u64,
225+
length: usize,
226+
out: *mut u32,
227+
outcapacity: usize,
228+
base: u32,
229+
) -> usize;
230+
}
231+
extern "C" {
232+
pub fn bitset_extract_setbits(
233+
words: *const u64,
234+
length: usize,
235+
out: *mut u32,
236+
base: u32,
237+
) -> usize;
238+
}
239+
extern "C" {
240+
pub fn bitset_extract_setbits_sse_uint16(
241+
words: *const u64,
242+
length: usize,
243+
out: *mut u16,
244+
outcapacity: usize,
245+
base: u16,
246+
) -> usize;
247+
}
248+
extern "C" {
249+
pub fn bitset_extract_setbits_avx512_uint16(
250+
words: *const u64,
251+
length: usize,
252+
out: *mut u16,
253+
outcapacity: usize,
254+
base: u16,
255+
) -> usize;
256+
}
257+
extern "C" {
258+
pub fn bitset_extract_setbits_uint16(
259+
words: *const u64,
260+
length: usize,
261+
out: *mut u16,
262+
base: u16,
263+
) -> usize;
264+
}
265+
extern "C" {
266+
pub fn bitset_extract_intersection_setbits_uint16(
267+
words1: *const u64,
268+
words2: *const u64,
269+
length: usize,
270+
out: *mut u16,
271+
base: u16,
272+
) -> usize;
273+
}
274+
extern "C" {
275+
pub fn bitset_set_list_withcard(
276+
words: *mut u64,
277+
card: u64,
278+
list: *const u16,
279+
length: u64,
280+
) -> u64;
281+
}
282+
extern "C" {
283+
pub fn bitset_set_list(words: *mut u64, list: *const u16, length: u64);
284+
}
285+
extern "C" {
286+
pub fn bitset_clear_list(words: *mut u64, card: u64, list: *const u16, length: u64) -> u64;
287+
}
288+
extern "C" {
289+
pub fn bitset_flip_list_withcard(
290+
words: *mut u64,
291+
card: u64,
292+
list: *const u16,
293+
length: u64,
294+
) -> u64;
295+
}
296+
extern "C" {
297+
pub fn bitset_flip_list(words: *mut u64, list: *const u16, length: u64);
298+
}
299+
pub const BITSET_CONTAINER_SIZE_IN_WORDS: _bindgen_ty_4 = 1024;
300+
pub const BITSET_UNKNOWN_CARDINALITY: _bindgen_ty_4 = -1;
301+
pub type _bindgen_ty_4 = ::core::ffi::c_int;
302+
#[repr(C)]
303+
#[derive(Debug, Copy, Clone)]
304+
pub struct rle16_s {
305+
pub value: u16,
306+
pub length: u16,
307+
}
308+
pub type rle16_t = rle16_s;
212309
#[repr(C)]
213310
#[derive(Debug, Copy, Clone)]
214311
pub struct roaring_bitmap_s {
@@ -780,7 +877,7 @@ extern "C" {
780877
);
781878
}
782879
extern "C" {
783-
#[doc = " Create an iterator object that can be used to iterate through the values.\n Caller is responsible for calling `roaring_free_iterator()`.\n\n The iterator is initialized (this function calls `roaring_iterator_init()`)\n If there is a value, then this iterator points to the first value and\n `it->has_value` is true. The value is in `it->current_value`."]
880+
#[doc = " Create an iterator object that can be used to iterate through the values.\n Caller is responsible for calling `roaring_uint32_iterator_free()`.\n\n The iterator is initialized (this function calls `roaring_iterator_init()`)\n If there is a value, then this iterator points to the first value and\n `it->has_value` is true. The value is in `it->current_value`."]
784881
pub fn roaring_iterator_create(r: *const roaring_bitmap_t) -> *mut roaring_uint32_iterator_t;
785882
}
786883
extern "C" {

0 commit comments

Comments
 (0)