Skip to content

Commit

Permalink
update to 0.9.8
Browse files Browse the repository at this point in the history
  • Loading branch information
jwhear committed Feb 18, 2023
1 parent c1ce052 commit cc8cde0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 17 deletions.
19 changes: 5 additions & 14 deletions croaring/roaring.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// !!! DO NOT EDIT - THIS IS AN AUTO-GENERATED FILE !!!
// Created by amalgamation.sh on 2023-02-06T21:41:21Z
// Created by amalgamation.sh on 2023-02-18T21:16:56Z

/*
* The CRoaring project is under a dual license (Apache/MIT).
Expand Down Expand Up @@ -6676,7 +6676,7 @@ static inline container_t *container_remove_range(

if (result_cardinality == 0) {
return NULL;
} else if (result_cardinality < DEFAULT_MAX_SIZE) {
} else if (result_cardinality <= DEFAULT_MAX_SIZE) {
*result_type = ARRAY_CONTAINER_TYPE;
bitset_reset_range(bitset->words, min, max+1);
bitset->cardinality = result_cardinality;
Expand Down Expand Up @@ -6715,15 +6715,7 @@ static inline container_t *container_remove_range(
}

run_container_remove_range(run, min, max);

if (run_container_serialized_size_in_bytes(run->n_runs) <=
bitset_container_serialized_size_in_bytes()) {
*result_type = RUN_CONTAINER_TYPE;
return run;
} else {
*result_type = BITSET_CONTAINER_TYPE;
return bitset_container_from_run(run);
}
return convert_run_to_efficient_container(run, result_type);
}
default:
__builtin_unreachable();
Expand Down Expand Up @@ -11035,8 +11027,7 @@ bool roaring_bitmap_contains_range(const roaring_bitmap_t *r, uint64_t range_sta
}
int32_t is = ra_get_index(&r->high_low_container, hb_rs);
int32_t ie = ra_get_index(&r->high_low_container, hb_re);
ie = (ie < 0 ? -ie - 1 : ie);
if ((is < 0) || ((ie - is) != span) || ie >= hlc_sz) {
if ((ie < 0) || (is < 0) || ((ie - is) != span) || ie >= hlc_sz) {
return false;
}
const uint32_t lb_rs = range_start & 0xFFFF;
Expand Down Expand Up @@ -13207,7 +13198,7 @@ bool run_container_is_subset_array(const run_container_t* container1,
container2->cardinality, start);
stop_pos = advanceUntil(container2->array, stop_pos,
container2->cardinality, stop);
if (start_pos == container2->cardinality) {
if (stop_pos == container2->cardinality) {
return false;
} else if (stop_pos - start_pos != stop - start ||
container2->array[start_pos] != start ||
Expand Down
6 changes: 3 additions & 3 deletions croaring/roaring.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// !!! DO NOT EDIT - THIS IS AN AUTO-GENERATED FILE !!!
// Created by amalgamation.sh on 2023-02-06T21:41:21Z
// Created by amalgamation.sh on 2023-02-18T21:16:56Z

/*
* The CRoaring project is under a dual license (Apache/MIT).
Expand Down Expand Up @@ -58,11 +58,11 @@
// /include/roaring/roaring_version.h automatically generated by release.py, do not change by hand
#ifndef ROARING_INCLUDE_ROARING_VERSION
#define ROARING_INCLUDE_ROARING_VERSION
#define ROARING_VERSION "0.9.3"
#define ROARING_VERSION "0.9.8"
enum {
ROARING_VERSION_MAJOR = 0,
ROARING_VERSION_MINOR = 9,
ROARING_VERSION_REVISION = 3
ROARING_VERSION_REVISION = 8
};
#endif // ROARING_INCLUDE_ROARING_VERSION
/* end file include/roaring/roaring_version.h */
Expand Down

0 comments on commit cc8cde0

Please sign in to comment.