Sophie

Sophie

distrib > Mageia > 5 > x86_64 > media > core-release > by-pkgid > b56c9eed3fa0f00740b6f09a2460a97f > files > 334

lib64sphinxbase-devel-0.8-7.mga5.x86_64.rpm

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://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.8"/>
<title>SphinxBase: include/sphinxbase/logmath.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="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</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 style="padding-left: 0.5em;">
   <div id="projectname">SphinxBase
   &#160;<span id="projectnumber">0.6</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.8 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>Globals</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('logmath_8h_source.html','');});
</script>
<div id="doc-content">
<div class="header">
  <div class="headertitle">
<div class="title">logmath.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="logmath_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>&#160;<span class="comment">/* -*- c-basic-offset: 4; indent-tabs-mode: nil -*- */</span></div>
<div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment">/* ====================================================================</span></div>
<div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment"> * Copyright (c) 2007 Carnegie Mellon University.  All rights</span></div>
<div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment"> * reserved.</span></div>
<div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment"> * Redistribution and use in source and binary forms, with or without</span></div>
<div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment"> * modification, are permitted provided that the following conditions</span></div>
<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment"> * are met:</span></div>
<div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="comment"> * 1. Redistributions of source code must retain the above copyright</span></div>
<div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="comment"> *    notice, this list of conditions and the following disclaimer. </span></div>
<div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="comment"> * 2. Redistributions in binary form must reproduce the above copyright</span></div>
<div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="comment"> *    notice, this list of conditions and the following disclaimer in</span></div>
<div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="comment"> *    the documentation and/or other materials provided with the</span></div>
<div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="comment"> *    distribution.</span></div>
<div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="comment"> * This work was supported in part by funding from the Defense Advanced </span></div>
<div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="comment"> * Research Projects Agency and the National Science Foundation of the </span></div>
<div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="comment"> * United States of America, and the CMU Sphinx Speech Consortium.</span></div>
<div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="comment"> * THIS SOFTWARE IS PROVIDED BY CARNEGIE MELLON UNIVERSITY ``AS IS&#39;&#39; AND </span></div>
<div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;<span class="comment"> * ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, </span></div>
<div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;<span class="comment"> * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR</span></div>
<div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;<span class="comment"> * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL CARNEGIE MELLON UNIVERSITY</span></div>
<div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;<span class="comment"> * NOR ITS EMPLOYEES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,</span></div>
<div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;<span class="comment"> * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT </span></div>
<div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;<span class="comment"> * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, </span></div>
<div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;<span class="comment"> * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY </span></div>
<div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;<span class="comment"> * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT </span></div>
<div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;<span class="comment"> * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE </span></div>
<div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;<span class="comment"> * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.</span></div>
<div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;<span class="comment"> * ====================================================================</span></div>
<div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;<span class="comment"> */</span></div>
<div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;<span class="preprocessor">#ifndef __LOGMATH_H__</span></div>
<div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;<span class="preprocessor">#define __LOGMATH_H__</span></div>
<div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;</div>
<div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;<span class="preprocessor">#include &lt;sphinxbase/sphinxbase_export.h&gt;</span></div>
<div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;<span class="preprocessor">#include &lt;<a class="code" href="prim__type_8h.html">sphinxbase/prim_type.h</a>&gt;</span></div>
<div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;<span class="preprocessor">#include &lt;<a class="code" href="cmd__ln_8h.html">sphinxbase/cmd_ln.h</a>&gt;</span></div>
<div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;</div>
<div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;</div>
<div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;<span class="preprocessor">#ifdef __cplusplus</span></div>
<div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;<span class="keyword">extern</span> <span class="stringliteral">&quot;C&quot;</span> {</div>
<div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;<span class="preprocessor">#if 0</span></div>
<div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;<span class="comment">/* Fool Emacs. */</span></div>
<div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;}</div>
<div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;</div>
<div class="line"><a name="l00093"></a><span class="lineno"><a class="line" href="logmath_8h.html#a8c04c94e2c6364f6cf3b649eb4ce5bfd">   93</a></span>&#160;<span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="structlogadd__s.html">logadd_s</a> <a class="code" href="structlogadd__s.html">logadd_t</a>;</div>
<div class="line"><a name="l00094"></a><span class="lineno"><a class="line" href="structlogadd__s.html">   94</a></span>&#160;<span class="keyword">struct </span><a class="code" href="structlogadd__s.html">logadd_s</a> {</div>
<div class="line"><a name="l00096"></a><span class="lineno"><a class="line" href="structlogadd__s.html#a27793577d513d85cd73c2daffc140695">   96</a></span>&#160;    <span class="keywordtype">void</span> *<a class="code" href="structlogadd__s.html#a27793577d513d85cd73c2daffc140695">table</a>;</div>
<div class="line"><a name="l00098"></a><span class="lineno"><a class="line" href="structlogadd__s.html#a484c53a05b46d863d0456af679cee5d8">   98</a></span>&#160;    uint32 <a class="code" href="structlogadd__s.html#a484c53a05b46d863d0456af679cee5d8">table_size</a>;</div>
<div class="line"><a name="l00100"></a><span class="lineno"><a class="line" href="structlogadd__s.html#a8e35a353d751d957270baf5192007c3e">  100</a></span>&#160;    uint8 <a class="code" href="structlogadd__s.html#a8e35a353d751d957270baf5192007c3e">width</a>;</div>
<div class="line"><a name="l00102"></a><span class="lineno"><a class="line" href="structlogadd__s.html#a4000a49e71ed2c09da4f34cb5ccaed4b">  102</a></span>&#160;    int8 <a class="code" href="structlogadd__s.html#a4000a49e71ed2c09da4f34cb5ccaed4b">shift</a>;</div>
<div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160;};</div>
<div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;</div>
<div class="line"><a name="l00108"></a><span class="lineno"><a class="line" href="logmath_8h.html#ae613aa7db1dd40ff56a80a7dadb22cc8">  108</a></span>&#160;<span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="structlogmath__s.html">logmath_s</a> <a class="code" href="structlogmath__s.html">logmath_t</a>;</div>
<div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160;</div>
<div class="line"><a name="l00113"></a><span class="lineno"><a class="line" href="logmath_8h.html#ae5c5ce106e9f8f1e763d419de53317a8">  113</a></span>&#160;<span class="preprocessor">#define LOGMATH_TABLE(lm) ((logadd_t *)lm)</span></div>
<div class="line"><a name="l00114"></a><span class="lineno">  114</span>&#160;</div>
<div class="line"><a name="l00122"></a><span class="lineno">  122</span>&#160;SPHINXBASE_EXPORT</div>
<div class="line"><a name="l00123"></a><span class="lineno">  123</span>&#160;<a class="code" href="structlogmath__s.html">logmath_t</a> *<a class="code" href="logmath_8h.html#a5835860c5f6a703c80c0214f816f0b11">logmath_init</a>(float64 base, <span class="keywordtype">int</span> shift, <span class="keywordtype">int</span> use_table);</div>
<div class="line"><a name="l00124"></a><span class="lineno">  124</span>&#160;</div>
<div class="line"><a name="l00128"></a><span class="lineno">  128</span>&#160;SPHINXBASE_EXPORT</div>
<div class="line"><a name="l00129"></a><span class="lineno">  129</span>&#160;<a class="code" href="structlogmath__s.html">logmath_t</a> *<a class="code" href="logmath_8h.html#afbed298ba0bc4736415d78880fe5c7c2">logmath_read</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *filename);</div>
<div class="line"><a name="l00130"></a><span class="lineno">  130</span>&#160;</div>
<div class="line"><a name="l00134"></a><span class="lineno">  134</span>&#160;SPHINXBASE_EXPORT</div>
<div class="line"><a name="l00135"></a><span class="lineno">  135</span>&#160;int32 <a class="code" href="logmath_8h.html#a787070f5e689878348ef219245fc7c44">logmath_write</a>(<a class="code" href="structlogmath__s.html">logmath_t</a> *lmath, <span class="keyword">const</span> <span class="keywordtype">char</span> *filename);</div>
<div class="line"><a name="l00136"></a><span class="lineno">  136</span>&#160;</div>
<div class="line"><a name="l00140"></a><span class="lineno">  140</span>&#160;SPHINXBASE_EXPORT</div>
<div class="line"><a name="l00141"></a><span class="lineno">  141</span>&#160;int32 <a class="code" href="logmath_8h.html#a3280500e77bf27aa7cda23268b8eb8b3">logmath_get_table_shape</a>(<a class="code" href="structlogmath__s.html">logmath_t</a> *lmath, uint32 *out_size,</div>
<div class="line"><a name="l00142"></a><span class="lineno">  142</span>&#160;                              uint32 *out_width, uint32 *out_shift);</div>
<div class="line"><a name="l00143"></a><span class="lineno">  143</span>&#160;</div>
<div class="line"><a name="l00147"></a><span class="lineno">  147</span>&#160;SPHINXBASE_EXPORT</div>
<div class="line"><a name="l00148"></a><span class="lineno">  148</span>&#160;float64 <a class="code" href="logmath_8h.html#a6114206ec0321d7015c42fc7b81cb83e">logmath_get_base</a>(<a class="code" href="structlogmath__s.html">logmath_t</a> *lmath);</div>
<div class="line"><a name="l00149"></a><span class="lineno">  149</span>&#160;</div>
<div class="line"><a name="l00153"></a><span class="lineno">  153</span>&#160;SPHINXBASE_EXPORT</div>
<div class="line"><a name="l00154"></a><span class="lineno">  154</span>&#160;<span class="keywordtype">int</span> <a class="code" href="logmath_8h.html#a1c160c28a9e7d25923f391773b1028c0">logmath_get_zero</a>(<a class="code" href="structlogmath__s.html">logmath_t</a> *lmath);</div>
<div class="line"><a name="l00155"></a><span class="lineno">  155</span>&#160;</div>
<div class="line"><a name="l00159"></a><span class="lineno">  159</span>&#160;SPHINXBASE_EXPORT</div>
<div class="line"><a name="l00160"></a><span class="lineno">  160</span>&#160;<span class="keywordtype">int</span> <a class="code" href="logmath_8h.html#a0cd690d2a414aebb5e126b8cabbfabde">logmath_get_width</a>(<a class="code" href="structlogmath__s.html">logmath_t</a> *lmath);</div>
<div class="line"><a name="l00161"></a><span class="lineno">  161</span>&#160;</div>
<div class="line"><a name="l00165"></a><span class="lineno">  165</span>&#160;SPHINXBASE_EXPORT</div>
<div class="line"><a name="l00166"></a><span class="lineno">  166</span>&#160;<span class="keywordtype">int</span> <a class="code" href="logmath_8h.html#aed009aca9736612bebdda57444ec63a6">logmath_get_shift</a>(<a class="code" href="structlogmath__s.html">logmath_t</a> *lmath);</div>
<div class="line"><a name="l00167"></a><span class="lineno">  167</span>&#160;</div>
<div class="line"><a name="l00173"></a><span class="lineno">  173</span>&#160;SPHINXBASE_EXPORT</div>
<div class="line"><a name="l00174"></a><span class="lineno">  174</span>&#160;<a class="code" href="structlogmath__s.html">logmath_t</a> *<a class="code" href="logmath_8h.html#a1c1b2ba3b137a39e9e835a8f3e27d381">logmath_retain</a>(<a class="code" href="structlogmath__s.html">logmath_t</a> *lmath);</div>
<div class="line"><a name="l00175"></a><span class="lineno">  175</span>&#160;</div>
<div class="line"><a name="l00181"></a><span class="lineno">  181</span>&#160;SPHINXBASE_EXPORT</div>
<div class="line"><a name="l00182"></a><span class="lineno">  182</span>&#160;<span class="keywordtype">int</span> <a class="code" href="logmath_8h.html#a97865ef8bc1e8e2525a2329e0627ecfb">logmath_free</a>(<a class="code" href="structlogmath__s.html">logmath_t</a> *lmath);</div>
<div class="line"><a name="l00183"></a><span class="lineno">  183</span>&#160;</div>
<div class="line"><a name="l00187"></a><span class="lineno">  187</span>&#160;SPHINXBASE_EXPORT</div>
<div class="line"><a name="l00188"></a><span class="lineno">  188</span>&#160;<span class="keywordtype">int</span> <a class="code" href="logmath_8h.html#a61bf79c70a38f00ca060b69b0efd7489">logmath_add_exact</a>(<a class="code" href="structlogmath__s.html">logmath_t</a> *lmath, <span class="keywordtype">int</span> logb_p, <span class="keywordtype">int</span> logb_q);</div>
<div class="line"><a name="l00189"></a><span class="lineno">  189</span>&#160;</div>
<div class="line"><a name="l00193"></a><span class="lineno">  193</span>&#160;SPHINXBASE_EXPORT</div>
<div class="line"><a name="l00194"></a><span class="lineno">  194</span>&#160;<span class="keywordtype">int</span> <a class="code" href="logmath_8h.html#a5eb70928578b0115c9c7ac2765396a06">logmath_add</a>(<a class="code" href="structlogmath__s.html">logmath_t</a> *lmath, <span class="keywordtype">int</span> logb_p, <span class="keywordtype">int</span> logb_q);</div>
<div class="line"><a name="l00195"></a><span class="lineno">  195</span>&#160;</div>
<div class="line"><a name="l00199"></a><span class="lineno">  199</span>&#160;SPHINXBASE_EXPORT</div>
<div class="line"><a name="l00200"></a><span class="lineno">  200</span>&#160;<span class="keywordtype">int</span> <a class="code" href="logmath_8h.html#aebb4711268322fa7aec31e5798fe7e90">logmath_log</a>(<a class="code" href="structlogmath__s.html">logmath_t</a> *lmath, float64 p);</div>
<div class="line"><a name="l00201"></a><span class="lineno">  201</span>&#160;</div>
<div class="line"><a name="l00205"></a><span class="lineno">  205</span>&#160;SPHINXBASE_EXPORT</div>
<div class="line"><a name="l00206"></a><span class="lineno">  206</span>&#160;float64 <a class="code" href="logmath_8h.html#ae8b0a168e29e448c0d6de66dc46e099e">logmath_exp</a>(<a class="code" href="structlogmath__s.html">logmath_t</a> *lmath, <span class="keywordtype">int</span> logb_p);</div>
<div class="line"><a name="l00207"></a><span class="lineno">  207</span>&#160;</div>
<div class="line"><a name="l00211"></a><span class="lineno">  211</span>&#160;SPHINXBASE_EXPORT</div>
<div class="line"><a name="l00212"></a><span class="lineno">  212</span>&#160;<span class="keywordtype">int</span> <a class="code" href="logmath_8h.html#a52eff2c778ad758888b03ac5efcdccea">logmath_ln_to_log</a>(<a class="code" href="structlogmath__s.html">logmath_t</a> *lmath, float64 log_p);</div>
<div class="line"><a name="l00213"></a><span class="lineno">  213</span>&#160;</div>
<div class="line"><a name="l00217"></a><span class="lineno">  217</span>&#160;SPHINXBASE_EXPORT</div>
<div class="line"><a name="l00218"></a><span class="lineno">  218</span>&#160;float64 <a class="code" href="logmath_8h.html#a8035e176636eae8b4e02fe488f25457a">logmath_log_to_ln</a>(<a class="code" href="structlogmath__s.html">logmath_t</a> *lmath, <span class="keywordtype">int</span> logb_p);</div>
<div class="line"><a name="l00219"></a><span class="lineno">  219</span>&#160;</div>
<div class="line"><a name="l00223"></a><span class="lineno">  223</span>&#160;SPHINXBASE_EXPORT</div>
<div class="line"><a name="l00224"></a><span class="lineno">  224</span>&#160;<span class="keywordtype">int</span> <a class="code" href="logmath_8h.html#aacb4dddeed63a61fb927915f7e3a642e">logmath_log10_to_log</a>(<a class="code" href="structlogmath__s.html">logmath_t</a> *lmath, float64 log_p);</div>
<div class="line"><a name="l00225"></a><span class="lineno">  225</span>&#160;</div>
<div class="line"><a name="l00229"></a><span class="lineno">  229</span>&#160;SPHINXBASE_EXPORT</div>
<div class="line"><a name="l00230"></a><span class="lineno">  230</span>&#160;float64 <a class="code" href="logmath_8h.html#a7c17cb624003975e84fbd141ca6e2e06">logmath_log_to_log10</a>(<a class="code" href="structlogmath__s.html">logmath_t</a> *lmath, <span class="keywordtype">int</span> logb_p);</div>
<div class="line"><a name="l00231"></a><span class="lineno">  231</span>&#160;</div>
<div class="line"><a name="l00232"></a><span class="lineno">  232</span>&#160;<span class="preprocessor">#ifdef __cplusplus</span></div>
<div class="line"><a name="l00233"></a><span class="lineno">  233</span>&#160;}</div>
<div class="line"><a name="l00234"></a><span class="lineno">  234</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00235"></a><span class="lineno">  235</span>&#160;</div>
<div class="line"><a name="l00236"></a><span class="lineno">  236</span>&#160;</div>
<div class="line"><a name="l00237"></a><span class="lineno">  237</span>&#160;<span class="preprocessor">#endif </span><span class="comment">/*  __LOGMATH_H__ */</span><span class="preprocessor"></span></div>
<div class="ttc" id="cmd__ln_8h_html"><div class="ttname"><a href="cmd__ln_8h.html">cmd_ln.h</a></div><div class="ttdoc">Command-line and other configurationparsing and handling. </div></div>
<div class="ttc" id="logmath_8h_html_a3280500e77bf27aa7cda23268b8eb8b3"><div class="ttname"><a href="logmath_8h.html#a3280500e77bf27aa7cda23268b8eb8b3">logmath_get_table_shape</a></div><div class="ttdeci">SPHINXBASE_EXPORT int32 logmath_get_table_shape(logmath_t *lmath, uint32 *out_size, uint32 *out_width, uint32 *out_shift)</div><div class="ttdoc">Get the log table size and dimensions. </div><div class="ttdef"><b>Definition:</b> <a href="logmath_8c_source.html#l00357">logmath.c:357</a></div></div>
<div class="ttc" id="structlogmath__s_html"><div class="ttname"><a href="structlogmath__s.html">logmath_s</a></div><div class="ttdef"><b>Definition:</b> <a href="logmath_8c_source.html#l00049">logmath.c:49</a></div></div>
<div class="ttc" id="logmath_8h_html_aebb4711268322fa7aec31e5798fe7e90"><div class="ttname"><a href="logmath_8h.html#aebb4711268322fa7aec31e5798fe7e90">logmath_log</a></div><div class="ttdeci">SPHINXBASE_EXPORT int logmath_log(logmath_t *lmath, float64 p)</div><div class="ttdoc">Convert linear floating point number to integer log in base B. </div><div class="ttdef"><b>Definition:</b> <a href="logmath_8c_source.html#l00447">logmath.c:447</a></div></div>
<div class="ttc" id="logmath_8h_html_a97865ef8bc1e8e2525a2329e0627ecfb"><div class="ttname"><a href="logmath_8h.html#a97865ef8bc1e8e2525a2329e0627ecfb">logmath_free</a></div><div class="ttdeci">SPHINXBASE_EXPORT int logmath_free(logmath_t *lmath)</div><div class="ttdoc">Free a log table. </div><div class="ttdef"><b>Definition:</b> <a href="logmath_8c_source.html#l00342">logmath.c:342</a></div></div>
<div class="ttc" id="prim__type_8h_html"><div class="ttname"><a href="prim__type_8h.html">prim_type.h</a></div><div class="ttdoc">Basic type definitions used in Sphinx. </div></div>
<div class="ttc" id="logmath_8h_html_a5835860c5f6a703c80c0214f816f0b11"><div class="ttname"><a href="logmath_8h.html#a5835860c5f6a703c80c0214f816f0b11">logmath_init</a></div><div class="ttdeci">SPHINXBASE_EXPORT logmath_t * logmath_init(float64 base, int shift, int use_table)</div><div class="ttdoc">Initialize a log math computation table. </div><div class="ttdef"><b>Definition:</b> <a href="logmath_8c_source.html#l00062">logmath.c:62</a></div></div>
<div class="ttc" id="logmath_8h_html_a61bf79c70a38f00ca060b69b0efd7489"><div class="ttname"><a href="logmath_8h.html#a61bf79c70a38f00ca060b69b0efd7489">logmath_add_exact</a></div><div class="ttdeci">SPHINXBASE_EXPORT int logmath_add_exact(logmath_t *lmath, int logb_p, int logb_q)</div><div class="ttdoc">Add two values in log space exactly and slowly (without using add table). </div><div class="ttdef"><b>Definition:</b> <a href="logmath_8c_source.html#l00439">logmath.c:439</a></div></div>
<div class="ttc" id="logmath_8h_html_a8035e176636eae8b4e02fe488f25457a"><div class="ttname"><a href="logmath_8h.html#a8035e176636eae8b4e02fe488f25457a">logmath_log_to_ln</a></div><div class="ttdeci">SPHINXBASE_EXPORT float64 logmath_log_to_ln(logmath_t *lmath, int logb_p)</div><div class="ttdoc">Convert integer log in base B to natural log (in floating point). </div><div class="ttdef"><b>Definition:</b> <a href="logmath_8c_source.html#l00468">logmath.c:468</a></div></div>
<div class="ttc" id="structlogadd__s_html_a484c53a05b46d863d0456af679cee5d8"><div class="ttname"><a href="structlogadd__s.html#a484c53a05b46d863d0456af679cee5d8">logadd_s::table_size</a></div><div class="ttdeci">uint32 table_size</div><div class="ttdoc">Number of elements in (table). </div><div class="ttdef"><b>Definition:</b> <a href="logmath_8h_source.html#l00098">logmath.h:98</a></div></div>
<div class="ttc" id="logmath_8h_html_aed009aca9736612bebdda57444ec63a6"><div class="ttname"><a href="logmath_8h.html#aed009aca9736612bebdda57444ec63a6">logmath_get_shift</a></div><div class="ttdeci">SPHINXBASE_EXPORT int logmath_get_shift(logmath_t *lmath)</div><div class="ttdoc">Get the shift of the values in a log table. </div><div class="ttdef"><b>Definition:</b> <a href="logmath_8c_source.html#l00386">logmath.c:386</a></div></div>
<div class="ttc" id="logmath_8h_html_a6114206ec0321d7015c42fc7b81cb83e"><div class="ttname"><a href="logmath_8h.html#a6114206ec0321d7015c42fc7b81cb83e">logmath_get_base</a></div><div class="ttdeci">SPHINXBASE_EXPORT float64 logmath_get_base(logmath_t *lmath)</div><div class="ttdoc">Get the log base. </div><div class="ttdef"><b>Definition:</b> <a href="logmath_8c_source.html#l00368">logmath.c:368</a></div></div>
<div class="ttc" id="logmath_8h_html_a1c1b2ba3b137a39e9e835a8f3e27d381"><div class="ttname"><a href="logmath_8h.html#a1c1b2ba3b137a39e9e835a8f3e27d381">logmath_retain</a></div><div class="ttdeci">SPHINXBASE_EXPORT logmath_t * logmath_retain(logmath_t *lmath)</div><div class="ttdoc">Retain ownership of a log table. </div><div class="ttdef"><b>Definition:</b> <a href="logmath_8c_source.html#l00335">logmath.c:335</a></div></div>
<div class="ttc" id="structlogadd__s_html_a27793577d513d85cd73c2daffc140695"><div class="ttname"><a href="structlogadd__s.html#a27793577d513d85cd73c2daffc140695">logadd_s::table</a></div><div class="ttdeci">void * table</div><div class="ttdoc">Table, in unsigned integers of (width) bytes. </div><div class="ttdef"><b>Definition:</b> <a href="logmath_8h_source.html#l00096">logmath.h:96</a></div></div>
<div class="ttc" id="logmath_8h_html_a1c160c28a9e7d25923f391773b1028c0"><div class="ttname"><a href="logmath_8h.html#a1c160c28a9e7d25923f391773b1028c0">logmath_get_zero</a></div><div class="ttdeci">SPHINXBASE_EXPORT int logmath_get_zero(logmath_t *lmath)</div><div class="ttdoc">Get the smallest possible value represented in this base. </div><div class="ttdef"><b>Definition:</b> <a href="logmath_8c_source.html#l00374">logmath.c:374</a></div></div>
<div class="ttc" id="structlogadd__s_html_a4000a49e71ed2c09da4f34cb5ccaed4b"><div class="ttname"><a href="structlogadd__s.html#a4000a49e71ed2c09da4f34cb5ccaed4b">logadd_s::shift</a></div><div class="ttdeci">int8 shift</div><div class="ttdoc">Right shift applied to elements in (table). </div><div class="ttdef"><b>Definition:</b> <a href="logmath_8h_source.html#l00102">logmath.h:102</a></div></div>
<div class="ttc" id="logmath_8h_html_afbed298ba0bc4736415d78880fe5c7c2"><div class="ttname"><a href="logmath_8h.html#afbed298ba0bc4736415d78880fe5c7c2">logmath_read</a></div><div class="ttdeci">SPHINXBASE_EXPORT logmath_t * logmath_read(const char *filename)</div><div class="ttdoc">Memory-map (or read) a log table from a file. </div><div class="ttdef"><b>Definition:</b> <a href="logmath_8c_source.html#l00164">logmath.c:164</a></div></div>
<div class="ttc" id="logmath_8h_html_a0cd690d2a414aebb5e126b8cabbfabde"><div class="ttname"><a href="logmath_8h.html#a0cd690d2a414aebb5e126b8cabbfabde">logmath_get_width</a></div><div class="ttdeci">SPHINXBASE_EXPORT int logmath_get_width(logmath_t *lmath)</div><div class="ttdoc">Get the width of the values in a log table. </div><div class="ttdef"><b>Definition:</b> <a href="logmath_8c_source.html#l00380">logmath.c:380</a></div></div>
<div class="ttc" id="structlogadd__s_html"><div class="ttname"><a href="structlogadd__s.html">logadd_s</a></div><div class="ttdef"><b>Definition:</b> <a href="logmath_8h_source.html#l00094">logmath.h:94</a></div></div>
<div class="ttc" id="logmath_8h_html_a7c17cb624003975e84fbd141ca6e2e06"><div class="ttname"><a href="logmath_8h.html#a7c17cb624003975e84fbd141ca6e2e06">logmath_log_to_log10</a></div><div class="ttdeci">SPHINXBASE_EXPORT float64 logmath_log_to_log10(logmath_t *lmath, int logb_p)</div><div class="ttdoc">Convert integer log in base B to base 10 log (in floating point). </div><div class="ttdef"><b>Definition:</b> <a href="logmath_8c_source.html#l00480">logmath.c:480</a></div></div>
<div class="ttc" id="structlogadd__s_html_a8e35a353d751d957270baf5192007c3e"><div class="ttname"><a href="structlogadd__s.html#a8e35a353d751d957270baf5192007c3e">logadd_s::width</a></div><div class="ttdeci">uint8 width</div><div class="ttdoc">Width of elements of (table). </div><div class="ttdef"><b>Definition:</b> <a href="logmath_8h_source.html#l00100">logmath.h:100</a></div></div>
<div class="ttc" id="logmath_8h_html_a787070f5e689878348ef219245fc7c44"><div class="ttname"><a href="logmath_8h.html#a787070f5e689878348ef219245fc7c44">logmath_write</a></div><div class="ttdeci">SPHINXBASE_EXPORT int32 logmath_write(logmath_t *lmath, const char *filename)</div><div class="ttdoc">Write a log table to a file. </div><div class="ttdef"><b>Definition:</b> <a href="logmath_8c_source.html#l00272">logmath.c:272</a></div></div>
<div class="ttc" id="logmath_8h_html_ae8b0a168e29e448c0d6de66dc46e099e"><div class="ttname"><a href="logmath_8h.html#ae8b0a168e29e448c0d6de66dc46e099e">logmath_exp</a></div><div class="ttdeci">SPHINXBASE_EXPORT float64 logmath_exp(logmath_t *lmath, int logb_p)</div><div class="ttdoc">Convert integer log in base B to linear floating point. </div><div class="ttdef"><b>Definition:</b> <a href="logmath_8c_source.html#l00456">logmath.c:456</a></div></div>
<div class="ttc" id="logmath_8h_html_aacb4dddeed63a61fb927915f7e3a642e"><div class="ttname"><a href="logmath_8h.html#aacb4dddeed63a61fb927915f7e3a642e">logmath_log10_to_log</a></div><div class="ttdeci">SPHINXBASE_EXPORT int logmath_log10_to_log(logmath_t *lmath, float64 log_p)</div><div class="ttdoc">Convert base 10 log (in floating point) to integer log in base B. </div><div class="ttdef"><b>Definition:</b> <a href="logmath_8c_source.html#l00474">logmath.c:474</a></div></div>
<div class="ttc" id="logmath_8h_html_a52eff2c778ad758888b03ac5efcdccea"><div class="ttname"><a href="logmath_8h.html#a52eff2c778ad758888b03ac5efcdccea">logmath_ln_to_log</a></div><div class="ttdeci">SPHINXBASE_EXPORT int logmath_ln_to_log(logmath_t *lmath, float64 log_p)</div><div class="ttdoc">Convert natural log (in floating point) to integer log in base B. </div><div class="ttdef"><b>Definition:</b> <a href="logmath_8c_source.html#l00462">logmath.c:462</a></div></div>
<div class="ttc" id="logmath_8h_html_a5eb70928578b0115c9c7ac2765396a06"><div class="ttname"><a href="logmath_8h.html#a5eb70928578b0115c9c7ac2765396a06">logmath_add</a></div><div class="ttdeci">SPHINXBASE_EXPORT int logmath_add(logmath_t *lmath, int logb_p, int logb_q)</div><div class="ttdoc">Add two values in log space (i.e. </div><div class="ttdef"><b>Definition:</b> <a href="logmath_8c_source.html#l00392">logmath.c:392</a></div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_d44c64559bbebec7f509842c48db8b23.html">include</a></li><li class="navelem"><a class="el" href="dir_e3d154c296a8e9be2797a4f81e9375b2.html">sphinxbase</a></li><li class="navelem"><a class="el" href="logmath_8h.html">logmath.h</a></li>
    <li class="footer">Generated on Sat Oct 18 2014 15:21:16 for SphinxBase by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.8 </li>
  </ul>
</div>
</body>
</html>