📄 group__fixed__math__fns.htm
字号:
<table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"><a class="el" href="group__gdi__types.htm#ga10">fixed</a> fixsqrt </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="group__gdi__types.htm#ga10">fixed</a> </td> <td class="mdname1" valign="top" nowrap> <em>x</em> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Returns the non-negative square root of a fixed point value. <p>This function returns the non-negative square root of <em>x</em>. It fails and sets errno to EDOM, if <em>x</em> is negative.<p><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="group__fixed__math__fns.htm#ga4">fixhypot</a> </dd></dl> </td> </tr></table><a class="anchor" name="ga10" doxytag="fixedmath.h::fixsub"></a><p><table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"><a class="el" href="group__gdi__types.htm#ga10">fixed</a> fixsub </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="group__gdi__types.htm#ga10">fixed</a> </td> <td class="mdname" nowrap> <em>x</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap><a class="el" href="group__gdi__types.htm#ga10">fixed</a> </td> <td class="mdname" nowrap> <em>y</em></td> </tr> <tr> <td class="md"></td> <td class="md">) </td> <td class="md" colspan="2"><code> [inline, static]</code></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Subtract a fixed point value from another. <p>This function subtracts the fixed point values <em>y</em> from the fixed point value <em>x</em>, and returns the difference.<p><dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>x</em> </td><td>The minuend. </td></tr> <tr><td valign="top"></td><td valign="top"><em>y</em> </td><td>The subtrahend.</td></tr> </table></dl><dl compact><dt><b>Returns:</b></dt><dd>The difference. If the result runs out of range of fixed point, this function sets <em>errno</em> to <em>ERANGE</em>.</dd></dl><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="group__fixed__math__fns.htm#ga9">fixadd</a> </dd></dl><p>Definition at line <a class="el" href="fixedmath_8h-source.htm#l00231">231</a> of file <a class="el" href="fixedmath_8h-source.htm">fixedmath.h</a>. </td> </tr></table><a class="anchor" name="ga18" doxytag="fixedmath.h::fixtan"></a><p><table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"><a class="el" href="group__gdi__types.htm#ga10">fixed</a> fixtan </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="group__gdi__types.htm#ga10">fixed</a> </td> <td class="mdname1" valign="top" nowrap> <em>x</em> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap><code> [inline, static]</code></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Returns the tangent of a fixed point. <p>This function returns the tangent of the fixed point <em>x</em>, where <em>x</em> is given in radians.<p><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="group__fixed__math__fns.htm#ga16">fixcos</a>, <a class="el" href="group__fixed__math__fns.htm#ga17">fixsin</a> </dd></dl><p>Definition at line <a class="el" href="fixedmath_8h-source.htm#l00381">381</a> of file <a class="el" href="fixedmath_8h-source.htm">fixedmath.h</a>. </td> </tr></table><a class="anchor" name="ga8" doxytag="fixedmath.h::fixtof"></a><p><table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">double fixtof </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="group__gdi__types.htm#ga10">fixed</a> </td> <td class="mdname1" valign="top" nowrap> <em>x</em> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap><code> [inline, static]</code></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Converts a fixed point value to a float point value. <p>This function converts the specified fixed point value <em>x</em> to a float point value.<p><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="group__fixed__math__fns.htm#ga7">ftofix</a> </dd></dl><p>Definition at line <a class="el" href="fixedmath_8h-source.htm#l00174">174</a> of file <a class="el" href="fixedmath_8h-source.htm">fixedmath.h</a>.<p>Referenced by <a class="el" href="fixedmath_8h-source.htm#l00284">fixdiv()</a>, and <a class="el" href="fixedmath_8h-source.htm#l00266">fixmul()</a>. </td> </tr></table><a class="anchor" name="ga15" doxytag="fixedmath.h::fixtoi"></a><p><table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">int fixtoi </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="group__gdi__types.htm#ga10">fixed</a> </td> <td class="mdname1" valign="top" nowrap> <em>x</em> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap><code> [inline, static]</code></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Converts an fixed point value to an integer. <p>This function converts the fixed point <em>x</em> to an integer.<p><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="group__fixed__math__fns.htm#ga14">itofix</a> </dd></dl><p>Definition at line <a class="el" href="fixedmath_8h-source.htm#l00339">339</a> of file <a class="el" href="fixedmath_8h-source.htm">fixedmath.h</a>. </td> </tr></table><a class="anchor" name="ga7" doxytag="fixedmath.h::ftofix"></a><p><table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"><a class="el" href="group__gdi__types.htm#ga10">fixed</a> ftofix </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">double </td> <td class="mdname1" valign="top" nowrap> <em>x</em> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap><code> [inline, static]</code></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Converts a float point value to a fixed point value. <p>This function converts the specified float point value <em>x</em> to a fixed point value.<p><dl compact><dt><b>Note:</b></dt><dd>The float point should be ranged from -32767.0 to 32767.0. If it runs out of the range, this function sets <em>errno</em> to <em>ERANGE</em>.</dd></dl><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="group__fixed__math__fns.htm#ga8">fixtof</a> </dd></dl><p>Definition at line <a class="el" href="fixedmath_8h-source.htm#l00150">150</a> of file <a class="el" href="fixedmath_8h-source.htm">fixedmath.h</a>.<p>Referenced by <a class="el" href="fixedmath_8h-source.htm#l00284">fixdiv()</a>, and <a class="el" href="fixedmath_8h-source.htm#l00266">fixmul()</a>. </td> </tr></table><a class="anchor" name="ga14" doxytag="fixedmath.h::itofix"></a><p><table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"><a class="el" href="group__gdi__types.htm#ga10">fixed</a> itofix </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">int </td> <td class="mdname1" valign="top" nowrap> <em>x</em> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap><code> [inline, static]</code></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Converts an integer to a fixed point value. <p>This function converts the integer <em>x</em> to a fixed point value.<p><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="group__fixed__math__fns.htm#ga15">fixtoi</a> </dd></dl><p>Definition at line <a class="el" href="fixedmath_8h-source.htm#l00326">326</a> of file <a class="el" href="fixedmath_8h-source.htm">fixedmath.h</a>. </td> </tr></table><hr size="1"><address style="align: right;"><small>Generated on Thu Nov 22 15:35:54 2007 for MiniGUI V1.6.10 API Reference by <a href="http://www.doxygen.org/index.html"><img src="http://www.minigui.com/api_ref/1.6.10/doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.2 </small></address></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -