Skip to content

Commit

Permalink
deploy: 8cc603f
Browse files Browse the repository at this point in the history
  • Loading branch information
lemire committed Jul 30, 2024
1 parent af62df7 commit 4fed94b
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,16 @@ <h1><a class="anchor" id="autotoc_md10"></a>
<div class="line"> ...</div>
<div class="line">}</div>
<div class="ttc" id="aroaring_8h_html"><div class="ttname"><a href="dc/d56/roaring_8h.html">roaring.h</a></div></div>
</div><!-- fragment --><h1><a class="anchor" id="autotoc_md12"></a>
</div><!-- fragment --><p>By default we use: </p><div class="fragment"><div class="line"><span class="keyword">static</span> roaring_memory_t global_memory_hook = {</div>
<div class="line"> .malloc = malloc,</div>
<div class="line"> .realloc = realloc,</div>
<div class="line"> .calloc = calloc,</div>
<div class="line"> .free = free,</div>
<div class="line"> .aligned_malloc = roaring_bitmap_aligned_malloc,</div>
<div class="line"> .aligned_free = roaring_bitmap_aligned_free,</div>
<div class="line">};</div>
</div><!-- fragment --><p>We require that the <code>free</code>/<code>aligned_free</code> functions follow the C convention where <code>free(NULL)</code>/<code>aligned_free(NULL)</code> have no effect.</p>
<h1><a class="anchor" id="autotoc_md12"></a>
Example (C)</h1>
<p>This example assumes that CRoaring has been build and that you are linking against the corresponding library. By default, CRoaring will install its header files in a <code>roaring</code> directory. If you are working from the amalgamation script, you may add the line <code>#include "roaring.c"</code> if you are not linking against a prebuilt CRoaring library and replace <code>#include &lt;<a class="el" href="dc/d56/roaring_8h.html">roaring/roaring.h</a>&gt;</code> by <code>#include "roaring.h"</code>.</p>
<div class="fragment"><div class="line"><span class="preprocessor">#include &lt;<a class="code" href="dc/d56/roaring_8h.html">roaring/roaring.h</a>&gt;</span></div>
Expand Down

0 comments on commit 4fed94b

Please sign in to comment.