Skip to content

Commit

Permalink
License on the README
Browse files Browse the repository at this point in the history
  • Loading branch information
vmg committed May 18, 2013
1 parent 39a50dc commit 281f055
Showing 1 changed file with 31 additions and 17 deletions.
48 changes: 31 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,30 +7,44 @@ Usage
-----

```c
struct ewah_bitmap *array = ewah_bitmap_new();
struct ewah_iterator it;
eword_t word;
struct ewah_bitmap *array = ewah_bitmap_new();
struct ewah_iterator it;
eword_t word;

ewah_bitmap_set(array, 3);
ewah_bitmap_set(array, 32);
ewah_bitmap_set(array, 48);
ewah_bitmap_set(array, 63);
ewah_bitmap_set(array, 1024);
ewah_bitmap_set(array, 7600);
ewah_bitmap_set(array, 3);
ewah_bitmap_set(array, 32);
ewah_bitmap_set(array, 48);
ewah_bitmap_set(array, 63);
ewah_bitmap_set(array, 1024);
ewah_bitmap_set(array, 7600);

ewah_iterator_init(&it, array);
ewah_iterator_init(&it, array);

while (ewah_iterator_next(&word, &it))
printf("%08llX ", word);
while (ewah_iterator_next(&word, &it))
printf("%08llX ", word);

ewah_bitmap_each_bit(array, &print_a_bit, NULL);
ewah_bitmap_each_bit(array, &print_a_bit, NULL);

ewah_bitmap_free(array);
ewah_bitmap_free(array);
````
Related docs:
------------
http://github.com/lemire/javaewah
http://arxiv.org/abs/0901.3751
http://www.slideshare.net/lemire/all-about-bitmap-indexes-and-sorting-them
- http://github.com/lemire/javaewah
- http://arxiv.org/abs/0901.3751
- http://www.slideshare.net/lemire/all-about-bitmap-indexes-and-sorting-them
License
-------
This code is licensed under Apache License, Version 2.0 (ASL2.0).
This code is a port from the original javaewah project, authored by:
- Daniel Lemire (http://lemire.me/en/),
- Cliff Moon (https://github.com/cliffmoon),
- David McIntosh (https://github.com/mctofu),
- Robert Becho (https://github.com/RBecho),
- Colby Ranger (https://github.com/crangeratgoogle)
- Veronika Zenz (https://github.com/veronikazenz)

0 comments on commit 281f055

Please sign in to comment.