mirror of
https://github.com/justinethier/cyclone.git
synced 2025-05-19 05:39:17 +02:00
372 lines
68 KiB
HTML
372 lines
68 KiB
HTML
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
|
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
|
|
<meta name="generator" content="Doxygen 1.8.17"/>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
|
<title>Cyclone Scheme: ck-polyfill.h Source File</title>
|
|
<link href="tabs.css" rel="stylesheet" type="text/css"/>
|
|
<script type="text/javascript" src="jquery.js"></script>
|
|
<script type="text/javascript" src="dynsections.js"></script>
|
|
<link href="search/search.css" rel="stylesheet" type="text/css"/>
|
|
<script type="text/javascript" src="search/searchdata.js"></script>
|
|
<script type="text/javascript" src="search/search.js"></script>
|
|
<link href="doxygen.css" rel="stylesheet" type="text/css" />
|
|
</head>
|
|
<body>
|
|
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
|
|
<div id="titlearea">
|
|
<table cellspacing="0" cellpadding="0">
|
|
<tbody>
|
|
<tr style="height: 56px;">
|
|
<td id="projectlogo"><img alt="Logo" src="logo.png"/></td>
|
|
<td id="projectalign" style="padding-left: 0.5em;">
|
|
<div id="projectname">Cyclone Scheme
|
|
 <span id="projectnumber">0.28.0</span>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<!-- end header part -->
|
|
<!-- Generated by Doxygen 1.8.17 -->
|
|
<script type="text/javascript">
|
|
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
|
var searchBox = new SearchBox("searchBox", "search",false,'Search');
|
|
/* @license-end */
|
|
</script>
|
|
<script type="text/javascript" src="menudata.js"></script>
|
|
<script type="text/javascript" src="menu.js"></script>
|
|
<script type="text/javascript">
|
|
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
|
$(function() {
|
|
initMenu('',true,false,'search.php','Search');
|
|
$(document).ready(function() { init_search(); });
|
|
});
|
|
/* @license-end */</script>
|
|
<div id="main-nav"></div>
|
|
</div><!-- top -->
|
|
<!-- window showing the filter options -->
|
|
<div id="MSearchSelectWindow"
|
|
onmouseover="return searchBox.OnSearchSelectShow()"
|
|
onmouseout="return searchBox.OnSearchSelectHide()"
|
|
onkeydown="return searchBox.OnSearchSelectKey(event)">
|
|
</div>
|
|
|
|
<!-- iframe showing the search results (closed by default) -->
|
|
<div id="MSearchResultsWindow">
|
|
<iframe src="javascript:void(0)" frameborder="0"
|
|
name="MSearchResults" id="MSearchResults">
|
|
</iframe>
|
|
</div>
|
|
|
|
<div class="header">
|
|
<div class="headertitle">
|
|
<div class="title">ck-polyfill.h</div> </div>
|
|
</div><!--header-->
|
|
<div class="contents">
|
|
<a href="ck-polyfill_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="preprocessor">#ifndef CYCLONE_CK_POLYFILL_H</span></div>
|
|
<div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="preprocessor">#define CYCLONE_CK_POLYFILL_H</span></div>
|
|
<div class="line"><a name="l00003"></a><span class="lineno"> 3</span>  </div>
|
|
<div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="preprocessor">#include "<a class="code" href="types_8h.html">cyclone/types.h</a>"</span></div>
|
|
<div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="preprocessor">#include "<a class="code" href="hashset_8h.html">cyclone/hashset.h</a>"</span></div>
|
|
<div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="preprocessor">#include <stdbool.h></span></div>
|
|
<div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="preprocessor">#include <stdint.h></span></div>
|
|
<div class="line"><a name="l00008"></a><span class="lineno"> 8</span>  </div>
|
|
<div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="keywordtype">void</span> <a class="code" href="ck-polyfill_8h_a4e2dbefced04c76a62acd40d771929ac.html#a4e2dbefced04c76a62acd40d771929ac">ck_polyfill_init</a>();</div>
|
|
<div class="line"><a name="l00010"></a><span class="lineno"> 10</span>  </div>
|
|
<div class="line"><a name="l00011"></a><span class="lineno"><a class="line" href="structck__malloc.html"> 11</a></span> <span class="keyword">struct </span><a class="code" href="structck__malloc.html">ck_malloc</a> { </div>
|
|
<div class="line"><a name="l00012"></a><span class="lineno"><a class="line" href="structck__malloc_a355c158120f6d777e7782ee8868e622d.html#a355c158120f6d777e7782ee8868e622d"> 12</a></span>  <span class="keywordtype">void</span> *(*malloc)(size_t); </div>
|
|
<div class="line"><a name="l00013"></a><span class="lineno"><a class="line" href="structck__malloc_a41211c537f026590076105cfb3feb2b0.html#a41211c537f026590076105cfb3feb2b0"> 13</a></span>  <span class="keywordtype">void</span> *(*realloc)(<span class="keywordtype">void</span> *, size_t, size_t, bool); </div>
|
|
<div class="line"><a name="l00014"></a><span class="lineno"><a class="line" href="structck__malloc_a9c943772fe47555723afe067abcc6a29.html#a9c943772fe47555723afe067abcc6a29"> 14</a></span>  void (*<a class="code" href="structck__malloc_a9c943772fe47555723afe067abcc6a29.html#a9c943772fe47555723afe067abcc6a29">free</a>)(<span class="keywordtype">void</span> *, size_t, bool); </div>
|
|
<div class="line"><a name="l00015"></a><span class="lineno"> 15</span> }; </div>
|
|
<div class="line"><a name="l00016"></a><span class="lineno"> 16</span>  </div>
|
|
<div class="line"><a name="l00018"></a><span class="lineno"> 18</span> <span class="comment">// Simple hashset (hashset with string support)</span></div>
|
|
<div class="line"><a name="l00019"></a><span class="lineno"> 19</span>  <span class="comment">/* hash function */</span></div>
|
|
<div class="line"><a name="l00020"></a><span class="lineno"><a class="line" href="ck-polyfill_8h_ab1379ff7e5644b446bfc40da2df85889.html#ab1379ff7e5644b446bfc40da2df85889"> 20</a></span>  <span class="keyword">typedef</span> size_t(*<a class="code" href="ck-polyfill_8h_ab1379ff7e5644b446bfc40da2df85889.html#ab1379ff7e5644b446bfc40da2df85889">hash_func_t</a>)(<span class="keyword">const</span> <span class="keywordtype">char</span>*, size_t);</div>
|
|
<div class="line"><a name="l00021"></a><span class="lineno"> 21</span>  </div>
|
|
<div class="line"><a name="l00022"></a><span class="lineno"><a class="line" href="structsimple__hashset__item__st.html"> 22</a></span>  <span class="keyword">struct </span><a class="code" href="structsimple__hashset__item__st.html">simple_hashset_item_st</a> {</div>
|
|
<div class="line"><a name="l00023"></a><span class="lineno"><a class="line" href="structsimple__hashset__item__st_a1e4a49589f2a34612cb1b6bc1db897b6.html#a1e4a49589f2a34612cb1b6bc1db897b6"> 23</a></span>  <span class="keywordtype">size_t</span> <a class="code" href="structsimple__hashset__item__st_a1e4a49589f2a34612cb1b6bc1db897b6.html#a1e4a49589f2a34612cb1b6bc1db897b6">hash</a>;</div>
|
|
<div class="line"><a name="l00024"></a><span class="lineno"><a class="line" href="structsimple__hashset__item__st_a487f61d859f4248c6a6db3518f6d19ca.html#a487f61d859f4248c6a6db3518f6d19ca"> 24</a></span>  <a class="code" href="structsymbol__type.html">symbol_type</a>* <a class="code" href="structsimple__hashset__item__st_a487f61d859f4248c6a6db3518f6d19ca.html#a487f61d859f4248c6a6db3518f6d19ca">item</a>;</div>
|
|
<div class="line"><a name="l00025"></a><span class="lineno"> 25</span>  };</div>
|
|
<div class="line"><a name="l00026"></a><span class="lineno"> 26</span>  </div>
|
|
<div class="line"><a name="l00027"></a><span class="lineno"><a class="line" href="structsimple__hashset__st.html"> 27</a></span>  <span class="keyword">struct </span><a class="code" href="structsimple__hashset__st.html">simple_hashset_st</a> {</div>
|
|
<div class="line"><a name="l00028"></a><span class="lineno"><a class="line" href="structsimple__hashset__st_a95c6c1925238de9e2401bc39e0568b6a.html#a95c6c1925238de9e2401bc39e0568b6a"> 28</a></span>  <span class="keywordtype">size_t</span> <a class="code" href="structsimple__hashset__st_a95c6c1925238de9e2401bc39e0568b6a.html#a95c6c1925238de9e2401bc39e0568b6a">nbits</a>;</div>
|
|
<div class="line"><a name="l00029"></a><span class="lineno"><a class="line" href="structsimple__hashset__st_a1c8d9061eb160d7c2a08c2d5430c02c6.html#a1c8d9061eb160d7c2a08c2d5430c02c6"> 29</a></span>  <span class="keywordtype">size_t</span> <a class="code" href="structsimple__hashset__st_a1c8d9061eb160d7c2a08c2d5430c02c6.html#a1c8d9061eb160d7c2a08c2d5430c02c6">mask</a>;</div>
|
|
<div class="line"><a name="l00030"></a><span class="lineno"> 30</span>  </div>
|
|
<div class="line"><a name="l00031"></a><span class="lineno"><a class="line" href="structsimple__hashset__st_a67754643269d2ace4593861120bccfc2.html#a67754643269d2ace4593861120bccfc2"> 31</a></span>  <span class="keywordtype">size_t</span> <a class="code" href="structsimple__hashset__st_a67754643269d2ace4593861120bccfc2.html#a67754643269d2ace4593861120bccfc2">capacity</a>;</div>
|
|
<div class="line"><a name="l00032"></a><span class="lineno"><a class="line" href="structsimple__hashset__st_a9bbdcb15e5bdb4fd5ebd0a0d9b077729.html#a9bbdcb15e5bdb4fd5ebd0a0d9b077729"> 32</a></span>  <span class="keyword">struct </span><a class="code" href="structsimple__hashset__item__st.html">simple_hashset_item_st</a> *<a class="code" href="structsimple__hashset__st_a9bbdcb15e5bdb4fd5ebd0a0d9b077729.html#a9bbdcb15e5bdb4fd5ebd0a0d9b077729">items</a>;</div>
|
|
<div class="line"><a name="l00033"></a><span class="lineno"><a class="line" href="structsimple__hashset__st_a31f29522ca7e22c00287192b2376ead0.html#a31f29522ca7e22c00287192b2376ead0"> 33</a></span>  <span class="keywordtype">size_t</span> <a class="code" href="structsimple__hashset__st_a31f29522ca7e22c00287192b2376ead0.html#a31f29522ca7e22c00287192b2376ead0">nitems</a>;</div>
|
|
<div class="line"><a name="l00034"></a><span class="lineno"><a class="line" href="structsimple__hashset__st_a565bce5190e3667be2883959b174f791.html#a565bce5190e3667be2883959b174f791"> 34</a></span>  <span class="keywordtype">size_t</span> <a class="code" href="structsimple__hashset__st_a565bce5190e3667be2883959b174f791.html#a565bce5190e3667be2883959b174f791">n_deleted_items</a>;</div>
|
|
<div class="line"><a name="l00035"></a><span class="lineno"> 35</span>  </div>
|
|
<div class="line"><a name="l00036"></a><span class="lineno"><a class="line" href="structsimple__hashset__st_ad32ea2ff5436e2cfd73a54789a5c8f8f.html#ad32ea2ff5436e2cfd73a54789a5c8f8f"> 36</a></span>  <a class="code" href="ck-polyfill_8h_ab1379ff7e5644b446bfc40da2df85889.html#ab1379ff7e5644b446bfc40da2df85889">hash_func_t</a> <a class="code" href="structsimple__hashset__st_ad32ea2ff5436e2cfd73a54789a5c8f8f.html#ad32ea2ff5436e2cfd73a54789a5c8f8f">hash_func</a>;</div>
|
|
<div class="line"><a name="l00037"></a><span class="lineno"> 37</span>  };</div>
|
|
<div class="line"><a name="l00038"></a><span class="lineno"> 38</span> <span class="comment">// struct simple_hashset_st;</span></div>
|
|
<div class="line"><a name="l00039"></a><span class="lineno"><a class="line" href="ck-polyfill_8h_afa95fff55b9e0f3475652733ab09f5e5.html#afa95fff55b9e0f3475652733ab09f5e5"> 39</a></span>  <span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="structsimple__hashset__st.html">simple_hashset_st</a> *<a class="code" href="ck-polyfill_8h_afa95fff55b9e0f3475652733ab09f5e5.html#afa95fff55b9e0f3475652733ab09f5e5">simple_hashset_t</a>;</div>
|
|
<div class="line"><a name="l00040"></a><span class="lineno"> 40</span>  </div>
|
|
<div class="line"><a name="l00041"></a><span class="lineno"> 41</span>  </div>
|
|
<div class="line"><a name="l00042"></a><span class="lineno"> 42</span>  <span class="keyword">struct </span>hashmap_st;</div>
|
|
<div class="line"><a name="l00043"></a><span class="lineno"><a class="line" href="ck-polyfill_8h_a49a5ac795e54252e74e5bafce04e330c.html#a49a5ac795e54252e74e5bafce04e330c"> 43</a></span>  <span class="keyword">typedef</span> <span class="keyword">struct </span>hashmap_st *<a class="code" href="ck-polyfill_8h_a49a5ac795e54252e74e5bafce04e330c.html#a49a5ac795e54252e74e5bafce04e330c">hashmap_t</a>;</div>
|
|
<div class="line"><a name="l00044"></a><span class="lineno"> 44</span>  </div>
|
|
<div class="line"><a name="l00045"></a><span class="lineno"> 45</span>  <span class="comment">/*</span></div>
|
|
<div class="line"><a name="l00046"></a><span class="lineno"> 46</span> <span class="comment"> * HASHSET FUNCTIONS</span></div>
|
|
<div class="line"><a name="l00047"></a><span class="lineno"> 47</span> <span class="comment"> */</span></div>
|
|
<div class="line"><a name="l00048"></a><span class="lineno"> 48</span>  </div>
|
|
<div class="line"><a name="l00049"></a><span class="lineno"> 49</span>  <span class="comment">/* create hashset instance */</span></div>
|
|
<div class="line"><a name="l00050"></a><span class="lineno"> 50</span>  <a class="code" href="structsimple__hashset__st.html">simple_hashset_t</a> <a class="code" href="ck-polyfill_8h_a83b48316f14a1fdfa737099067756edd.html#a83b48316f14a1fdfa737099067756edd">simple_hashset_create</a>(<span class="keywordtype">void</span>);</div>
|
|
<div class="line"><a name="l00051"></a><span class="lineno"> 51</span>  </div>
|
|
<div class="line"><a name="l00052"></a><span class="lineno"> 52</span>  <span class="comment">/* destroy hashset instance */</span></div>
|
|
<div class="line"><a name="l00053"></a><span class="lineno"> 53</span>  <span class="keywordtype">void</span> <a class="code" href="ck-polyfill_8h_aa5509327fe3eea5425e91af4d5b867a3.html#aa5509327fe3eea5425e91af4d5b867a3">simple_hashset_destroy</a>(<a class="code" href="structsimple__hashset__st.html">simple_hashset_t</a> set);</div>
|
|
<div class="line"><a name="l00054"></a><span class="lineno"> 54</span>  </div>
|
|
<div class="line"><a name="l00055"></a><span class="lineno"> 55</span>  <span class="comment">/* set hash function */</span></div>
|
|
<div class="line"><a name="l00056"></a><span class="lineno"> 56</span>  <span class="keywordtype">void</span> <a class="code" href="ck-polyfill_8h_a4cfe0d449cb75178ced5f81b860bd54b.html#a4cfe0d449cb75178ced5f81b860bd54b">simple_hashset_set_hash_function</a>(<a class="code" href="structsimple__hashset__st.html">simple_hashset_t</a> set, <a class="code" href="ck-polyfill_8h_ab1379ff7e5644b446bfc40da2df85889.html#ab1379ff7e5644b446bfc40da2df85889">hash_func_t</a> func);</div>
|
|
<div class="line"><a name="l00057"></a><span class="lineno"> 57</span>  </div>
|
|
<div class="line"><a name="l00058"></a><span class="lineno"> 58</span>  <span class="comment">/* add item into the hashset.</span></div>
|
|
<div class="line"><a name="l00059"></a><span class="lineno"> 59</span> <span class="comment"> *</span></div>
|
|
<div class="line"><a name="l00060"></a><span class="lineno"> 60</span> <span class="comment"> * @note 0 and 1 is special values, meaning nil and deleted items. the</span></div>
|
|
<div class="line"><a name="l00061"></a><span class="lineno"> 61</span> <span class="comment"> * function will return -1 indicating error.</span></div>
|
|
<div class="line"><a name="l00062"></a><span class="lineno"> 62</span> <span class="comment"> *</span></div>
|
|
<div class="line"><a name="l00063"></a><span class="lineno"> 63</span> <span class="comment"> * returns zero if the item already in the set and non-zero otherwise</span></div>
|
|
<div class="line"><a name="l00064"></a><span class="lineno"> 64</span> <span class="comment"> */</span></div>
|
|
<div class="line"><a name="l00065"></a><span class="lineno"> 65</span>  <span class="keywordtype">int</span> <a class="code" href="ck-polyfill_8h_a4832fb45f6f3a3599e58f4e3b17e74c1.html#a4832fb45f6f3a3599e58f4e3b17e74c1">simple_hashset_add</a>(<a class="code" href="structsimple__hashset__st.html">simple_hashset_t</a> set, <a class="code" href="structsymbol__type.html">symbol_type</a>* key);</div>
|
|
<div class="line"><a name="l00066"></a><span class="lineno"> 66</span>  </div>
|
|
<div class="line"><a name="l00067"></a><span class="lineno"> 67</span>  <span class="comment">/* check if existence of the item</span></div>
|
|
<div class="line"><a name="l00068"></a><span class="lineno"> 68</span> <span class="comment"> *</span></div>
|
|
<div class="line"><a name="l00069"></a><span class="lineno"> 69</span> <span class="comment"> * returns non-zero if the item exists and zero otherwise</span></div>
|
|
<div class="line"><a name="l00070"></a><span class="lineno"> 70</span> <span class="comment"> */</span></div>
|
|
<div class="line"><a name="l00071"></a><span class="lineno"> 71</span>  <span class="keywordtype">int</span> <a class="code" href="ck-polyfill_8h_aa41549465cd6f8d783af49d9d1202c3e.html#aa41549465cd6f8d783af49d9d1202c3e">simple_hashset_is_member</a>(<a class="code" href="structsimple__hashset__st.html">simple_hashset_t</a> set, <a class="code" href="structsymbol__type.html">symbol_type</a>* key);</div>
|
|
<div class="line"><a name="l00072"></a><span class="lineno"> 72</span>  </div>
|
|
<div class="line"><a name="l00073"></a><span class="lineno"> 73</span> <span class="keyword">static</span> <span class="keyword">inline</span> uint64_t MurmurHash64A(<span class="keyword">const</span> <span class="keywordtype">void</span> *key, <span class="keywordtype">int</span> len, uint64_t seed)</div>
|
|
<div class="line"><a name="l00074"></a><span class="lineno"> 74</span> { </div>
|
|
<div class="line"><a name="l00075"></a><span class="lineno"> 75</span>  <span class="keywordflow">return</span> 0;</div>
|
|
<div class="line"><a name="l00076"></a><span class="lineno"> 76</span> }</div>
|
|
<div class="line"><a name="l00077"></a><span class="lineno"> 77</span>  </div>
|
|
<div class="line"><a name="l00079"></a><span class="lineno"> 79</span> <span class="comment">// CK Hashset section</span></div>
|
|
<div class="line"><a name="l00080"></a><span class="lineno"> 80</span>  </div>
|
|
<div class="line"><a name="l00081"></a><span class="lineno"><a class="line" href="ck-polyfill_8h_a83ce0d2c2d40427b45c2b36e3b03ed68.html#a83ce0d2c2d40427b45c2b36e3b03ed68"> 81</a></span> <span class="preprocessor">#define CK_HS_MODE_OBJECT 0</span></div>
|
|
<div class="line"><a name="l00082"></a><span class="lineno"><a class="line" href="ck-polyfill_8h_a899a2274482b4bff1aebe92125deb8f4.html#a899a2274482b4bff1aebe92125deb8f4"> 82</a></span> <span class="preprocessor">#define CK_HS_MODE_SPMC 0</span></div>
|
|
<div class="line"><a name="l00083"></a><span class="lineno"> 83</span>  </div>
|
|
<div class="line"><a name="l00084"></a><span class="lineno"><a class="line" href="structck__hs.html"> 84</a></span> <span class="keyword">struct </span><a class="code" href="structck__hs.html">ck_hs</a> { </div>
|
|
<div class="line"><a name="l00085"></a><span class="lineno"><a class="line" href="structck__hs_a0b4c84a27ef2d2808c2a1ee7337f33e2.html#a0b4c84a27ef2d2808c2a1ee7337f33e2"> 85</a></span>  pthread_mutex_t <a class="code" href="structck__hs_a0b4c84a27ef2d2808c2a1ee7337f33e2.html#a0b4c84a27ef2d2808c2a1ee7337f33e2">lock</a>;</div>
|
|
<div class="line"><a name="l00086"></a><span class="lineno"><a class="line" href="structck__hs_a008846f72439024588f2ddaef9f37bb9.html#a008846f72439024588f2ddaef9f37bb9"> 86</a></span>  <a class="code" href="structsimple__hashset__st.html">simple_hashset_t</a> <a class="code" href="structck__hs_a008846f72439024588f2ddaef9f37bb9.html#a008846f72439024588f2ddaef9f37bb9">hs</a>;</div>
|
|
<div class="line"><a name="l00087"></a><span class="lineno"> 87</span> }; </div>
|
|
<div class="line"><a name="l00088"></a><span class="lineno"> 88</span>  </div>
|
|
<div class="line"><a name="l00089"></a><span class="lineno"><a class="line" href="ck-polyfill_8h_a305c00c891c6a0cfa2336614555c3a03.html#a305c00c891c6a0cfa2336614555c3a03"> 89</a></span> <span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="structck__hs.html">ck_hs</a> <a class="code" href="structck__hs.html">ck_hs_t</a>; </div>
|
|
<div class="line"><a name="l00090"></a><span class="lineno"> 90</span>  </div>
|
|
<div class="line"><a name="l00091"></a><span class="lineno"> 91</span> <span class="comment">/* </span></div>
|
|
<div class="line"><a name="l00092"></a><span class="lineno"> 92</span> <span class="comment"> * Hash callback function. </span></div>
|
|
<div class="line"><a name="l00093"></a><span class="lineno"> 93</span> <span class="comment"> */</span> </div>
|
|
<div class="line"><a name="l00094"></a><span class="lineno"><a class="line" href="ck-polyfill_8h_a9dec8f58f705b645da93b7f14e26e7cf.html#a9dec8f58f705b645da93b7f14e26e7cf"> 94</a></span> <span class="keyword">typedef</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> <a class="code" href="ck-polyfill_8h_a9dec8f58f705b645da93b7f14e26e7cf.html#a9dec8f58f705b645da93b7f14e26e7cf">ck_hs_hash_cb_t</a>(<span class="keyword">const</span> <span class="keywordtype">void</span> *, <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span>); </div>
|
|
<div class="line"><a name="l00095"></a><span class="lineno"> 95</span>  </div>
|
|
<div class="line"><a name="l00096"></a><span class="lineno"> 96</span> <span class="comment">/* </span></div>
|
|
<div class="line"><a name="l00097"></a><span class="lineno"> 97</span> <span class="comment"> * Returns pointer to object if objects are equivalent. </span></div>
|
|
<div class="line"><a name="l00098"></a><span class="lineno"> 98</span> <span class="comment"> */</span> </div>
|
|
<div class="line"><a name="l00099"></a><span class="lineno"><a class="line" href="ck-polyfill_8h_ad2c2dcd2921c3a6668db44624438bd14.html#ad2c2dcd2921c3a6668db44624438bd14"> 99</a></span> <span class="keyword">typedef</span> <span class="keywordtype">bool</span> <a class="code" href="ck-polyfill_8h_ad2c2dcd2921c3a6668db44624438bd14.html#ad2c2dcd2921c3a6668db44624438bd14">ck_hs_compare_cb_t</a>(<span class="keyword">const</span> <span class="keywordtype">void</span> *, <span class="keyword">const</span> <span class="keywordtype">void</span> *); </div>
|
|
<div class="line"><a name="l00100"></a><span class="lineno"> 100</span>  </div>
|
|
<div class="line"><a name="l00101"></a><span class="lineno"><a class="line" href="ck-polyfill_8h_a7c93b0665c8d0bc728fc43a931a04ab6.html#a7c93b0665c8d0bc728fc43a931a04ab6"> 101</a></span> <span class="preprocessor">#define CK_HS_HASH(hs, hs_hash, value) 0</span></div>
|
|
<div class="line"><a name="l00102"></a><span class="lineno"> 102</span>  </div>
|
|
<div class="line"><a name="l00103"></a><span class="lineno"> 103</span> <span class="keywordtype">bool</span> <a class="code" href="ck-polyfill_8h_a673811e3b2d3a93c8692c7330235c2ab.html#a673811e3b2d3a93c8692c7330235c2ab">ck_hs_init</a>(<a class="code" href="structck__hs.html">ck_hs_t</a> *, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>, <a class="code" href="ck-polyfill_8h_a9dec8f58f705b645da93b7f14e26e7cf.html#a9dec8f58f705b645da93b7f14e26e7cf">ck_hs_hash_cb_t</a> *, </div>
|
|
<div class="line"><a name="l00104"></a><span class="lineno"> 104</span>  <a class="code" href="ck-polyfill_8h_ad2c2dcd2921c3a6668db44624438bd14.html#ad2c2dcd2921c3a6668db44624438bd14">ck_hs_compare_cb_t</a> *, <span class="keyword">struct</span> <a class="code" href="structck__malloc.html">ck_malloc</a> *, <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span>, <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span>); </div>
|
|
<div class="line"><a name="l00105"></a><span class="lineno"> 105</span>  </div>
|
|
<div class="line"><a name="l00106"></a><span class="lineno"> 106</span> <span class="keywordtype">void</span> *<a class="code" href="ck-polyfill_8h_a26ea954415d851f4f3bbabfbb7986585.html#a26ea954415d851f4f3bbabfbb7986585">ck_hs_get</a>(<a class="code" href="structck__hs.html">ck_hs_t</a> *, <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span>, <span class="keyword">const</span> <span class="keywordtype">void</span> *); </div>
|
|
<div class="line"><a name="l00107"></a><span class="lineno"> 107</span> <span class="keywordtype">bool</span> <a class="code" href="ck-polyfill_8h_a2e2983144f65c418912eed2adcf2da58.html#a2e2983144f65c418912eed2adcf2da58">ck_hs_put</a>(<a class="code" href="structck__hs.html">ck_hs_t</a> *, <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span>, <span class="keyword">const</span> <span class="keywordtype">void</span> *); </div>
|
|
<div class="line"><a name="l00108"></a><span class="lineno"> 108</span>  </div>
|
|
<div class="line"><a name="l00109"></a><span class="lineno"> 109</span> <span class="comment">/*</span></div>
|
|
<div class="line"><a name="l00110"></a><span class="lineno"> 110</span> <span class="comment">struct ck_hs { </span></div>
|
|
<div class="line"><a name="l00111"></a><span class="lineno"> 111</span> <span class="comment"> struct ck_malloc *m; </span></div>
|
|
<div class="line"><a name="l00112"></a><span class="lineno"> 112</span> <span class="comment"> struct ck_hs_map *map; </span></div>
|
|
<div class="line"><a name="l00113"></a><span class="lineno"> 113</span> <span class="comment"> unsigned int mode; </span></div>
|
|
<div class="line"><a name="l00114"></a><span class="lineno"> 114</span> <span class="comment"> unsigned long seed; </span></div>
|
|
<div class="line"><a name="l00115"></a><span class="lineno"> 115</span> <span class="comment"> ck_hs_hash_cb_t *hf; </span></div>
|
|
<div class="line"><a name="l00116"></a><span class="lineno"> 116</span> <span class="comment"> ck_hs_compare_cb_t *compare; </span></div>
|
|
<div class="line"><a name="l00117"></a><span class="lineno"> 117</span> <span class="comment">}; </span></div>
|
|
<div class="line"><a name="l00118"></a><span class="lineno"> 118</span> <span class="comment">typedef struct ck_hs ck_hs_t; </span></div>
|
|
<div class="line"><a name="l00119"></a><span class="lineno"> 119</span> <span class="comment"></span> </div>
|
|
<div class="line"><a name="l00120"></a><span class="lineno"> 120</span> <span class="comment"></span> </div>
|
|
<div class="line"><a name="l00121"></a><span class="lineno"> 121</span> <span class="comment">*/</span></div>
|
|
<div class="line"><a name="l00122"></a><span class="lineno"> 122</span>  </div>
|
|
<div class="line"><a name="l00124"></a><span class="lineno"> 124</span> <span class="comment">// CK Array section</span></div>
|
|
<div class="line"><a name="l00125"></a><span class="lineno"><a class="line" href="structck__array.html"> 125</a></span> <span class="keyword">struct </span><a class="code" href="structck__array.html">ck_array</a> {</div>
|
|
<div class="line"><a name="l00126"></a><span class="lineno"><a class="line" href="structck__array_a3e2b9475dd96f4f20dc27f991a151072.html#a3e2b9475dd96f4f20dc27f991a151072"> 126</a></span>  pthread_mutex_t <a class="code" href="structck__array_a3e2b9475dd96f4f20dc27f991a151072.html#a3e2b9475dd96f4f20dc27f991a151072">lock</a>;</div>
|
|
<div class="line"><a name="l00127"></a><span class="lineno"><a class="line" href="structck__array_a022d832ba26c577169a1b3433345eab3.html#a022d832ba26c577169a1b3433345eab3"> 127</a></span>  <a class="code" href="structhashset__st.html">hashset_t</a> <a class="code" href="structck__array_a022d832ba26c577169a1b3433345eab3.html#a022d832ba26c577169a1b3433345eab3">hs</a>;</div>
|
|
<div class="line"><a name="l00128"></a><span class="lineno"> 128</span> };</div>
|
|
<div class="line"><a name="l00129"></a><span class="lineno"><a class="line" href="ck-polyfill_8h_a47a00e5eb380d974a4137832fcd7d3ec.html#a47a00e5eb380d974a4137832fcd7d3ec"> 129</a></span> <span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="structck__array.html">ck_array</a> <a class="code" href="structck__array.html">ck_array_t</a>;</div>
|
|
<div class="line"><a name="l00130"></a><span class="lineno"> 130</span>  </div>
|
|
<div class="line"><a name="l00131"></a><span class="lineno"><a class="line" href="structck__array__iterator.html"> 131</a></span> <span class="keyword">struct </span><a class="code" href="structck__array__iterator.html">ck_array_iterator</a> {</div>
|
|
<div class="line"><a name="l00132"></a><span class="lineno"><a class="line" href="structck__array__iterator_a0f5d5a9c8957cb46d76114b84b61754a.html#a0f5d5a9c8957cb46d76114b84b61754a"> 132</a></span>  <span class="keywordtype">int</span> <a class="code" href="structck__array__iterator_a0f5d5a9c8957cb46d76114b84b61754a.html#a0f5d5a9c8957cb46d76114b84b61754a">unused</a>;</div>
|
|
<div class="line"><a name="l00133"></a><span class="lineno"> 133</span> };</div>
|
|
<div class="line"><a name="l00134"></a><span class="lineno"><a class="line" href="ck-polyfill_8h_aea5604ed7f2b42b45ab3ba6eff013b6c.html#aea5604ed7f2b42b45ab3ba6eff013b6c"> 134</a></span> <span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="structck__array__iterator.html">ck_array_iterator</a> <a class="code" href="structck__array__iterator.html">ck_array_iterator_t</a>;</div>
|
|
<div class="line"><a name="l00135"></a><span class="lineno"> 135</span>  </div>
|
|
<div class="line"><a name="l00136"></a><span class="lineno"><a class="line" href="ck-polyfill_8h_addc29dc6be92892889bdfd1fbb0d8923.html#addc29dc6be92892889bdfd1fbb0d8923"> 136</a></span> <span class="preprocessor">#define CK_ARRAY_MODE_SPMC 0</span></div>
|
|
<div class="line"><a name="l00137"></a><span class="lineno"> 137</span>  </div>
|
|
<div class="line"><a name="l00138"></a><span class="lineno"> 138</span> <span class="comment">// DESCRIPTION</span></div>
|
|
<div class="line"><a name="l00139"></a><span class="lineno"> 139</span> <span class="comment">// The ck_array_init(3) function initializes the array pointed to by the</span></div>
|
|
<div class="line"><a name="l00140"></a><span class="lineno"> 140</span> <span class="comment">// argument array. The mode value must be CK_ARRAY_MODE_SPMC. The</span></div>
|
|
<div class="line"><a name="l00141"></a><span class="lineno"> 141</span> <span class="comment">// allocator argument must point to a ck_malloc data structure with valid</span></div>
|
|
<div class="line"><a name="l00142"></a><span class="lineno"> 142</span> <span class="comment">// non-NULL function pointers initialized for malloc, free and realloc. The</span></div>
|
|
<div class="line"><a name="l00143"></a><span class="lineno"> 143</span> <span class="comment">// initial_length specifies the initial length of the array. The value of</span></div>
|
|
<div class="line"><a name="l00144"></a><span class="lineno"> 144</span> <span class="comment">// initial_length must be greater than or equal to 2. An array allows for</span></div>
|
|
<div class="line"><a name="l00145"></a><span class="lineno"> 145</span> <span class="comment">// one concurrent put or remove operations in the presence of any number of</span></div>
|
|
<div class="line"><a name="l00146"></a><span class="lineno"> 146</span> <span class="comment">// concurrent CK_ARRAY_FOREACH operations.</span></div>
|
|
<div class="line"><a name="l00147"></a><span class="lineno"> 147</span> <span class="comment">// </span></div>
|
|
<div class="line"><a name="l00148"></a><span class="lineno"> 148</span> <span class="comment">// RETURN VALUES</span></div>
|
|
<div class="line"><a name="l00149"></a><span class="lineno"> 149</span> <span class="comment">// This function returns true if the array was successfully created. It</span></div>
|
|
<div class="line"><a name="l00150"></a><span class="lineno"> 150</span> <span class="comment">// returns false if the creation failed. Failure may occur due to internal</span></div>
|
|
<div class="line"><a name="l00151"></a><span class="lineno"> 151</span> <span class="comment">// memory allocation failures or invalid arguments.</span></div>
|
|
<div class="line"><a name="l00152"></a><span class="lineno"> 152</span> <span class="keywordtype">bool</span></div>
|
|
<div class="line"><a name="l00153"></a><span class="lineno"> 153</span> <a class="code" href="ck-polyfill_8h_a1de670701fe68ccdea5676cf3996ad31.html#a1de670701fe68ccdea5676cf3996ad31">ck_array_init</a>(<a class="code" href="structck__array.html">ck_array_t</a> *array, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> mode,</div>
|
|
<div class="line"><a name="l00154"></a><span class="lineno"> 154</span>  <span class="keyword">struct</span> <a class="code" href="structck__malloc.html">ck_malloc</a> *allocator, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> initial_length);</div>
|
|
<div class="line"><a name="l00155"></a><span class="lineno"> 155</span>  </div>
|
|
<div class="line"><a name="l00156"></a><span class="lineno"> 156</span> <span class="comment">// DESCRIPTION</span></div>
|
|
<div class="line"><a name="l00157"></a><span class="lineno"> 157</span> <span class="comment">// The ck_array_put_unique(3) function will attempt to insert the value of</span></div>
|
|
<div class="line"><a name="l00158"></a><span class="lineno"> 158</span> <span class="comment">// pointer into the array pointed to by array. This function may incur</span></div>
|
|
<div class="line"><a name="l00159"></a><span class="lineno"> 159</span> <span class="comment">// additional memory allocations if not enough memory has been allocated in</span></div>
|
|
<div class="line"><a name="l00160"></a><span class="lineno"> 160</span> <span class="comment">// the array for a new entry. The operation is also free to apply the opera-</span></div>
|
|
<div class="line"><a name="l00161"></a><span class="lineno"> 161</span> <span class="comment">// tion immediately if there is an opportunity for elimination with a pend-</span></div>
|
|
<div class="line"><a name="l00162"></a><span class="lineno"> 162</span> <span class="comment">// ing (uncommitted) remove operation. The function will not make any modi-</span></div>
|
|
<div class="line"><a name="l00163"></a><span class="lineno"> 163</span> <span class="comment">// fications if the pointer already exists in the array.</span></div>
|
|
<div class="line"><a name="l00164"></a><span class="lineno"> 164</span> <span class="comment">// </span></div>
|
|
<div class="line"><a name="l00165"></a><span class="lineno"> 165</span> <span class="comment">// RETURN VALUES</span></div>
|
|
<div class="line"><a name="l00166"></a><span class="lineno"> 166</span> <span class="comment">// This function returns 1 if the pointer already exists in the array. It</span></div>
|
|
<div class="line"><a name="l00167"></a><span class="lineno"> 167</span> <span class="comment">// returns 0 if the put operation succeeded. It returns -1 on error due to</span></div>
|
|
<div class="line"><a name="l00168"></a><span class="lineno"> 168</span> <span class="comment">// internal memory allocation failures.</span></div>
|
|
<div class="line"><a name="l00169"></a><span class="lineno"> 169</span> <span class="keywordtype">int</span></div>
|
|
<div class="line"><a name="l00170"></a><span class="lineno"> 170</span> <a class="code" href="ck-polyfill_8h_af5fe42149e5a96c9b5f8f3feaac41d09.html#af5fe42149e5a96c9b5f8f3feaac41d09">ck_array_put_unique</a>(<a class="code" href="structck__array.html">ck_array_t</a> *array, <span class="keywordtype">void</span> *pointer);</div>
|
|
<div class="line"><a name="l00171"></a><span class="lineno"> 171</span>  </div>
|
|
<div class="line"><a name="l00172"></a><span class="lineno"> 172</span> <span class="comment">// DESCRIPTION</span></div>
|
|
<div class="line"><a name="l00173"></a><span class="lineno"> 173</span> <span class="comment">// The ck_array_remove(3) function will attempt to remove the value of</span></div>
|
|
<div class="line"><a name="l00174"></a><span class="lineno"> 174</span> <span class="comment">// pointer into the array pointed to by array. The operation is also free to</span></div>
|
|
<div class="line"><a name="l00175"></a><span class="lineno"> 175</span> <span class="comment">// apply the operation immediately if there is an opportunity for elimina-</span></div>
|
|
<div class="line"><a name="l00176"></a><span class="lineno"> 176</span> <span class="comment">// tion with a pending (uncommitted) put operation. If no elimination was</span></div>
|
|
<div class="line"><a name="l00177"></a><span class="lineno"> 177</span> <span class="comment">// possible, the function may require to allocate more memory.</span></div>
|
|
<div class="line"><a name="l00178"></a><span class="lineno"> 178</span> <span class="comment">// </span></div>
|
|
<div class="line"><a name="l00179"></a><span class="lineno"> 179</span> <span class="comment">// RETURN VALUES</span></div>
|
|
<div class="line"><a name="l00180"></a><span class="lineno"> 180</span> <span class="comment">// This function returns true if the remove operation succeeded. It will</span></div>
|
|
<div class="line"><a name="l00181"></a><span class="lineno"> 181</span> <span class="comment">// return false otherwise due to internal allocation failures or because the</span></div>
|
|
<div class="line"><a name="l00182"></a><span class="lineno"> 182</span> <span class="comment">// value did not exist.</span></div>
|
|
<div class="line"><a name="l00183"></a><span class="lineno"> 183</span> <span class="keywordtype">bool</span></div>
|
|
<div class="line"><a name="l00184"></a><span class="lineno"> 184</span> <a class="code" href="ck-polyfill_8h_a09284a9328a6f2f56fe7154a66aca030.html#a09284a9328a6f2f56fe7154a66aca030">ck_array_remove</a>(<a class="code" href="structck__array.html">ck_array_t</a> *array, <span class="keywordtype">void</span> *pointer);</div>
|
|
<div class="line"><a name="l00185"></a><span class="lineno"> 185</span>  </div>
|
|
<div class="line"><a name="l00186"></a><span class="lineno"> 186</span>  </div>
|
|
<div class="line"><a name="l00187"></a><span class="lineno"> 187</span> <span class="comment">// DESCRIPTION</span></div>
|
|
<div class="line"><a name="l00188"></a><span class="lineno"> 188</span> <span class="comment">// The ck_array_commit(3) function will commit any pending put or remove</span></div>
|
|
<div class="line"><a name="l00189"></a><span class="lineno"> 189</span> <span class="comment">// operations associated with the array. The function may end up requesting</span></div>
|
|
<div class="line"><a name="l00190"></a><span class="lineno"> 190</span> <span class="comment">// the safe reclamation of memory actively being iterated upon by other</span></div>
|
|
<div class="line"><a name="l00191"></a><span class="lineno"> 191</span> <span class="comment">// threads.</span></div>
|
|
<div class="line"><a name="l00192"></a><span class="lineno"> 192</span> <span class="comment">// </span></div>
|
|
<div class="line"><a name="l00193"></a><span class="lineno"> 193</span> <span class="comment">// RETURN VALUES</span></div>
|
|
<div class="line"><a name="l00194"></a><span class="lineno"> 194</span> <span class="comment">// This function returns true if the commit operation succeeded. It will</span></div>
|
|
<div class="line"><a name="l00195"></a><span class="lineno"> 195</span> <span class="comment">// return false otherwise, and pending operations will not be applied.</span></div>
|
|
<div class="line"><a name="l00196"></a><span class="lineno"> 196</span> <span class="keywordtype">bool</span></div>
|
|
<div class="line"><a name="l00197"></a><span class="lineno"> 197</span> <a class="code" href="ck-polyfill_8h_a1eedcf449b92ae12819e428f0a037623.html#a1eedcf449b92ae12819e428f0a037623">ck_array_commit</a>(<a class="code" href="structck__array.html">ck_array_t</a> *array);</div>
|
|
<div class="line"><a name="l00198"></a><span class="lineno"> 198</span>  </div>
|
|
<div class="line"><a name="l00199"></a><span class="lineno"> 199</span>  </div>
|
|
<div class="line"><a name="l00200"></a><span class="lineno"> 200</span>  <span class="comment">// TODO:</span></div>
|
|
<div class="line"><a name="l00201"></a><span class="lineno"> 201</span>  </div>
|
|
<div class="line"><a name="l00202"></a><span class="lineno"> 202</span> <span class="comment">// Can we safely lock the array, make a copy, and interate over that????</span></div>
|
|
<div class="line"><a name="l00203"></a><span class="lineno"><a class="line" href="ck-polyfill_8h_ab4b218c555f960bc8edc4f51e18c8d70.html#ab4b218c555f960bc8edc4f51e18c8d70"> 203</a></span> <span class="preprocessor">#define CK_ARRAY_FOREACH(a, i, b) \</span></div>
|
|
<div class="line"><a name="l00204"></a><span class="lineno"> 204</span> <span class="preprocessor"> pthread_mutex_lock(&((a)->lock)); \</span></div>
|
|
<div class="line"><a name="l00205"></a><span class="lineno"> 205</span> <span class="preprocessor"> int tmpc = (a)->hs->nitems; \</span></div>
|
|
<div class="line"><a name="l00206"></a><span class="lineno"> 206</span> <span class="preprocessor"> void **tmp = alloca(sizeof(void *) * tmpc); \</span></div>
|
|
<div class="line"><a name="l00207"></a><span class="lineno"> 207</span> <span class="preprocessor"> hashset_to_array((a)->hs, tmp); \</span></div>
|
|
<div class="line"><a name="l00208"></a><span class="lineno"> 208</span> <span class="preprocessor"> pthread_mutex_unlock(&((a)->lock)); \</span></div>
|
|
<div class="line"><a name="l00209"></a><span class="lineno"> 209</span> <span class="preprocessor"> if (tmpc > 0) { (*b) = tmp[0]; } \</span></div>
|
|
<div class="line"><a name="l00210"></a><span class="lineno"> 210</span> <span class="preprocessor"> for (unsigned int _ck_i = 0; \</span></div>
|
|
<div class="line"><a name="l00211"></a><span class="lineno"> 211</span> <span class="preprocessor"> _ck_i < tmpc; \</span></div>
|
|
<div class="line"><a name="l00212"></a><span class="lineno"> 212</span> <span class="preprocessor"> _ck_i++, (*b) = tmp[_ck_i]) </span></div>
|
|
<div class="line"><a name="l00213"></a><span class="lineno"> 213</span>  </div>
|
|
<div class="line"><a name="l00215"></a><span class="lineno"> 215</span> <span class="comment">// CK PR section</span></div>
|
|
<div class="line"><a name="l00216"></a><span class="lineno"> 216</span> <span class="keywordtype">bool</span></div>
|
|
<div class="line"><a name="l00217"></a><span class="lineno"> 217</span> <a class="code" href="ck-polyfill_8h_aea8b497a4b1073c064c005a54dda873f.html#aea8b497a4b1073c064c005a54dda873f">ck_pr_cas_ptr</a>(<span class="keywordtype">void</span> *target, <span class="keywordtype">void</span> *old_value, <span class="keywordtype">void</span> *new_value);</div>
|
|
<div class="line"><a name="l00218"></a><span class="lineno"> 218</span>  </div>
|
|
<div class="line"><a name="l00219"></a><span class="lineno"> 219</span> <span class="keywordtype">bool</span></div>
|
|
<div class="line"><a name="l00220"></a><span class="lineno"> 220</span> <a class="code" href="ck-polyfill_8h_a671b8af596454e3ecde5efa6c4a5594b.html#a671b8af596454e3ecde5efa6c4a5594b">ck_pr_cas_int</a>(<span class="keywordtype">int</span> *target, <span class="keywordtype">int</span> old_value, <span class="keywordtype">int</span> new_value);</div>
|
|
<div class="line"><a name="l00221"></a><span class="lineno"> 221</span>  </div>
|
|
<div class="line"><a name="l00222"></a><span class="lineno"> 222</span> <span class="keywordtype">bool</span></div>
|
|
<div class="line"><a name="l00223"></a><span class="lineno"> 223</span> <a class="code" href="ck-polyfill_8h_a3a1366376e0e716c87d495382ac849b2.html#a3a1366376e0e716c87d495382ac849b2">ck_pr_cas_8</a>(uint8_t *target, uint8_t old_value, uint8_t new_value);</div>
|
|
<div class="line"><a name="l00224"></a><span class="lineno"> 224</span>  </div>
|
|
<div class="line"><a name="l00225"></a><span class="lineno"> 225</span>  </div>
|
|
<div class="line"><a name="l00226"></a><span class="lineno"> 226</span> <span class="keywordtype">void</span></div>
|
|
<div class="line"><a name="l00227"></a><span class="lineno"> 227</span> <a class="code" href="ck-polyfill_8h_ad023e16214331cef937b1b186b720059.html#ad023e16214331cef937b1b186b720059">ck_pr_add_ptr</a>(<span class="keywordtype">void</span> *target, uintptr_t delta);</div>
|
|
<div class="line"><a name="l00228"></a><span class="lineno"> 228</span>  </div>
|
|
<div class="line"><a name="l00229"></a><span class="lineno"> 229</span> <span class="keywordtype">void</span></div>
|
|
<div class="line"><a name="l00230"></a><span class="lineno"> 230</span> <a class="code" href="ck-polyfill_8h_a3433612a20a46ec64e1d4a20669c5286.html#a3433612a20a46ec64e1d4a20669c5286">ck_pr_add_int</a>(<span class="keywordtype">int</span> *target, <span class="keywordtype">int</span> delta);</div>
|
|
<div class="line"><a name="l00231"></a><span class="lineno"> 231</span>  </div>
|
|
<div class="line"><a name="l00232"></a><span class="lineno"> 232</span> <span class="keywordtype">void</span></div>
|
|
<div class="line"><a name="l00233"></a><span class="lineno"> 233</span> <a class="code" href="ck-polyfill_8h_a1362b105a42d4dda74d1e484e692a7e0.html#a1362b105a42d4dda74d1e484e692a7e0">ck_pr_add_8</a>(uint8_t *target, uint8_t delta);</div>
|
|
<div class="line"><a name="l00234"></a><span class="lineno"> 234</span>  </div>
|
|
<div class="line"><a name="l00235"></a><span class="lineno"> 235</span> <span class="keywordtype">void</span> *</div>
|
|
<div class="line"><a name="l00236"></a><span class="lineno"> 236</span> <a class="code" href="ck-polyfill_8h_aae25a4ae8f55a21072bb41b9d17a8669.html#aae25a4ae8f55a21072bb41b9d17a8669">ck_pr_load_ptr</a>(<span class="keyword">const</span> <span class="keywordtype">void</span> *target);</div>
|
|
<div class="line"><a name="l00237"></a><span class="lineno"> 237</span>  </div>
|
|
<div class="line"><a name="l00238"></a><span class="lineno"> 238</span> <span class="keywordtype">int</span></div>
|
|
<div class="line"><a name="l00239"></a><span class="lineno"> 239</span> <a class="code" href="ck-polyfill_8h_a28e59bb30b5095d36bfa1a0b48c45b9a.html#a28e59bb30b5095d36bfa1a0b48c45b9a">ck_pr_load_int</a>(<span class="keyword">const</span> <span class="keywordtype">int</span> *target);</div>
|
|
<div class="line"><a name="l00240"></a><span class="lineno"> 240</span>  </div>
|
|
<div class="line"><a name="l00241"></a><span class="lineno"> 241</span> uint8_t</div>
|
|
<div class="line"><a name="l00242"></a><span class="lineno"> 242</span> <a class="code" href="ck-polyfill_8h_aff941011c123fa1044fc49a416153a3a.html#aff941011c123fa1044fc49a416153a3a">ck_pr_load_8</a>(<span class="keyword">const</span> uint8_t *target);</div>
|
|
<div class="line"><a name="l00243"></a><span class="lineno"> 243</span>  </div>
|
|
<div class="line"><a name="l00244"></a><span class="lineno"> 244</span> <span class="keywordtype">void</span> <a class="code" href="ck-polyfill_8h_ad63e02ca7a2489c49366070adcd8000e.html#ad63e02ca7a2489c49366070adcd8000e">ck_pr_store_ptr</a>(<span class="keywordtype">void</span> *target, <span class="keywordtype">void</span> *value);</div>
|
|
<div class="line"><a name="l00245"></a><span class="lineno"> 245</span> <span class="preprocessor">#endif </span><span class="comment">/* CYCLONE_CK_POLYFILL_H */</span><span class="preprocessor"></span></div>
|
|
</div><!-- fragment --></div><!-- contents -->
|
|
<div class="ttc" id="ack-polyfill_8h_a671b8af596454e3ecde5efa6c4a5594b_html_a671b8af596454e3ecde5efa6c4a5594b"><div class="ttname"><a href="ck-polyfill_8h_a671b8af596454e3ecde5efa6c4a5594b.html#a671b8af596454e3ecde5efa6c4a5594b">ck_pr_cas_int</a></div><div class="ttdeci">bool ck_pr_cas_int(int *target, int old_value, int new_value)</div><div class="ttdef"><b>Definition:</b> ck-polyfill.c:148</div></div>
|
|
<div class="ttc" id="ack-polyfill_8h_a26ea954415d851f4f3bbabfbb7986585_html_a26ea954415d851f4f3bbabfbb7986585"><div class="ttname"><a href="ck-polyfill_8h_a26ea954415d851f4f3bbabfbb7986585.html#a26ea954415d851f4f3bbabfbb7986585">ck_hs_get</a></div><div class="ttdeci">void * ck_hs_get(ck_hs_t *, unsigned long, const void *)</div><div class="ttdef"><b>Definition:</b> ck-polyfill.c:41</div></div>
|
|
<div class="ttc" id="ack-polyfill_8h_a4832fb45f6f3a3599e58f4e3b17e74c1_html_a4832fb45f6f3a3599e58f4e3b17e74c1"><div class="ttname"><a href="ck-polyfill_8h_a4832fb45f6f3a3599e58f4e3b17e74c1.html#a4832fb45f6f3a3599e58f4e3b17e74c1">simple_hashset_add</a></div><div class="ttdeci">int simple_hashset_add(simple_hashset_t set, symbol_type *key)</div><div class="ttdef"><b>Definition:</b> ck-polyfill.c:352</div></div>
|
|
<div class="ttc" id="astructsimple__hashset__st_html"><div class="ttname"><a href="structsimple__hashset__st.html">simple_hashset_st</a></div><div class="ttdef"><b>Definition:</b> ck-polyfill.h:27</div></div>
|
|
<div class="ttc" id="atypes_8h_html"><div class="ttname"><a href="types_8h.html">types.h</a></div></div>
|
|
<div class="ttc" id="ack-polyfill_8h_a2e2983144f65c418912eed2adcf2da58_html_a2e2983144f65c418912eed2adcf2da58"><div class="ttname"><a href="ck-polyfill_8h_a2e2983144f65c418912eed2adcf2da58.html#a2e2983144f65c418912eed2adcf2da58">ck_hs_put</a></div><div class="ttdeci">bool ck_hs_put(ck_hs_t *, unsigned long, const void *)</div><div class="ttdef"><b>Definition:</b> ck-polyfill.c:58</div></div>
|
|
<div class="ttc" id="astructck__array_a022d832ba26c577169a1b3433345eab3_html_a022d832ba26c577169a1b3433345eab3"><div class="ttname"><a href="structck__array_a022d832ba26c577169a1b3433345eab3.html#a022d832ba26c577169a1b3433345eab3">ck_array::hs</a></div><div class="ttdeci">hashset_t hs</div><div class="ttdef"><b>Definition:</b> ck-polyfill.h:127</div></div>
|
|
<div class="ttc" id="ack-polyfill_8h_af5fe42149e5a96c9b5f8f3feaac41d09_html_af5fe42149e5a96c9b5f8f3feaac41d09"><div class="ttname"><a href="ck-polyfill_8h_af5fe42149e5a96c9b5f8f3feaac41d09.html#af5fe42149e5a96c9b5f8f3feaac41d09">ck_array_put_unique</a></div><div class="ttdeci">int ck_array_put_unique(ck_array_t *array, void *pointer)</div><div class="ttdef"><b>Definition:</b> ck-polyfill.c:102</div></div>
|
|
<div class="ttc" id="astructsimple__hashset__st_a95c6c1925238de9e2401bc39e0568b6a_html_a95c6c1925238de9e2401bc39e0568b6a"><div class="ttname"><a href="structsimple__hashset__st_a95c6c1925238de9e2401bc39e0568b6a.html#a95c6c1925238de9e2401bc39e0568b6a">simple_hashset_st::nbits</a></div><div class="ttdeci">size_t nbits</div><div class="ttdef"><b>Definition:</b> ck-polyfill.h:28</div></div>
|
|
<div class="ttc" id="ack-polyfill_8h_aa41549465cd6f8d783af49d9d1202c3e_html_aa41549465cd6f8d783af49d9d1202c3e"><div class="ttname"><a href="ck-polyfill_8h_aa41549465cd6f8d783af49d9d1202c3e.html#aa41549465cd6f8d783af49d9d1202c3e">simple_hashset_is_member</a></div><div class="ttdeci">int simple_hashset_is_member(simple_hashset_t set, symbol_type *key)</div><div class="ttdef"><b>Definition:</b> ck-polyfill.c:361</div></div>
|
|
<div class="ttc" id="ack-polyfill_8h_a4e2dbefced04c76a62acd40d771929ac_html_a4e2dbefced04c76a62acd40d771929ac"><div class="ttname"><a href="ck-polyfill_8h_a4e2dbefced04c76a62acd40d771929ac.html#a4e2dbefced04c76a62acd40d771929ac">ck_polyfill_init</a></div><div class="ttdeci">void ck_polyfill_init()</div><div class="ttdef"><b>Definition:</b> ck-polyfill.c:20</div></div>
|
|
<div class="ttc" id="ack-polyfill_8h_ad023e16214331cef937b1b186b720059_html_ad023e16214331cef937b1b186b720059"><div class="ttname"><a href="ck-polyfill_8h_ad023e16214331cef937b1b186b720059.html#ad023e16214331cef937b1b186b720059">ck_pr_add_ptr</a></div><div class="ttdeci">void ck_pr_add_ptr(void *target, uintptr_t delta)</div><div class="ttdef"><b>Definition:</b> ck-polyfill.c:186</div></div>
|
|
<div class="ttc" id="astructck__hs_html"><div class="ttname"><a href="structck__hs.html">ck_hs</a></div><div class="ttdef"><b>Definition:</b> ck-polyfill.h:84</div></div>
|
|
<div class="ttc" id="astructsimple__hashset__st_a67754643269d2ace4593861120bccfc2_html_a67754643269d2ace4593861120bccfc2"><div class="ttname"><a href="structsimple__hashset__st_a67754643269d2ace4593861120bccfc2.html#a67754643269d2ace4593861120bccfc2">simple_hashset_st::capacity</a></div><div class="ttdeci">size_t capacity</div><div class="ttdef"><b>Definition:</b> ck-polyfill.h:31</div></div>
|
|
<div class="ttc" id="ack-polyfill_8h_a673811e3b2d3a93c8692c7330235c2ab_html_a673811e3b2d3a93c8692c7330235c2ab"><div class="ttname"><a href="ck-polyfill_8h_a673811e3b2d3a93c8692c7330235c2ab.html#a673811e3b2d3a93c8692c7330235c2ab">ck_hs_init</a></div><div class="ttdeci">bool ck_hs_init(ck_hs_t *, unsigned int, ck_hs_hash_cb_t *, ck_hs_compare_cb_t *, struct ck_malloc *, unsigned long, unsigned long)</div><div class="ttdef"><b>Definition:</b> ck-polyfill.c:30</div></div>
|
|
<div class="ttc" id="ack-polyfill_8h_aae25a4ae8f55a21072bb41b9d17a8669_html_aae25a4ae8f55a21072bb41b9d17a8669"><div class="ttname"><a href="ck-polyfill_8h_aae25a4ae8f55a21072bb41b9d17a8669.html#aae25a4ae8f55a21072bb41b9d17a8669">ck_pr_load_ptr</a></div><div class="ttdeci">void * ck_pr_load_ptr(const void *target)</div><div class="ttdef"><b>Definition:</b> ck-polyfill.c:214</div></div>
|
|
<div class="ttc" id="ack-polyfill_8h_afa95fff55b9e0f3475652733ab09f5e5_html_afa95fff55b9e0f3475652733ab09f5e5"><div class="ttname"><a href="ck-polyfill_8h_afa95fff55b9e0f3475652733ab09f5e5.html#afa95fff55b9e0f3475652733ab09f5e5">simple_hashset_t</a></div><div class="ttdeci">struct simple_hashset_st * simple_hashset_t</div><div class="ttdef"><b>Definition:</b> ck-polyfill.h:39</div></div>
|
|
<div class="ttc" id="ack-polyfill_8h_ab1379ff7e5644b446bfc40da2df85889_html_ab1379ff7e5644b446bfc40da2df85889"><div class="ttname"><a href="ck-polyfill_8h_ab1379ff7e5644b446bfc40da2df85889.html#ab1379ff7e5644b446bfc40da2df85889">hash_func_t</a></div><div class="ttdeci">size_t(* hash_func_t)(const char *, size_t)</div><div class="ttdef"><b>Definition:</b> ck-polyfill.h:20</div></div>
|
|
<div class="ttc" id="astructhashset__st_html"><div class="ttname"><a href="structhashset__st.html">hashset_st</a></div><div class="ttdef"><b>Definition:</b> hashset.h:27</div></div>
|
|
<div class="ttc" id="ack-polyfill_8h_a4cfe0d449cb75178ced5f81b860bd54b_html_a4cfe0d449cb75178ced5f81b860bd54b"><div class="ttname"><a href="ck-polyfill_8h_a4cfe0d449cb75178ced5f81b860bd54b.html#a4cfe0d449cb75178ced5f81b860bd54b">simple_hashset_set_hash_function</a></div><div class="ttdeci">void simple_hashset_set_hash_function(simple_hashset_t set, hash_func_t func)</div><div class="ttdef"><b>Definition:</b> ck-polyfill.c:294</div></div>
|
|
<div class="ttc" id="ahashset_8h_html"><div class="ttname"><a href="hashset_8h.html">hashset.h</a></div></div>
|
|
<div class="ttc" id="astructsimple__hashset__st_a1c8d9061eb160d7c2a08c2d5430c02c6_html_a1c8d9061eb160d7c2a08c2d5430c02c6"><div class="ttname"><a href="structsimple__hashset__st_a1c8d9061eb160d7c2a08c2d5430c02c6.html#a1c8d9061eb160d7c2a08c2d5430c02c6">simple_hashset_st::mask</a></div><div class="ttdeci">size_t mask</div><div class="ttdef"><b>Definition:</b> ck-polyfill.h:29</div></div>
|
|
<div class="ttc" id="astructsimple__hashset__st_a565bce5190e3667be2883959b174f791_html_a565bce5190e3667be2883959b174f791"><div class="ttname"><a href="structsimple__hashset__st_a565bce5190e3667be2883959b174f791.html#a565bce5190e3667be2883959b174f791">simple_hashset_st::n_deleted_items</a></div><div class="ttdeci">size_t n_deleted_items</div><div class="ttdef"><b>Definition:</b> ck-polyfill.h:34</div></div>
|
|
<div class="ttc" id="astructck__hs_a008846f72439024588f2ddaef9f37bb9_html_a008846f72439024588f2ddaef9f37bb9"><div class="ttname"><a href="structck__hs_a008846f72439024588f2ddaef9f37bb9.html#a008846f72439024588f2ddaef9f37bb9">ck_hs::hs</a></div><div class="ttdeci">simple_hashset_t hs</div><div class="ttdef"><b>Definition:</b> ck-polyfill.h:86</div></div>
|
|
<div class="ttc" id="ack-polyfill_8h_ad63e02ca7a2489c49366070adcd8000e_html_ad63e02ca7a2489c49366070adcd8000e"><div class="ttname"><a href="ck-polyfill_8h_ad63e02ca7a2489c49366070adcd8000e.html#ad63e02ca7a2489c49366070adcd8000e">ck_pr_store_ptr</a></div><div class="ttdeci">void ck_pr_store_ptr(void *target, void *value)</div><div class="ttdef"><b>Definition:</b> ck-polyfill.c:243</div></div>
|
|
<div class="ttc" id="astructsimple__hashset__st_a31f29522ca7e22c00287192b2376ead0_html_a31f29522ca7e22c00287192b2376ead0"><div class="ttname"><a href="structsimple__hashset__st_a31f29522ca7e22c00287192b2376ead0.html#a31f29522ca7e22c00287192b2376ead0">simple_hashset_st::nitems</a></div><div class="ttdeci">size_t nitems</div><div class="ttdef"><b>Definition:</b> ck-polyfill.h:33</div></div>
|
|
<div class="ttc" id="ack-polyfill_8h_a1de670701fe68ccdea5676cf3996ad31_html_a1de670701fe68ccdea5676cf3996ad31"><div class="ttname"><a href="ck-polyfill_8h_a1de670701fe68ccdea5676cf3996ad31.html#a1de670701fe68ccdea5676cf3996ad31">ck_array_init</a></div><div class="ttdeci">bool ck_array_init(ck_array_t *array, unsigned int mode, struct ck_malloc *allocator, unsigned int initial_length)</div><div class="ttdef"><b>Definition:</b> ck-polyfill.c:77</div></div>
|
|
<div class="ttc" id="astructsimple__hashset__st_a9bbdcb15e5bdb4fd5ebd0a0d9b077729_html_a9bbdcb15e5bdb4fd5ebd0a0d9b077729"><div class="ttname"><a href="structsimple__hashset__st_a9bbdcb15e5bdb4fd5ebd0a0d9b077729.html#a9bbdcb15e5bdb4fd5ebd0a0d9b077729">simple_hashset_st::items</a></div><div class="ttdeci">struct simple_hashset_item_st * items</div><div class="ttdef"><b>Definition:</b> ck-polyfill.h:32</div></div>
|
|
<div class="ttc" id="astructck__array__iterator_html"><div class="ttname"><a href="structck__array__iterator.html">ck_array_iterator</a></div><div class="ttdef"><b>Definition:</b> ck-polyfill.h:131</div></div>
|
|
<div class="ttc" id="astructsymbol__type_html"><div class="ttname"><a href="structsymbol__type.html">symbol_type</a></div><div class="ttdoc">Symbols are similar to strings, but only one instance of each unique symbol is created,...</div><div class="ttdef"><b>Definition:</b> types.h:788</div></div>
|
|
<div class="ttc" id="ack-polyfill_8h_a49a5ac795e54252e74e5bafce04e330c_html_a49a5ac795e54252e74e5bafce04e330c"><div class="ttname"><a href="ck-polyfill_8h_a49a5ac795e54252e74e5bafce04e330c.html#a49a5ac795e54252e74e5bafce04e330c">hashmap_t</a></div><div class="ttdeci">struct hashmap_st * hashmap_t</div><div class="ttdef"><b>Definition:</b> ck-polyfill.h:43</div></div>
|
|
<div class="ttc" id="astructck__array_html"><div class="ttname"><a href="structck__array.html">ck_array</a></div><div class="ttdef"><b>Definition:</b> ck-polyfill.h:125</div></div>
|
|
<div class="ttc" id="ack-polyfill_8h_a1eedcf449b92ae12819e428f0a037623_html_a1eedcf449b92ae12819e428f0a037623"><div class="ttname"><a href="ck-polyfill_8h_a1eedcf449b92ae12819e428f0a037623.html#a1eedcf449b92ae12819e428f0a037623">ck_array_commit</a></div><div class="ttdeci">bool ck_array_commit(ck_array_t *array)</div><div class="ttdef"><b>Definition:</b> ck-polyfill.c:138</div></div>
|
|
<div class="ttc" id="ack-polyfill_8h_aea8b497a4b1073c064c005a54dda873f_html_aea8b497a4b1073c064c005a54dda873f"><div class="ttname"><a href="ck-polyfill_8h_aea8b497a4b1073c064c005a54dda873f.html#aea8b497a4b1073c064c005a54dda873f">ck_pr_cas_ptr</a></div><div class="ttdeci">bool ck_pr_cas_ptr(void *target, void *old_value, void *new_value)</div><div class="ttdef"><b>Definition:</b> ck-polyfill.c:160</div></div>
|
|
<div class="ttc" id="astructsimple__hashset__st_ad32ea2ff5436e2cfd73a54789a5c8f8f_html_ad32ea2ff5436e2cfd73a54789a5c8f8f"><div class="ttname"><a href="structsimple__hashset__st_ad32ea2ff5436e2cfd73a54789a5c8f8f.html#ad32ea2ff5436e2cfd73a54789a5c8f8f">simple_hashset_st::hash_func</a></div><div class="ttdeci">hash_func_t hash_func</div><div class="ttdef"><b>Definition:</b> ck-polyfill.h:36</div></div>
|
|
<div class="ttc" id="ack-polyfill_8h_a1362b105a42d4dda74d1e484e692a7e0_html_a1362b105a42d4dda74d1e484e692a7e0"><div class="ttname"><a href="ck-polyfill_8h_a1362b105a42d4dda74d1e484e692a7e0.html#a1362b105a42d4dda74d1e484e692a7e0">ck_pr_add_8</a></div><div class="ttdeci">void ck_pr_add_8(uint8_t *target, uint8_t delta)</div><div class="ttdef"><b>Definition:</b> ck-polyfill.c:206</div></div>
|
|
<div class="ttc" id="ack-polyfill_8h_a3433612a20a46ec64e1d4a20669c5286_html_a3433612a20a46ec64e1d4a20669c5286"><div class="ttname"><a href="ck-polyfill_8h_a3433612a20a46ec64e1d4a20669c5286.html#a3433612a20a46ec64e1d4a20669c5286">ck_pr_add_int</a></div><div class="ttdeci">void ck_pr_add_int(int *target, int delta)</div><div class="ttdef"><b>Definition:</b> ck-polyfill.c:198</div></div>
|
|
<div class="ttc" id="ack-polyfill_8h_ad2c2dcd2921c3a6668db44624438bd14_html_ad2c2dcd2921c3a6668db44624438bd14"><div class="ttname"><a href="ck-polyfill_8h_ad2c2dcd2921c3a6668db44624438bd14.html#ad2c2dcd2921c3a6668db44624438bd14">ck_hs_compare_cb_t</a></div><div class="ttdeci">bool ck_hs_compare_cb_t(const void *, const void *)</div><div class="ttdef"><b>Definition:</b> ck-polyfill.h:99</div></div>
|
|
<div class="ttc" id="astructck__array__iterator_a0f5d5a9c8957cb46d76114b84b61754a_html_a0f5d5a9c8957cb46d76114b84b61754a"><div class="ttname"><a href="structck__array__iterator_a0f5d5a9c8957cb46d76114b84b61754a.html#a0f5d5a9c8957cb46d76114b84b61754a">ck_array_iterator::unused</a></div><div class="ttdeci">int unused</div><div class="ttdef"><b>Definition:</b> ck-polyfill.h:132</div></div>
|
|
<div class="ttc" id="ack-polyfill_8h_a3a1366376e0e716c87d495382ac849b2_html_a3a1366376e0e716c87d495382ac849b2"><div class="ttname"><a href="ck-polyfill_8h_a3a1366376e0e716c87d495382ac849b2.html#a3a1366376e0e716c87d495382ac849b2">ck_pr_cas_8</a></div><div class="ttdeci">bool ck_pr_cas_8(uint8_t *target, uint8_t old_value, uint8_t new_value)</div><div class="ttdef"><b>Definition:</b> ck-polyfill.c:173</div></div>
|
|
<div class="ttc" id="astructck__array_a3e2b9475dd96f4f20dc27f991a151072_html_a3e2b9475dd96f4f20dc27f991a151072"><div class="ttname"><a href="structck__array_a3e2b9475dd96f4f20dc27f991a151072.html#a3e2b9475dd96f4f20dc27f991a151072">ck_array::lock</a></div><div class="ttdeci">pthread_mutex_t lock</div><div class="ttdef"><b>Definition:</b> ck-polyfill.h:126</div></div>
|
|
<div class="ttc" id="astructck__hs_a0b4c84a27ef2d2808c2a1ee7337f33e2_html_a0b4c84a27ef2d2808c2a1ee7337f33e2"><div class="ttname"><a href="structck__hs_a0b4c84a27ef2d2808c2a1ee7337f33e2.html#a0b4c84a27ef2d2808c2a1ee7337f33e2">ck_hs::lock</a></div><div class="ttdeci">pthread_mutex_t lock</div><div class="ttdef"><b>Definition:</b> ck-polyfill.h:85</div></div>
|
|
<div class="ttc" id="astructsimple__hashset__item__st_a487f61d859f4248c6a6db3518f6d19ca_html_a487f61d859f4248c6a6db3518f6d19ca"><div class="ttname"><a href="structsimple__hashset__item__st_a487f61d859f4248c6a6db3518f6d19ca.html#a487f61d859f4248c6a6db3518f6d19ca">simple_hashset_item_st::item</a></div><div class="ttdeci">symbol_type * item</div><div class="ttdef"><b>Definition:</b> ck-polyfill.h:24</div></div>
|
|
<div class="ttc" id="ack-polyfill_8h_a09284a9328a6f2f56fe7154a66aca030_html_a09284a9328a6f2f56fe7154a66aca030"><div class="ttname"><a href="ck-polyfill_8h_a09284a9328a6f2f56fe7154a66aca030.html#a09284a9328a6f2f56fe7154a66aca030">ck_array_remove</a></div><div class="ttdeci">bool ck_array_remove(ck_array_t *array, void *pointer)</div><div class="ttdef"><b>Definition:</b> ck-polyfill.c:122</div></div>
|
|
<div class="ttc" id="ack-polyfill_8h_a28e59bb30b5095d36bfa1a0b48c45b9a_html_a28e59bb30b5095d36bfa1a0b48c45b9a"><div class="ttname"><a href="ck-polyfill_8h_a28e59bb30b5095d36bfa1a0b48c45b9a.html#a28e59bb30b5095d36bfa1a0b48c45b9a">ck_pr_load_int</a></div><div class="ttdeci">int ck_pr_load_int(const int *target)</div><div class="ttdef"><b>Definition:</b> ck-polyfill.c:224</div></div>
|
|
<div class="ttc" id="ack-polyfill_8h_aa5509327fe3eea5425e91af4d5b867a3_html_aa5509327fe3eea5425e91af4d5b867a3"><div class="ttname"><a href="ck-polyfill_8h_aa5509327fe3eea5425e91af4d5b867a3.html#aa5509327fe3eea5425e91af4d5b867a3">simple_hashset_destroy</a></div><div class="ttdeci">void simple_hashset_destroy(simple_hashset_t set)</div><div class="ttdef"><b>Definition:</b> ck-polyfill.c:286</div></div>
|
|
<div class="ttc" id="astructsimple__hashset__item__st_html"><div class="ttname"><a href="structsimple__hashset__item__st.html">simple_hashset_item_st</a></div><div class="ttdef"><b>Definition:</b> ck-polyfill.h:22</div></div>
|
|
<div class="ttc" id="astructck__malloc_html"><div class="ttname"><a href="structck__malloc.html">ck_malloc</a></div><div class="ttdef"><b>Definition:</b> ck-polyfill.h:11</div></div>
|
|
<div class="ttc" id="ack-polyfill_8h_a83b48316f14a1fdfa737099067756edd_html_a83b48316f14a1fdfa737099067756edd"><div class="ttname"><a href="ck-polyfill_8h_a83b48316f14a1fdfa737099067756edd.html#a83b48316f14a1fdfa737099067756edd">simple_hashset_create</a></div><div class="ttdeci">simple_hashset_t simple_hashset_create(void)</div><div class="ttdef"><b>Definition:</b> ck-polyfill.c:264</div></div>
|
|
<div class="ttc" id="ack-polyfill_8h_a9dec8f58f705b645da93b7f14e26e7cf_html_a9dec8f58f705b645da93b7f14e26e7cf"><div class="ttname"><a href="ck-polyfill_8h_a9dec8f58f705b645da93b7f14e26e7cf.html#a9dec8f58f705b645da93b7f14e26e7cf">ck_hs_hash_cb_t</a></div><div class="ttdeci">unsigned long ck_hs_hash_cb_t(const void *, unsigned long)</div><div class="ttdef"><b>Definition:</b> ck-polyfill.h:94</div></div>
|
|
<div class="ttc" id="ack-polyfill_8h_aff941011c123fa1044fc49a416153a3a_html_aff941011c123fa1044fc49a416153a3a"><div class="ttname"><a href="ck-polyfill_8h_aff941011c123fa1044fc49a416153a3a.html#aff941011c123fa1044fc49a416153a3a">ck_pr_load_8</a></div><div class="ttdeci">uint8_t ck_pr_load_8(const uint8_t *target)</div><div class="ttdef"><b>Definition:</b> ck-polyfill.c:234</div></div>
|
|
<div class="ttc" id="astructsimple__hashset__item__st_a1e4a49589f2a34612cb1b6bc1db897b6_html_a1e4a49589f2a34612cb1b6bc1db897b6"><div class="ttname"><a href="structsimple__hashset__item__st_a1e4a49589f2a34612cb1b6bc1db897b6.html#a1e4a49589f2a34612cb1b6bc1db897b6">simple_hashset_item_st::hash</a></div><div class="ttdeci">size_t hash</div><div class="ttdef"><b>Definition:</b> ck-polyfill.h:23</div></div>
|
|
<div class="ttc" id="astructck__malloc_a9c943772fe47555723afe067abcc6a29_html_a9c943772fe47555723afe067abcc6a29"><div class="ttname"><a href="structck__malloc_a9c943772fe47555723afe067abcc6a29.html#a9c943772fe47555723afe067abcc6a29">ck_malloc::free</a></div><div class="ttdeci">void(* free)(void *, size_t, bool)</div><div class="ttdef"><b>Definition:</b> ck-polyfill.h:14</div></div>
|
|
<!-- start footer part -->
|
|
<hr class="footer"/><address class="footer"><small>
|
|
Generated by  <a href="http://www.doxygen.org/index.html">
|
|
<img class="footer" src="doxygen.png" alt="doxygen"/>
|
|
</a> 1.8.17
|
|
</small></address>
|
|
</body>
|
|
</html>
|