Getting GLM 0.9.3.1 release ready
This commit is contained in:
@@ -2,8 +2,9 @@
|
||||
<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"/>
|
||||
|
||||
<title>type_vec3.hpp File Reference</title>
|
||||
<title>Integer functions</title>
|
||||
<link href="tabs.css" rel="stylesheet" type="text/css"/>
|
||||
<link href="doxygen.css" rel="stylesheet" type="text/css" />
|
||||
|
||||
@@ -31,70 +32,466 @@
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<!-- Generated by Doxygen 1.7.5 -->
|
||||
<!-- Generated by Doxygen 1.7.6.1 -->
|
||||
<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="annotated.html"><span>Classes</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>
|
||||
<li><a href="files.html"><span>Files</span></a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="header">
|
||||
<div class="summary">
|
||||
<a href="#nested-classes">Classes</a> |
|
||||
<a href="#typedef-members">Typedefs</a> </div>
|
||||
<a href="#func-members">Functions</a> </div>
|
||||
<div class="headertitle">
|
||||
<div class="title">type_vec3.hpp File Reference</div> </div>
|
||||
</div>
|
||||
<div class="title">Integer functions</div> </div>
|
||||
<div class="ingroups"><a class="el" href="a00137.html">GLM Core</a></div></div><!--header-->
|
||||
<div class="contents">
|
||||
|
||||
<p><a href="a00128_source.html">Go to the source code of this file.</a></p>
|
||||
<table class="memberdecls">
|
||||
<tr><td colspan="2"><h2><a name="nested-classes"></a>
|
||||
Classes</h2></td></tr>
|
||||
<tr><td class="memItemLeft" align="right" valign="top">struct  </td><td class="memItemRight" valign="bottom"><a class="el" href="a00017.html">tvec3</a></td></tr>
|
||||
<tr><td class="mdescLeft"> </td><td class="mdescRight">Basic 3D vector type. <a href="a00017.html#details">More...</a><br/></td></tr>
|
||||
<tr><td colspan="2"><h2><a name="typedef-members"></a>
|
||||
Typedefs</h2></td></tr>
|
||||
<tr><td class="memItemLeft" align="right" valign="top">typedef detail::tvec3< highp_int > </td><td class="memItemRight" valign="bottom"><a class="el" href="a00156.html#gaccca78e0907313665d47af163c17c5bb">highp_ivec3</a></td></tr>
|
||||
<tr><td class="memItemLeft" align="right" valign="top">typedef detail::tvec3< highp_uint > </td><td class="memItemRight" valign="bottom"><a class="el" href="a00156.html#gaf4b32075ad193e4f47c8bfc367593d8c">highp_uvec3</a></td></tr>
|
||||
<tr><td class="memItemLeft" align="right" valign="top">typedef detail::tvec3<br class="typebreak"/>
|
||||
< highp_float > </td><td class="memItemRight" valign="bottom"><a class="el" href="a00156.html#ga0d3129f5f6644cb7552f520ff0dfa789">highp_vec3</a></td></tr>
|
||||
<tr><td class="memItemLeft" align="right" valign="top">typedef detail::tvec3< lowp_int > </td><td class="memItemRight" valign="bottom"><a class="el" href="a00156.html#gac246e3a1a470974283d6618ad77fd477">lowp_ivec3</a></td></tr>
|
||||
<tr><td class="memItemLeft" align="right" valign="top">typedef detail::tvec3< lowp_uint > </td><td class="memItemRight" valign="bottom"><a class="el" href="a00156.html#gaefdce0fe4ed79b26ed2b5f00bbf39075">lowp_uvec3</a></td></tr>
|
||||
<tr><td class="memItemLeft" align="right" valign="top">typedef detail::tvec3< lowp_float > </td><td class="memItemRight" valign="bottom"><a class="el" href="a00156.html#gab9e39d9db144322c1ad30ab3141084ad">lowp_vec3</a></td></tr>
|
||||
<tr><td class="memItemLeft" align="right" valign="top">typedef detail::tvec3<br class="typebreak"/>
|
||||
< mediump_int > </td><td class="memItemRight" valign="bottom"><a class="el" href="a00156.html#ga1d8ae738ed79d71f8d381f472d366913">mediump_ivec3</a></td></tr>
|
||||
<tr><td class="memItemLeft" align="right" valign="top">typedef detail::tvec3<br class="typebreak"/>
|
||||
< mediump_uint > </td><td class="memItemRight" valign="bottom"><a class="el" href="a00156.html#ga70d49eff07e7988447c93a83f9f311b6">mediump_uvec3</a></td></tr>
|
||||
<tr><td class="memItemLeft" align="right" valign="top">typedef detail::tvec3<br class="typebreak"/>
|
||||
< mediump_float > </td><td class="memItemRight" valign="bottom"><a class="el" href="a00156.html#gaf6aa71f085a150f42929a4b77458143e">mediump_vec3</a></td></tr>
|
||||
<tr><td colspan="2"><h2><a name="func-members"></a>
|
||||
Functions</h2></td></tr>
|
||||
<tr><td class="memTemplParams" colspan="2">template<typename T , template< typename > class genIUType> </td></tr>
|
||||
<tr><td class="memTemplItemLeft" align="right" valign="top">genIUType< T >::signed_type </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00128.html#ga5c4d37c42926b09be4384a9656f73ee4">bitCount</a> (genIUType< T > const &Value)</td></tr>
|
||||
<tr><td class="memTemplParams" colspan="2">template<typename genIUType > </td></tr>
|
||||
<tr><td class="memTemplItemLeft" align="right" valign="top">genIUType </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00128.html#gaeae27fd61779ae93b8d0fa9cef142c3d">bitfieldExtract</a> (genIUType const &Value, int const &Offset, int const &Bits)</td></tr>
|
||||
<tr><td class="memTemplParams" colspan="2">template<typename genIUType > </td></tr>
|
||||
<tr><td class="memTemplItemLeft" align="right" valign="top">genIUType </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00128.html#ga490b328e7b5d06b477ede4a59edfb798">bitfieldInsert</a> (genIUType const &Base, genIUType const &Insert, int const &Offset, int const &Bits)</td></tr>
|
||||
<tr><td class="memTemplParams" colspan="2">template<typename genIUType > </td></tr>
|
||||
<tr><td class="memTemplItemLeft" align="right" valign="top">genIUType </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00128.html#gac36ad04d509817f2f4769d45f13f43e5">bitfieldReverse</a> (genIUType const &value)</td></tr>
|
||||
<tr><td class="memTemplParams" colspan="2">template<typename T , template< typename > class genIUType> </td></tr>
|
||||
<tr><td class="memTemplItemLeft" align="right" valign="top">genIUType< T >::signed_type </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00128.html#gaf921488d20990ec15f3fde3d1db919f0">findLSB</a> (genIUType< T > const &Value)</td></tr>
|
||||
<tr><td class="memTemplParams" colspan="2">template<typename T , template< typename > class genIUType> </td></tr>
|
||||
<tr><td class="memTemplItemLeft" align="right" valign="top">genIUType< T >::signed_type </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00128.html#gaa17f942299cb7a51c60155f9e78228f3">findMSB</a> (genIUType< T > const &Value)</td></tr>
|
||||
<tr><td class="memTemplParams" colspan="2">template<typename genIType > </td></tr>
|
||||
<tr><td class="memTemplItemLeft" align="right" valign="top">void </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00128.html#gab0eaec4d0964925429322eebf8dca6d0">imulExtended</a> (genIType const &x, genIType const &y, genIType &msb, genIType &lsb)</td></tr>
|
||||
<tr><td class="memTemplParams" colspan="2">template<typename genUType > </td></tr>
|
||||
<tr><td class="memTemplItemLeft" align="right" valign="top">genUType </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00128.html#ga7d96efb73301e722a527b912f05f6ac0">uaddCarry</a> (genUType const &x, genUType const &y, genUType &carry)</td></tr>
|
||||
<tr><td class="memTemplParams" colspan="2">template<typename genUType > </td></tr>
|
||||
<tr><td class="memTemplItemLeft" align="right" valign="top">void </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00128.html#ga8e89fcd6b0e2cd96cd2e1b69fdb7afd9">umulExtended</a> (genUType const &x, genUType const &y, genUType &msb, genUType &lsb)</td></tr>
|
||||
<tr><td class="memTemplParams" colspan="2">template<typename genUType > </td></tr>
|
||||
<tr><td class="memTemplItemLeft" align="right" valign="top">genUType </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00128.html#gacd727c8bb8bda7a509773f9f204ab5a1">usubBorrow</a> (genUType const &x, genUType const &y, genUType &borrow)</td></tr>
|
||||
</table>
|
||||
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
|
||||
<div class="textblock"><p>OpenGL Mathematics (glm.g-truc.net) </p>
|
||||
<p>Copyright (c) 2005 - 2011 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="a00154.html">GLM Core</a></p>
|
||||
<dl class="date"><dt><b>Date:</b></dt><dd>2008-08-22 / 2011-06-15 </dd></dl>
|
||||
<dl class="author"><dt><b>Author:</b></dt><dd>Christophe Riccio </dd></dl>
|
||||
<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>
|
||||
<hr/><h2>Function Documentation</h2>
|
||||
<a class="anchor" id="ga5c4d37c42926b09be4384a9656f73ee4"></a><!-- doxytag: member="glm::bitCount" ref="ga5c4d37c42926b09be4384a9656f73ee4" args="(genIUType< T > const &Value)" -->
|
||||
<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>Definition in file <a class="el" href="a00128_source.html">type_vec3.hpp</a>.</p>
|
||||
</div></div>
|
||||
<p>Returns the number of bits set to 1 in the binary representation of value. </p>
|
||||
<dl class=""><dt><b>Template Parameters:</b></dt><dd>
|
||||
<table class="">
|
||||
<tr><td class="paramname">genIUType</td><td>Signed or unsigned integer scalar or vector types. </td></tr>
|
||||
</table>
|
||||
</dd>
|
||||
</dl>
|
||||
<dl class="see"><dt><b>See also:</b></dt><dd><a href="http://www.opengl.org/sdk/docs/manglsl/xhtml/bitCount.xml">GLSL bitCount 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="a00213.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><!-- doxytag: member="glm::bitfieldExtract" ref="gaeae27fd61779ae93b8d0fa9cef142c3d" args="(genIUType const &Value, int const &Offset, int const &Bits)" -->
|
||||
<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=""><dt><b>Template Parameters:</b></dt><dd>
|
||||
<table class="">
|
||||
<tr><td class="paramname">genIUType</td><td>Signed or unsigned integer scalar or vector types. </td></tr>
|
||||
</table>
|
||||
</dd>
|
||||
</dl>
|
||||
<dl class="see"><dt><b>See also:</b></dt><dd><a href="http://www.opengl.org/sdk/docs/manglsl/xhtml/bitfieldExtract.xml">GLSL bitfieldExtract 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="ga490b328e7b5d06b477ede4a59edfb798"></a><!-- doxytag: member="glm::bitfieldInsert" ref="ga490b328e7b5d06b477ede4a59edfb798" args="(genIUType const &Base, genIUType const &Insert, int const &Offset, int const &Bits)" -->
|
||||
<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=""><dt><b>Template Parameters:</b></dt><dd>
|
||||
<table class="">
|
||||
<tr><td class="paramname">genIUType</td><td>Signed or unsigned integer scalar or vector types. </td></tr>
|
||||
</table>
|
||||
</dd>
|
||||
</dl>
|
||||
<dl class="see"><dt><b>See also:</b></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="gac36ad04d509817f2f4769d45f13f43e5"></a><!-- doxytag: member="glm::bitfieldReverse" ref="gac36ad04d509817f2f4769d45f13f43e5" args="(genIUType const &value)" -->
|
||||
<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=""><dt><b>Template Parameters:</b></dt><dd>
|
||||
<table class="">
|
||||
<tr><td class="paramname">genIUType</td><td>Signed or unsigned integer scalar or vector types. </td></tr>
|
||||
</table>
|
||||
</dd>
|
||||
</dl>
|
||||
<dl class="see"><dt><b>See also:</b></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><!-- doxytag: member="glm::findLSB" ref="gaf921488d20990ec15f3fde3d1db919f0" args="(genIUType< T > const &Value)" -->
|
||||
<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=""><dt><b>Template Parameters:</b></dt><dd>
|
||||
<table class="">
|
||||
<tr><td class="paramname">genIUType</td><td>Signed or unsigned integer scalar or vector types. </td></tr>
|
||||
</table>
|
||||
</dd>
|
||||
</dl>
|
||||
<dl class="see"><dt><b>See also:</b></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="a00213.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><!-- doxytag: member="glm::findMSB" ref="gaa17f942299cb7a51c60155f9e78228f3" args="(genIUType< T > const &Value)" -->
|
||||
<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=""><dt><b>Template Parameters:</b></dt><dd>
|
||||
<table class="">
|
||||
<tr><td class="paramname">genIUType</td><td>Signed or unsigned integer scalar or vector types. </td></tr>
|
||||
</table>
|
||||
</dd>
|
||||
</dl>
|
||||
<dl class="see"><dt><b>See also:</b></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="a00213.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><!-- doxytag: member="glm::imulExtended" ref="gab0eaec4d0964925429322eebf8dca6d0" args="(genIType const &x, genIType const &y, genIType &msb, genIType &lsb)" -->
|
||||
<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=""><dt><b>Template Parameters:</b></dt><dd>
|
||||
<table class="">
|
||||
<tr><td class="paramname">genIType</td><td>Signed integer scalar or vector types. </td></tr>
|
||||
</table>
|
||||
</dd>
|
||||
</dl>
|
||||
<dl class="see"><dt><b>See also:</b></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><!-- doxytag: member="glm::uaddCarry" ref="ga7d96efb73301e722a527b912f05f6ac0" args="(genUType const &x, genUType const &y, genUType &carry)" -->
|
||||
<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=""><dt><b>Template Parameters:</b></dt><dd>
|
||||
<table class="">
|
||||
<tr><td class="paramname">genUType</td><td>Unsigned integer scalar or vector types. </td></tr>
|
||||
</table>
|
||||
</dd>
|
||||
</dl>
|
||||
<dl class="see"><dt><b>See also:</b></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><!-- doxytag: member="glm::umulExtended" ref="ga8e89fcd6b0e2cd96cd2e1b69fdb7afd9" args="(genUType const &x, genUType const &y, genUType &msb, genUType &lsb)" -->
|
||||
<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=""><dt><b>Template Parameters:</b></dt><dd>
|
||||
<table class="">
|
||||
<tr><td class="paramname">genUType</td><td>Unsigned integer scalar or vector types. </td></tr>
|
||||
</table>
|
||||
</dd>
|
||||
</dl>
|
||||
<dl class="see"><dt><b>See also:</b></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><!-- doxytag: member="glm::usubBorrow" ref="gacd727c8bb8bda7a509773f9f204ab5a1" args="(genUType const &x, genUType const &y, genUType &borrow)" -->
|
||||
<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=""><dt><b>Template Parameters:</b></dt><dd>
|
||||
<table class="">
|
||||
<tr><td class="paramname">genUType</td><td>Unsigned integer scalar or vector types. </td></tr>
|
||||
</table>
|
||||
</dd>
|
||||
</dl>
|
||||
<dl class="see"><dt><b>See also:</b></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 -->
|
||||
|
||||
|
||||
<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.7.5
|
||||
</a> 1.7.6.1
|
||||
</small></address>
|
||||
|
||||
</body>
|
||||
|
||||
Reference in New Issue
Block a user