Skip to content

Commit

Permalink
Add roaring64 to amalgamation script (#545)
Browse files Browse the repository at this point in the history
  • Loading branch information
SLieve authored Jan 9, 2024
1 parent 0225f21 commit f747551
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions amalgamation.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ $SCRIPTPATH/include/roaring/portability.h
$SCRIPTPATH/include/roaring/bitset/bitset.h
$SCRIPTPATH/include/roaring/roaring.h
$SCRIPTPATH/include/roaring/memory.h
$SCRIPTPATH/include/roaring/roaring64.h
"

# .hh header files for the C++ API wrapper => Order does not matter at present
Expand Down Expand Up @@ -72,6 +73,7 @@ $SCRIPTPATH/include/roaring/containers/mixed_union.h
$SCRIPTPATH/include/roaring/containers/mixed_xor.h
$SCRIPTPATH/include/roaring/containers/containers.h
$SCRIPTPATH/include/roaring/roaring_array.h
$SCRIPTPATH/include/roaring/art/art.h
"

# .c implementation files
Expand Down Expand Up @@ -178,6 +180,11 @@ int main() {
printf("cardinality = %d\n", (int) roaring_bitmap_get_cardinality(r1));
roaring_bitmap_free(r1);
roaring64_bitmap_t *r2 = roaring64_bitmap_create();
for (uint64_t i = 100; i < 1000; i++) roaring64_bitmap_add(r2, i);
printf("cardinality (64-bit) = %d\n", (int) roaring64_bitmap_get_cardinality(r2));
roaring64_bitmap_free(r2);
bitset_t *b = bitset_create();
for (int k = 0; k < 1000; ++k) {
bitset_set(b, 3 * k);
Expand Down

0 comments on commit f747551

Please sign in to comment.