<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"> <title>Crystal Space 1.2.1: csqint.h File Reference (Crystal Space 1.2.1 Public API Reference)</title> <link href="tabs.css" rel="stylesheet" type="text/css"> <link href="doxygen.css" rel="stylesheet" type="text/css"> </head><body> <table border="0" cellpadding="0" cellspacing="0" width="100%" class="head"> <tr height="59"> <td class="head" width="202" valign="bottom" style="padding-left:0;"><a href="http://www.crystalspace3d.org/"><img src="csblur.png" width="236" height="59" alt="CrystalSpace" border="0"></a></td> <td class="head"><h2>Public API Reference</h2></td> </tr> <tr height="11"> <td colspan="2" class="headshadow" valign="top" style="padding-left:0;"><img src="csblurb.png" width="236" height="11" alt="" border="0"></td> </tr> </table> <div class="content"> <!-- Generated by Doxygen 1.5.3 --> <div class="tabs"> <ul> <li><a href="index.html"><span>Main Page</span></a></li> <li><a href="modules.html"><span>Modules</span></a></li> <li><a href="namespaces.html"><span>Namespaces</span></a></li> <li><a href="classes.html"><span>Classes</span></a></li> <li class="current"><a href="files.html"><span>Files</span></a></li> <li><a href="pages.html"><span>Related Pages</span></a></li> </ul> </div> <h1>csqint.h File Reference</h1>Quick floating point to integer conversions. <a href="#_details">More...</a> <p> <p> <a href="csqint_8h-source.html">Go to the source code of this file.</a><table border="0" cellpadding="0" cellspacing="0"> <tr><td></td></tr> <tr><td colspan="2"><br><h2>Functions</h2></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">static long </td><td class="memItemRight" valign="bottom"><a class="el" href="group__floating__point.html#gb4d25906568833f055705914635e7dcd">csQfixed16</a> (float n)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Quickly convert a floating-point number to 16.16 fixed-point value. <a href="group__floating__point.html#gb4d25906568833f055705914635e7dcd"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">static long </td><td class="memItemRight" valign="bottom"><a class="el" href="group__floating__point.html#gd305e638c1b9fa9a324d4c7eec92b597">csQfixed24</a> (float n)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Quickly convert a floating-point number to 8.24 fixed-point value. <a href="group__floating__point.html#gd305e638c1b9fa9a324d4c7eec92b597"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">static long </td><td class="memItemRight" valign="bottom"><a class="el" href="group__floating__point.html#g7a73833c6efb3d6e3f53a5d1ecb90b39">csQfixed8</a> (float n)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Quickly convert a floating-point number to 24.8 fixed-point value. <a href="group__floating__point.html#g7a73833c6efb3d6e3f53a5d1ecb90b39"></a><br></td></tr> <tr><td class="memTemplParams" nowrap colspan="2">template<typename T> </td></tr> <tr><td class="memTemplItemLeft" nowrap align="right" valign="top">static long </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="group__floating__point.html#gfd9ba12a8572f805d515beda1d407b3c">csQint</a> (T n)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Quickly truncate the fractional part of a floating-point value and convert it to a long integer using processor and/or number format quirks if available. <a href="group__floating__point.html#gfd9ba12a8572f805d515beda1d407b3c"></a><br></td></tr> <tr><td class="memTemplParams" nowrap colspan="2">template<typename T> </td></tr> <tr><td class="memTemplItemLeft" nowrap align="right" valign="top">static long </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="group__floating__point.html#ga7dbcbb25449d601f7e70e83366278d2">csQround</a> (T n)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Quickly round a floating-point value and convert it to a long integer using processor and/or number format quirks if available. <a href="group__floating__point.html#ga7dbcbb25449d601f7e70e83366278d2"></a><br></td></tr> </table> <hr><a name="_details"></a><h2>Detailed Description</h2> Quick floating point to integer conversions. <p> <p>Definition in file <a class="el" href="csqint_8h-source.html">csqint.h</a>.</p> <hr size="1"><address><small>Generated for Crystal Space 1.2.1 by <a href="http://www.doxygen.org/index.html">doxygen</a> 1.5.3 </small></address> </div></body> </html>