Updated API documentation
This commit is contained in:
@@ -3,7 +3,8 @@
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
|
||||
<title>Integer functions</title>
|
||||
<meta name="generator" content="Doxygen 1.8.5"/>
|
||||
<title>GLM: type_precision.hpp File Reference</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>
|
||||
@@ -15,470 +16,72 @@
|
||||
<table cellspacing="0" cellpadding="0">
|
||||
<tbody>
|
||||
<tr style="height: 56px;">
|
||||
<td id="projectlogo"><img alt="Logo" src="logo.png"/></td>
|
||||
<td style="padding-left: 0.5em;">
|
||||
<div id="projectname">GLM
|
||||
 <span id="projectnumber">0.9.5</span>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<!-- end header part -->
|
||||
<!-- Generated by Doxygen 1.8.2 -->
|
||||
<!-- Generated by Doxygen 1.8.5 -->
|
||||
<div id="navrow1" class="tabs">
|
||||
<ul class="tablist">
|
||||
<li><a href="index.html"><span>Main Page</span></a></li>
|
||||
<li><a href="pages.html"><span>Related Pages</span></a></li>
|
||||
<li><a href="modules.html"><span>Modules</span></a></li>
|
||||
<li><a href="files.html"><span>Files</span></a></li>
|
||||
<li><a href="namespaces.html"><span>Namespaces</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 List</span></a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div id="nav-path" class="navpath">
|
||||
<ul>
|
||||
<li class="navelem"><a class="el" href="dir_8ceffd4ee35c3518d4e8bdc7e638efe8.html">Users</a></li><li class="navelem"><a class="el" href="dir_968fb7988749a6351e7b3d0c1783dec4.html">Groove</a></li><li class="navelem"><a class="el" href="dir_6e418c18ca640a0404613de005739e2e.html">Documents</a></li><li class="navelem"><a class="el" href="dir_e3ecd7863bd215c92a17f47e2ae3be43.html">GitHub</a></li><li class="navelem"><a class="el" href="dir_edf753475b928be648c1cf1c6443cf63.html">glm</a></li><li class="navelem"><a class="el" href="dir_e50778361fd4ab4de52181ed9eb2b726.html">glm</a></li><li class="navelem"><a class="el" href="dir_f7324829a002c536307b42a892c06451.html">gtc</a></li> </ul>
|
||||
</div>
|
||||
</div><!-- top -->
|
||||
<div class="header">
|
||||
<div class="summary">
|
||||
<a href="#func-members">Functions</a> </div>
|
||||
<a href="#namespaces">Namespaces</a> </div>
|
||||
<div class="headertitle">
|
||||
<div class="title">Integer functions</div> </div>
|
||||
<div class="ingroups"><a class="el" href="a00141.html">GLM Core</a></div></div><!--header-->
|
||||
<div class="title">type_precision.hpp File Reference</div> </div>
|
||||
</div><!--header-->
|
||||
<div class="contents">
|
||||
|
||||
<p><a href="a00132_source.html">Go to the source code of this file.</a></p>
|
||||
<table class="memberdecls">
|
||||
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
|
||||
Functions</h2></td></tr>
|
||||
<tr class="memitem:ga5c4d37c42926b09be4384a9656f73ee4"><td class="memTemplParams" colspan="2">template<typename T , template< typename > class genIUType> </td></tr>
|
||||
<tr class="memitem:ga5c4d37c42926b09be4384a9656f73ee4"><td class="memTemplItemLeft" align="right" valign="top">genIUType< T >::signed_type </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00132.html#ga5c4d37c42926b09be4384a9656f73ee4">bitCount</a> (genIUType< T > const &Value)</td></tr>
|
||||
<tr class="separator:ga5c4d37c42926b09be4384a9656f73ee4"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:gaeae27fd61779ae93b8d0fa9cef142c3d"><td class="memTemplParams" colspan="2">template<typename genIUType > </td></tr>
|
||||
<tr class="memitem:gaeae27fd61779ae93b8d0fa9cef142c3d"><td class="memTemplItemLeft" align="right" valign="top">genIUType </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00132.html#gaeae27fd61779ae93b8d0fa9cef142c3d">bitfieldExtract</a> (genIUType const &Value, int const &Offset, int const &Bits)</td></tr>
|
||||
<tr class="separator:gaeae27fd61779ae93b8d0fa9cef142c3d"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:ga490b328e7b5d06b477ede4a59edfb798"><td class="memTemplParams" colspan="2">template<typename genIUType > </td></tr>
|
||||
<tr class="memitem:ga490b328e7b5d06b477ede4a59edfb798"><td class="memTemplItemLeft" align="right" valign="top">genIUType </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00132.html#ga490b328e7b5d06b477ede4a59edfb798">bitfieldInsert</a> (genIUType const &Base, genIUType const &Insert, int const &Offset, int const &Bits)</td></tr>
|
||||
<tr class="separator:ga490b328e7b5d06b477ede4a59edfb798"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:ga4cc9293f91c17a2d4c7215573f7a75c2"><td class="memTemplParams" colspan="2">template<typename genIUType > </td></tr>
|
||||
<tr class="memitem:ga4cc9293f91c17a2d4c7215573f7a75c2"><td class="memTemplItemLeft" align="right" valign="top">genIUType </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00132.html#ga4cc9293f91c17a2d4c7215573f7a75c2">bitfieldReverse</a> (genIUType const &Value)</td></tr>
|
||||
<tr class="separator:ga4cc9293f91c17a2d4c7215573f7a75c2"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:gaf921488d20990ec15f3fde3d1db919f0"><td class="memTemplParams" colspan="2">template<typename T , template< typename > class genIUType> </td></tr>
|
||||
<tr class="memitem:gaf921488d20990ec15f3fde3d1db919f0"><td class="memTemplItemLeft" align="right" valign="top">genIUType< T >::signed_type </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00132.html#gaf921488d20990ec15f3fde3d1db919f0">findLSB</a> (genIUType< T > const &Value)</td></tr>
|
||||
<tr class="separator:gaf921488d20990ec15f3fde3d1db919f0"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:gaa17f942299cb7a51c60155f9e78228f3"><td class="memTemplParams" colspan="2">template<typename T , template< typename > class genIUType> </td></tr>
|
||||
<tr class="memitem:gaa17f942299cb7a51c60155f9e78228f3"><td class="memTemplItemLeft" align="right" valign="top">genIUType< T >::signed_type </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00132.html#gaa17f942299cb7a51c60155f9e78228f3">findMSB</a> (genIUType< T > const &Value)</td></tr>
|
||||
<tr class="separator:gaa17f942299cb7a51c60155f9e78228f3"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:gab0eaec4d0964925429322eebf8dca6d0"><td class="memTemplParams" colspan="2">template<typename genIType > </td></tr>
|
||||
<tr class="memitem:gab0eaec4d0964925429322eebf8dca6d0"><td class="memTemplItemLeft" align="right" valign="top">void </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00132.html#gab0eaec4d0964925429322eebf8dca6d0">imulExtended</a> (genIType const &x, genIType const &y, genIType &msb, genIType &lsb)</td></tr>
|
||||
<tr class="separator:gab0eaec4d0964925429322eebf8dca6d0"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:ga7d96efb73301e722a527b912f05f6ac0"><td class="memTemplParams" colspan="2">template<typename genUType > </td></tr>
|
||||
<tr class="memitem:ga7d96efb73301e722a527b912f05f6ac0"><td class="memTemplItemLeft" align="right" valign="top">genUType </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00132.html#ga7d96efb73301e722a527b912f05f6ac0">uaddCarry</a> (genUType const &x, genUType const &y, genUType &carry)</td></tr>
|
||||
<tr class="separator:ga7d96efb73301e722a527b912f05f6ac0"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:ga8e89fcd6b0e2cd96cd2e1b69fdb7afd9"><td class="memTemplParams" colspan="2">template<typename genUType > </td></tr>
|
||||
<tr class="memitem:ga8e89fcd6b0e2cd96cd2e1b69fdb7afd9"><td class="memTemplItemLeft" align="right" valign="top">void </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00132.html#ga8e89fcd6b0e2cd96cd2e1b69fdb7afd9">umulExtended</a> (genUType const &x, genUType const &y, genUType &msb, genUType &lsb)</td></tr>
|
||||
<tr class="separator:ga8e89fcd6b0e2cd96cd2e1b69fdb7afd9"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:gacd727c8bb8bda7a509773f9f204ab5a1"><td class="memTemplParams" colspan="2">template<typename genUType > </td></tr>
|
||||
<tr class="memitem:gacd727c8bb8bda7a509773f9f204ab5a1"><td class="memTemplItemLeft" align="right" valign="top">genUType </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00132.html#gacd727c8bb8bda7a509773f9f204ab5a1">usubBorrow</a> (genUType const &x, genUType const &y, genUType &borrow)</td></tr>
|
||||
<tr class="separator:gacd727c8bb8bda7a509773f9f204ab5a1"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="namespaces"></a>
|
||||
Namespaces</h2></td></tr>
|
||||
<tr class="memitem:a00151"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="a00151.html">glm</a></td></tr>
|
||||
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
</table>
|
||||
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
|
||||
<p>These all operate component-wise. </p>
|
||||
<p>The description is per component. The notation [a, b] means the set of bits from bit-number a through bit-number b, inclusive. The lowest-order bit is bit 0. </p>
|
||||
<h2 class="groupheader">Function Documentation</h2>
|
||||
<a class="anchor" id="ga5c4d37c42926b09be4384a9656f73ee4"></a>
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">genIUType<T>::signed_type glm::bitCount </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype">genIUType< T > const & </td>
|
||||
<td class="paramname"><em>Value</em></td><td>)</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>Returns the number of bits set to 1 in the binary representation of value. </p>
|
||||
<dl class="tparams"><dt>Template Parameters</dt><dd>
|
||||
<table class="tparams">
|
||||
<tr><td class="paramname">genIUType</td><td>Signed or unsigned integer scalar or vector types.</td></tr>
|
||||
</table>
|
||||
</dd>
|
||||
</dl>
|
||||
<dl class="section see"><dt>See Also</dt><dd><a href="http://www.opengl.org/sdk/docs/manglsl/xhtml/bitCount.xml">GLSL bitCount man page</a> </dd>
|
||||
<div class="textblock"><p>OpenGL Mathematics (glm.g-truc.net) </p>
|
||||
<p>Copyright (c) 2005 - 2013 G-Truc Creation (www.g-truc.net) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:</p>
|
||||
<p>The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.</p>
|
||||
<p>THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.</p>
|
||||
<p><a class="el" href="a00182.html">GLM_GTC_type_precision</a></p>
|
||||
<dl class="section date"><dt>Date</dt><dd>2009-06-04 / 2011-12-07 </dd></dl>
|
||||
<dl class="section author"><dt>Author</dt><dd>Christophe Riccio</dd></dl>
|
||||
<dl class="section see"><dt>See Also</dt><dd><a class="el" href="a00167.html" title="The core of GLM, which implements exactly and only the GLSL specification to the degree possible...">GLM Core</a> (dependence) </dd>
|
||||
<dd>
|
||||
<a href="http://www.opengl.org/registry/doc/GLSLangSpec.4.20.8.pdf">GLSL 4.20.8 specification, section 8.8 Integer Functions</a></dd></dl>
|
||||
<dl class="todo"><dt><b><a class="el" href="a00215.html#_todo000003">Todo:</a></b></dt><dd>Clarify the declaration to specify that scalars are suported. </dd></dl>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a class="anchor" id="gaeae27fd61779ae93b8d0fa9cef142c3d"></a>
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">genIUType glm::bitfieldExtract </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype">genIUType const & </td>
|
||||
<td class="paramname"><em>Value</em>, </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="paramkey"></td>
|
||||
<td></td>
|
||||
<td class="paramtype">int const & </td>
|
||||
<td class="paramname"><em>Offset</em>, </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="paramkey"></td>
|
||||
<td></td>
|
||||
<td class="paramtype">int const & </td>
|
||||
<td class="paramname"><em>Bits</em> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td>)</td>
|
||||
<td></td><td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>Extracts bits [offset, offset + bits - 1] from value, returning them in the least significant bits of the result. </p>
|
||||
<p>For unsigned data types, the most significant bits of the result will be set to zero. For signed data types, the most significant bits will be set to the value of bit offset + base <20> 1.</p>
|
||||
<p>If bits is zero, the result will be zero. The result will be undefined if offset or bits is negative, or if the sum of offset and bits is greater than the number of bits used to store the operand.</p>
|
||||
<dl class="tparams"><dt>Template Parameters</dt><dd>
|
||||
<table class="tparams">
|
||||
<tr><td class="paramname">genIUType</td><td>Signed or unsigned integer scalar or vector types.</td></tr>
|
||||
</table>
|
||||
</dd>
|
||||
</dl>
|
||||
<dl class="section see"><dt>See Also</dt><dd><a href="http://www.opengl.org/sdk/docs/manglsl/xhtml/bitfieldExtract.xml">GLSL bitfieldExtract man page</a> </dd>
|
||||
gtc_half_float (dependence) </dd>
|
||||
<dd>
|
||||
<a href="http://www.opengl.org/registry/doc/GLSLangSpec.4.20.8.pdf">GLSL 4.20.8 specification, section 8.8 Integer Functions</a> </dd></dl>
|
||||
<a class="el" href="a00179.html" title="Defines a templated quaternion type and several quaternion operations. ">GLM_GTC_quaternion</a> (dependence) </dd></dl>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a class="anchor" id="ga490b328e7b5d06b477ede4a59edfb798"></a>
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">genIUType glm::bitfieldInsert </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype">genIUType const & </td>
|
||||
<td class="paramname"><em>Base</em>, </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="paramkey"></td>
|
||||
<td></td>
|
||||
<td class="paramtype">genIUType const & </td>
|
||||
<td class="paramname"><em>Insert</em>, </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="paramkey"></td>
|
||||
<td></td>
|
||||
<td class="paramtype">int const & </td>
|
||||
<td class="paramname"><em>Offset</em>, </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="paramkey"></td>
|
||||
<td></td>
|
||||
<td class="paramtype">int const & </td>
|
||||
<td class="paramname"><em>Bits</em> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td>)</td>
|
||||
<td></td><td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>Returns the insertion the bits least-significant bits of insert into base. </p>
|
||||
<p>The result will have bits [offset, offset + bits - 1] taken from bits [0, bits <20> 1] of insert, and all other bits taken directly from the corresponding bits of base. If bits is zero, the result will simply be base. The result will be undefined if offset or bits is negative, or if the sum of offset and bits is greater than the number of bits used to store the operand.</p>
|
||||
<dl class="tparams"><dt>Template Parameters</dt><dd>
|
||||
<table class="tparams">
|
||||
<tr><td class="paramname">genIUType</td><td>Signed or unsigned integer scalar or vector types.</td></tr>
|
||||
</table>
|
||||
</dd>
|
||||
</dl>
|
||||
<dl class="section see"><dt>See Also</dt><dd><a href="http://www.opengl.org/sdk/docs/manglsl/xhtml/bitfieldInsert.xml">GLSL bitfieldInsert man page</a> </dd>
|
||||
<dd>
|
||||
<a href="http://www.opengl.org/registry/doc/GLSLangSpec.4.20.8.pdf">GLSL 4.20.8 specification, section 8.8 Integer Functions</a> </dd></dl>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a class="anchor" id="ga4cc9293f91c17a2d4c7215573f7a75c2"></a>
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">genIUType glm::bitfieldReverse </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype">genIUType const & </td>
|
||||
<td class="paramname"><em>Value</em></td><td>)</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>Returns the reversal of the bits of value. </p>
|
||||
<p>The bit numbered n of the result will be taken from bit (bits - 1) - n of value, where bits is the total number of bits used to represent value.</p>
|
||||
<dl class="tparams"><dt>Template Parameters</dt><dd>
|
||||
<table class="tparams">
|
||||
<tr><td class="paramname">genIUType</td><td>Signed or unsigned integer scalar or vector types.</td></tr>
|
||||
</table>
|
||||
</dd>
|
||||
</dl>
|
||||
<dl class="section see"><dt>See Also</dt><dd><a href="http://www.opengl.org/sdk/docs/manglsl/xhtml/bitfieldReverse.xml">GLSL bitfieldReverse man page</a> </dd>
|
||||
<dd>
|
||||
<a href="http://www.opengl.org/registry/doc/GLSLangSpec.4.20.8.pdf">GLSL 4.20.8 specification, section 8.8 Integer Functions</a> </dd></dl>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a class="anchor" id="gaf921488d20990ec15f3fde3d1db919f0"></a>
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">genIUType<T>::signed_type glm::findLSB </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype">genIUType< T > const & </td>
|
||||
<td class="paramname"><em>Value</em></td><td>)</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>Returns the bit number of the least significant bit set to 1 in the binary representation of value. </p>
|
||||
<p>If value is zero, -1 will be returned.</p>
|
||||
<dl class="tparams"><dt>Template Parameters</dt><dd>
|
||||
<table class="tparams">
|
||||
<tr><td class="paramname">genIUType</td><td>Signed or unsigned integer scalar or vector types.</td></tr>
|
||||
</table>
|
||||
</dd>
|
||||
</dl>
|
||||
<dl class="section see"><dt>See Also</dt><dd><a href="http://www.opengl.org/sdk/docs/manglsl/xhtml/findLSB.xml">GLSL findLSB man page</a> </dd>
|
||||
<dd>
|
||||
<a href="http://www.opengl.org/registry/doc/GLSLangSpec.4.20.8.pdf">GLSL 4.20.8 specification, section 8.8 Integer Functions</a></dd></dl>
|
||||
<dl class="todo"><dt><b><a class="el" href="a00215.html#_todo000004">Todo:</a></b></dt><dd>Clarify the declaration to specify that scalars are suported. </dd></dl>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a class="anchor" id="gaa17f942299cb7a51c60155f9e78228f3"></a>
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">genIUType<T>::signed_type glm::findMSB </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype">genIUType< T > const & </td>
|
||||
<td class="paramname"><em>Value</em></td><td>)</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>Returns the bit number of the most significant bit in the binary representation of value. </p>
|
||||
<p>For positive integers, the result will be the bit number of the most significant bit set to 1. For negative integers, the result will be the bit number of the most significant bit set to 0. For a value of zero or negative one, -1 will be returned.</p>
|
||||
<dl class="tparams"><dt>Template Parameters</dt><dd>
|
||||
<table class="tparams">
|
||||
<tr><td class="paramname">genIUType</td><td>Signed or unsigned integer scalar or vector types.</td></tr>
|
||||
</table>
|
||||
</dd>
|
||||
</dl>
|
||||
<dl class="section see"><dt>See Also</dt><dd><a href="http://www.opengl.org/sdk/docs/manglsl/xhtml/findMSB.xml">GLSL findMSB man page</a> </dd>
|
||||
<dd>
|
||||
<a href="http://www.opengl.org/registry/doc/GLSLangSpec.4.20.8.pdf">GLSL 4.20.8 specification, section 8.8 Integer Functions</a></dd></dl>
|
||||
<dl class="todo"><dt><b><a class="el" href="a00215.html#_todo000005">Todo:</a></b></dt><dd>Clarify the declaration to specify that scalars are suported. </dd></dl>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a class="anchor" id="gab0eaec4d0964925429322eebf8dca6d0"></a>
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">void glm::imulExtended </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype">genIType const & </td>
|
||||
<td class="paramname"><em>x</em>, </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="paramkey"></td>
|
||||
<td></td>
|
||||
<td class="paramtype">genIType const & </td>
|
||||
<td class="paramname"><em>y</em>, </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="paramkey"></td>
|
||||
<td></td>
|
||||
<td class="paramtype">genIType & </td>
|
||||
<td class="paramname"><em>msb</em>, </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="paramkey"></td>
|
||||
<td></td>
|
||||
<td class="paramtype">genIType & </td>
|
||||
<td class="paramname"><em>lsb</em> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td>)</td>
|
||||
<td></td><td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>Multiplies 32-bit integers x and y, producing a 64-bit result. </p>
|
||||
<p>The 32 least-significant bits are returned in lsb. The 32 most-significant bits are returned in msb.</p>
|
||||
<dl class="tparams"><dt>Template Parameters</dt><dd>
|
||||
<table class="tparams">
|
||||
<tr><td class="paramname">genIType</td><td>Signed integer scalar or vector types.</td></tr>
|
||||
</table>
|
||||
</dd>
|
||||
</dl>
|
||||
<dl class="section see"><dt>See Also</dt><dd><a href="http://www.opengl.org/sdk/docs/manglsl/xhtml/imulExtended.xml">GLSL imulExtended man page</a> </dd>
|
||||
<dd>
|
||||
<a href="http://www.opengl.org/registry/doc/GLSLangSpec.4.20.8.pdf">GLSL 4.20.8 specification, section 8.8 Integer Functions</a> </dd></dl>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a class="anchor" id="ga7d96efb73301e722a527b912f05f6ac0"></a>
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">genUType glm::uaddCarry </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype">genUType const & </td>
|
||||
<td class="paramname"><em>x</em>, </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="paramkey"></td>
|
||||
<td></td>
|
||||
<td class="paramtype">genUType const & </td>
|
||||
<td class="paramname"><em>y</em>, </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="paramkey"></td>
|
||||
<td></td>
|
||||
<td class="paramtype">genUType & </td>
|
||||
<td class="paramname"><em>carry</em> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td>)</td>
|
||||
<td></td><td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>Adds 32-bit unsigned integer x and y, returning the sum modulo pow(2, 32). </p>
|
||||
<p>The value carry is set to 0 if the sum was less than pow(2, 32), or to 1 otherwise.</p>
|
||||
<dl class="tparams"><dt>Template Parameters</dt><dd>
|
||||
<table class="tparams">
|
||||
<tr><td class="paramname">genUType</td><td>Unsigned integer scalar or vector types.</td></tr>
|
||||
</table>
|
||||
</dd>
|
||||
</dl>
|
||||
<dl class="section see"><dt>See Also</dt><dd><a href="http://www.opengl.org/sdk/docs/manglsl/xhtml/uaddCarry.xml">GLSL uaddCarry man page</a> </dd>
|
||||
<dd>
|
||||
<a href="http://www.opengl.org/registry/doc/GLSLangSpec.4.20.8.pdf">GLSL 4.20.8 specification, section 8.8 Integer Functions</a> </dd></dl>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a class="anchor" id="ga8e89fcd6b0e2cd96cd2e1b69fdb7afd9"></a>
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">void glm::umulExtended </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype">genUType const & </td>
|
||||
<td class="paramname"><em>x</em>, </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="paramkey"></td>
|
||||
<td></td>
|
||||
<td class="paramtype">genUType const & </td>
|
||||
<td class="paramname"><em>y</em>, </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="paramkey"></td>
|
||||
<td></td>
|
||||
<td class="paramtype">genUType & </td>
|
||||
<td class="paramname"><em>msb</em>, </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="paramkey"></td>
|
||||
<td></td>
|
||||
<td class="paramtype">genUType & </td>
|
||||
<td class="paramname"><em>lsb</em> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td>)</td>
|
||||
<td></td><td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>Multiplies 32-bit integers x and y, producing a 64-bit result. </p>
|
||||
<p>The 32 least-significant bits are returned in lsb. The 32 most-significant bits are returned in msb.</p>
|
||||
<dl class="tparams"><dt>Template Parameters</dt><dd>
|
||||
<table class="tparams">
|
||||
<tr><td class="paramname">genUType</td><td>Unsigned integer scalar or vector types.</td></tr>
|
||||
</table>
|
||||
</dd>
|
||||
</dl>
|
||||
<dl class="section see"><dt>See Also</dt><dd><a href="http://www.opengl.org/sdk/docs/manglsl/xhtml/umulExtended.xml">GLSL umulExtended man page</a> </dd>
|
||||
<dd>
|
||||
<a href="http://www.opengl.org/registry/doc/GLSLangSpec.4.20.8.pdf">GLSL 4.20.8 specification, section 8.8 Integer Functions</a> </dd></dl>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a class="anchor" id="gacd727c8bb8bda7a509773f9f204ab5a1"></a>
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">genUType glm::usubBorrow </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype">genUType const & </td>
|
||||
<td class="paramname"><em>x</em>, </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="paramkey"></td>
|
||||
<td></td>
|
||||
<td class="paramtype">genUType const & </td>
|
||||
<td class="paramname"><em>y</em>, </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="paramkey"></td>
|
||||
<td></td>
|
||||
<td class="paramtype">genUType & </td>
|
||||
<td class="paramname"><em>borrow</em> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td>)</td>
|
||||
<td></td><td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>Subtracts the 32-bit unsigned integer y from x, returning the difference if non-negative, or pow(2, 32) plus the difference otherwise. </p>
|
||||
<p>The value borrow is set to 0 if x >= y, or to 1 otherwise.</p>
|
||||
<dl class="tparams"><dt>Template Parameters</dt><dd>
|
||||
<table class="tparams">
|
||||
<tr><td class="paramname">genUType</td><td>Unsigned integer scalar or vector types.</td></tr>
|
||||
</table>
|
||||
</dd>
|
||||
</dl>
|
||||
<dl class="section see"><dt>See Also</dt><dd><a href="http://www.opengl.org/sdk/docs/manglsl/xhtml/usubBorrow.xml">GLSL usubBorrow man page</a> </dd>
|
||||
<dd>
|
||||
<a href="http://www.opengl.org/registry/doc/GLSLangSpec.4.20.8.pdf">GLSL 4.20.8 specification, section 8.8 Integer Functions</a> </dd></dl>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div><!-- contents -->
|
||||
<p>Definition in file <a class="el" href="a00132_source.html">type_precision.hpp</a>.</p>
|
||||
</div></div><!-- contents -->
|
||||
<!-- 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.2
|
||||
</a> 1.8.5
|
||||
</small></address>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user