Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ bindgen:
bindgen --generate-inline-functions \
--allowlist-item '(?i-u:roaring|bitset).*' \
--allowlist-var '(?i-u:roaring|bitset).*' \
--blocklist-item '.*(?i-u:(array|bitset|run)_container).*' \
--blocklist-var '.*(?i-u:(array|bitset|run)_container).*' \
--no-layout-tests \
--rust-target 1.70 \
--use-core \
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ Current documentation is available at https://docs.rs/croaring/latest/croaring/

## CRoaring Version

This crate uses [CRoaring version `4.4.1`](https://github.com/RoaringBitmap/CRoaring/releases/tag/v4.4.1).
This crate uses [CRoaring version `4.5.1`](https://github.com/RoaringBitmap/CRoaring/releases/tag/v4.5.1).
The version of this crate does not necessarily match the version of CRoaring: the major version of the crate is only
incremented when there are breaking changes in the Rust API: It is possible (and has happened) that breaking changes
in the CRoaring C API do not necessitate a major version bump in this crate.
103 changes: 100 additions & 3 deletions croaring-sys/CRoaring/bindgen_bundled_version.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/* automatically generated by rust-bindgen 0.72.1 */

pub const ROARING_VERSION: &[u8; 6] = b"4.4.1\0";
pub const ROARING_VERSION: &[u8; 6] = b"4.5.1\0";
pub const ROARING_VERSION_MAJOR: _bindgen_ty_1 = 4;
pub const ROARING_VERSION_MINOR: _bindgen_ty_1 = 4;
pub const ROARING_VERSION_MINOR: _bindgen_ty_1 = 5;
pub const ROARING_VERSION_REVISION: _bindgen_ty_1 = 1;
pub type _bindgen_ty_1 = ::core::ffi::c_uint;
extern "C" {
Expand Down Expand Up @@ -209,6 +209,103 @@ extern "C" {
extern "C" {
pub fn bitset_print(b: *const bitset_t);
}
pub type container_t = ::core::ffi::c_void;
extern "C" {
pub fn bitset_extract_setbits_avx2(
words: *const u64,
length: usize,
out: *mut u32,
outcapacity: usize,
base: u32,
) -> usize;
}
extern "C" {
pub fn bitset_extract_setbits_avx512(
words: *const u64,
length: usize,
out: *mut u32,
outcapacity: usize,
base: u32,
) -> usize;
}
extern "C" {
pub fn bitset_extract_setbits(
words: *const u64,
length: usize,
out: *mut u32,
base: u32,
) -> usize;
}
extern "C" {
pub fn bitset_extract_setbits_sse_uint16(
words: *const u64,
length: usize,
out: *mut u16,
outcapacity: usize,
base: u16,
) -> usize;
}
extern "C" {
pub fn bitset_extract_setbits_avx512_uint16(
words: *const u64,
length: usize,
out: *mut u16,
outcapacity: usize,
base: u16,
) -> usize;
}
extern "C" {
pub fn bitset_extract_setbits_uint16(
words: *const u64,
length: usize,
out: *mut u16,
base: u16,
) -> usize;
}
extern "C" {
pub fn bitset_extract_intersection_setbits_uint16(
words1: *const u64,
words2: *const u64,
length: usize,
out: *mut u16,
base: u16,
) -> usize;
}
extern "C" {
pub fn bitset_set_list_withcard(
words: *mut u64,
card: u64,
list: *const u16,
length: u64,
) -> u64;
}
extern "C" {
pub fn bitset_set_list(words: *mut u64, list: *const u16, length: u64);
}
extern "C" {
pub fn bitset_clear_list(words: *mut u64, card: u64, list: *const u16, length: u64) -> u64;
}
extern "C" {
pub fn bitset_flip_list_withcard(
words: *mut u64,
card: u64,
list: *const u16,
length: u64,
) -> u64;
}
extern "C" {
pub fn bitset_flip_list(words: *mut u64, list: *const u16, length: u64);
}
pub const BITSET_CONTAINER_SIZE_IN_WORDS: _bindgen_ty_4 = 1024;
pub const BITSET_UNKNOWN_CARDINALITY: _bindgen_ty_4 = -1;
pub type _bindgen_ty_4 = ::core::ffi::c_int;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct rle16_s {
pub value: u16,
pub length: u16,
}
pub type rle16_t = rle16_s;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct roaring_bitmap_s {
Expand Down Expand Up @@ -780,7 +877,7 @@ extern "C" {
);
}
extern "C" {
#[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`."]
#[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`."]
pub fn roaring_iterator_create(r: *const roaring_bitmap_t) -> *mut roaring_uint32_iterator_t;
}
extern "C" {
Expand Down
Loading
Loading