Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
lemire authored Jan 9, 2024
1 parent f747551 commit ff59700
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -464,6 +464,19 @@ int main() {
}
```
# Compressed 64-bit Roaring bitmaps (C)
We also support efficient 64-bit compressed bitmaps in C:
```c++
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);
```


# Conventional bitsets (C)

We support convention bitsets (uncompressed) as part of the library.
Expand Down

0 comments on commit ff59700

Please sign in to comment.