Skip to content

Commit

Permalink
deploy: e65e4f4
Browse files Browse the repository at this point in the history
  • Loading branch information
lemire committed Oct 2, 2024
1 parent 2364efa commit 1f81c2e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -503,10 +503,10 @@ <h1><a class="anchor" id="autotoc_md14"></a>
</div><!-- fragment --><p>In some instances, you may want to convert a Roaring bitmap into a conventional (uncompressed) bitset. Indeed, bitsets have advantages such as higher query performances in some cases. The following code illustrates how you may do so:</p>
<div class="fragment"><div class="line"><a class="code" href="dd/d7a/structroaring__bitmap__s.html">roaring_bitmap_t</a> *r1 = <a class="code" href="dc/d56/roaring_8h.html#a46ca47f47e474b348fbc412ba74d2d77">roaring_bitmap_create</a>();</div>
<div class="line"><span class="keywordflow">for</span> (uint32_t i = 100; i &lt; 100000; i+= 1 + (i%5)) {</div>
<div class="line"> <a class="code" href="dc/d56/roaring_8h.html#af85d814ca8a6cd369905f629922c1c98">roaring_bitmap_add</a>(r1, i);</div>
<div class="line"> <a class="code" href="dc/d56/roaring_8h.html#af85d814ca8a6cd369905f629922c1c98">roaring_bitmap_add</a>(r1, i);</div>
<div class="line">}</div>
<div class="line"><span class="keywordflow">for</span> (uint32_t i = 100000; i &lt; 500000; i+= 100) {</div>
<div class="line"> <a class="code" href="dc/d56/roaring_8h.html#af85d814ca8a6cd369905f629922c1c98">roaring_bitmap_add</a>(r1, i);</div>
<div class="line"> <a class="code" href="dc/d56/roaring_8h.html#af85d814ca8a6cd369905f629922c1c98">roaring_bitmap_add</a>(r1, i);</div>
<div class="line">}</div>
<div class="line"><a class="code" href="dc/d56/roaring_8h.html#ab3a666ebfe5de619bd334b9ebe059d73">roaring_bitmap_add_range</a>(r1, 500000, 600000);</div>
<div class="line">bitset_t * bitset = bitset_create();</div>
Expand Down

0 comments on commit 1f81c2e

Please sign in to comment.