<ahref="lfg_8h.html">Go to the documentation of this file.</a><divclass="fragment"><divclass="line"><aid="l00001"name="l00001"></a><spanclass="lineno"> 1</span><spanclass="comment">/*</span></div>
<divclass="line"><aid="l00002"name="l00002"></a><spanclass="lineno"> 2</span><spanclass="comment"> * This file is part of the Aaru Data Preservation Suite.</span></div>
<divclass="line"><aid="l00005"name="l00005"></a><spanclass="lineno"> 5</span><spanclass="comment"> * This library is free software; you can redistribute it and/or modify</span></div>
<divclass="line"><aid="l00006"name="l00006"></a><spanclass="lineno"> 6</span><spanclass="comment"> * it under the terms of the GNU Lesser General Public License as</span></div>
<divclass="line"><aid="l00007"name="l00007"></a><spanclass="lineno"> 7</span><spanclass="comment"> * published by the Free Software Foundation; version 2.1 of the License.</span></div>
<divclass="line"><aid="l00009"name="l00009"></a><spanclass="lineno"> 9</span><spanclass="comment"> * This library is distributed in the hope that it will be useful, but</span></div>
<divclass="line"><aid="l00010"name="l00010"></a><spanclass="lineno"> 10</span><spanclass="comment"> * WITHOUT ANY WARRANTY; without even the implied warranty of</span></div>
<divclass="line"><aid="l00011"name="l00011"></a><spanclass="lineno"> 11</span><spanclass="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU</span></div>
<divclass="line"><aid="l00012"name="l00012"></a><spanclass="lineno"> 12</span><spanclass="comment"> * Lesser General Public License for more details.</span></div>
<divclass="line"><aid="l00014"name="l00014"></a><spanclass="lineno"> 14</span><spanclass="comment"> * You should have received a copy of the GNU Lesser General Public</span></div>
<divclass="line"><aid="l00015"name="l00015"></a><spanclass="lineno"> 15</span><spanclass="comment"> * License along with this library; if not, see</span></div>
<divclass="line"><aid="l00018"name="l00018"></a><spanclass="lineno"> 18</span><spanclass="comment"> * Lagged Fibonacci Generator for Nintendo GameCube/Wii junk fill.</span></div>
<divclass="line"><aid="l00019"name="l00019"></a><spanclass="lineno"> 19</span><spanclass="comment"> * Based on Dolphin emulator's LaggedFibonacciGenerator (CC0 licensed).</span></div>
<divclass="ttc"id="alfg_8c_html_a25e6df5ee051a324d943185f193d3418"><divclass="ttname"><ahref="lfg_8c.html#a25e6df5ee051a324d943185f193d3418">ngc_lfg_get_bytes</a></div><divclass="ttdeci">void ngc_lfg_get_bytes(struct ngc_lfg_ctx *ctx, uint8_t *out, size_t count)</div><divclass="ttdoc">Generate count bytes of junk data into out.</div><divclass="ttdef"><b>Definition</b><ahref="lfg_8c_source.html#l00082">lfg.c:82</a></div></div>
<divclass="ttc"id="alfg_8c_html_abc583da3bb66cab3eafc3496bc46e193"><divclass="ttname"><ahref="lfg_8c.html#abc583da3bb66cab3eafc3496bc46e193">ngc_lfg_set_seed</a></div><divclass="ttdeci">void ngc_lfg_set_seed(struct ngc_lfg_ctx *ctx, const uint32_t seed[17])</div><divclass="ttdoc">Initialize the LFG from a 17-word big-endian seed.</div><divclass="ttdef"><b>Definition</b><ahref="lfg_8c_source.html#l00073">lfg.c:73</a></div></div>
<divclass="ttc"id="alfg_8c_html_aef1434f019902caf30f1d4fe577267ba"><divclass="ttname"><ahref="lfg_8c.html#aef1434f019902caf30f1d4fe577267ba">ngc_lfg_get_seed</a></div><divclass="ttdeci">size_t ngc_lfg_get_seed(const uint8_t *data, size_t size, size_t data_offset, uint32_t seed_out[17])</div><divclass="ttdoc">Try to extract the LFG seed from a chunk of data.</div><divclass="ttdef"><b>Definition</b><ahref="lfg_8c_source.html#l00121">lfg.c:121</a></div></div>
<divclass="ttc"id="alfg_8h_html_a16edb4e9c0a519cb423979b38d8f132a"><divclass="ttname"><ahref="lfg_8h.html#a16edb4e9c0a519cb423979b38d8f132a">NGC_LFG_K</a></div><divclass="ttdeci">#define NGC_LFG_K</div><divclass="ttdoc">LFG buffer size (number of uint32 words in state).</div><divclass="ttdef"><b>Definition</b><ahref="#l00034">lfg.h:34</a></div></div>
<divclass="ttc"id="alfg_8h_html_a2c4db3d8d295f706dcacc8a4d039beed"><divclass="ttname"><ahref="lfg_8h.html#a2c4db3d8d295f706dcacc8a4d039beed">NGC_LFG_SEED_SIZE</a></div><divclass="ttdeci">#define NGC_LFG_SEED_SIZE</div><divclass="ttdoc">Number of uint32 words needed to seed the LFG.</div><divclass="ttdef"><b>Definition</b><ahref="#l00036">lfg.h:36</a></div></div>
<divclass="ttc"id="astructngc__lfg__ctx_html"><divclass="ttname"><ahref="structngc__lfg__ctx.html">ngc_lfg_ctx</a></div><divclass="ttdoc">LFG context holding the 521-word circular buffer and byte position.</div><divclass="ttdef"><b>Definition</b><ahref="#l00041">lfg.h:42</a></div></div>
<liclass="footer">Generated by <ahref="https://www.doxygen.org/index.html"><imgclass="footer"src="doxygen.svg"width="104"height="31"alt="doxygen"/></a> 1.18.0 </li>