mirror of
https://github.com/g-truc/glm.git
synced 2024-11-23 17:14:36 +00:00
638 lines
36 KiB
HTML
638 lines
36 KiB
HTML
<!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.10"/>
|
|
<title>0.9.9 API documenation: Integer functions</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="search/search.css" rel="stylesheet" type="text/css"/>
|
|
<script type="text/javascript" src="search/searchdata.js"></script>
|
|
<script type="text/javascript" src="search/search.js"></script>
|
|
<script type="text/javascript">
|
|
$(document).ready(function() { init_search(); });
|
|
</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 id="projectalign" style="padding-left: 0.5em;">
|
|
<div id="projectname">0.9.9 API documenation
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<!-- end header part -->
|
|
<!-- Generated by Doxygen 1.8.10 -->
|
|
<script type="text/javascript">
|
|
var searchBox = new SearchBox("searchBox", "search",false,'Search');
|
|
</script>
|
|
<div id="navrow1" class="tabs">
|
|
<ul class="tablist">
|
|
<li><a href="index.html"><span>Main Page</span></a></li>
|
|
<li><a href="modules.html"><span>Modules</span></a></li>
|
|
<li><a href="files.html"><span>Files</span></a></li>
|
|
<li>
|
|
<div id="MSearchBox" class="MSearchBoxInactive">
|
|
<span class="left">
|
|
<img id="MSearchSelect" src="search/mag_sel.png"
|
|
onmouseover="return searchBox.OnSearchSelectShow()"
|
|
onmouseout="return searchBox.OnSearchSelectHide()"
|
|
alt=""/>
|
|
<input type="text" id="MSearchField" value="Search" accesskey="S"
|
|
onfocus="searchBox.OnSearchFieldFocus(true)"
|
|
onblur="searchBox.OnSearchFieldFocus(false)"
|
|
onkeyup="searchBox.OnSearchFieldChange(event)"/>
|
|
</span><span class="right">
|
|
<a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
|
|
</span>
|
|
</div>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
</div><!-- top -->
|
|
<!-- window showing the filter options -->
|
|
<div id="MSearchSelectWindow"
|
|
onmouseover="return searchBox.OnSearchSelectShow()"
|
|
onmouseout="return searchBox.OnSearchSelectHide()"
|
|
onkeydown="return searchBox.OnSearchSelectKey(event)">
|
|
</div>
|
|
|
|
<!-- iframe showing the search results (closed by default) -->
|
|
<div id="MSearchResultsWindow">
|
|
<iframe src="javascript:void(0)" frameborder="0"
|
|
name="MSearchResults" id="MSearchResults">
|
|
</iframe>
|
|
</div>
|
|
|
|
<div class="header">
|
|
<div class="summary">
|
|
<a href="#func-members">Functions</a> </div>
|
|
<div class="headertitle">
|
|
<div class="title">Integer functions<div class="ingroups"><a class="el" href="a00158.html">GLM Core</a></div></div> </div>
|
|
</div><!--header-->
|
|
<div class="contents">
|
|
|
|
<p>These all operate component-wise.
|
|
<a href="#details">More...</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:ga44abfe3379e11cbd29425a843420d0d6"><td class="memTemplParams" colspan="2">template<typename genType > </td></tr>
|
|
<tr class="memitem:ga44abfe3379e11cbd29425a843420d0d6"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL int </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00151.html#ga44abfe3379e11cbd29425a843420d0d6">bitCount</a> (genType v)</td></tr>
|
|
<tr class="memdesc:ga44abfe3379e11cbd29425a843420d0d6"><td class="mdescLeft"> </td><td class="mdescRight">Returns the number of bits set to 1 in the binary representation of value. <a href="a00151.html#ga44abfe3379e11cbd29425a843420d0d6">More...</a><br /></td></tr>
|
|
<tr class="separator:ga44abfe3379e11cbd29425a843420d0d6"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:gace2dbfa083773466715be25947dc4518"><td class="memTemplParams" colspan="2">template<length_t L, typename T , qualifier P> </td></tr>
|
|
<tr class="memitem:gace2dbfa083773466715be25947dc4518"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL vec< L, int, P > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00151.html#gace2dbfa083773466715be25947dc4518">bitCount</a> (vec< L, T, P > const &v)</td></tr>
|
|
<tr class="memdesc:gace2dbfa083773466715be25947dc4518"><td class="mdescLeft"> </td><td class="mdescRight">Returns the number of bits set to 1 in the binary representation of value. <a href="a00151.html#gace2dbfa083773466715be25947dc4518">More...</a><br /></td></tr>
|
|
<tr class="separator:gace2dbfa083773466715be25947dc4518"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga2ab9ea1a1079e80a82191edee14c06c8"><td class="memTemplParams" colspan="2">template<length_t L, typename T , qualifier P> </td></tr>
|
|
<tr class="memitem:ga2ab9ea1a1079e80a82191edee14c06c8"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL vec< L, T, P > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00151.html#ga2ab9ea1a1079e80a82191edee14c06c8">bitfieldExtract</a> (vec< L, T, P > const &Value, int Offset, int Bits)</td></tr>
|
|
<tr class="memdesc:ga2ab9ea1a1079e80a82191edee14c06c8"><td class="mdescLeft"> </td><td class="mdescRight">Extracts bits [offset, offset + bits - 1] from value, returning them in the least significant bits of the result. <a href="a00151.html#ga2ab9ea1a1079e80a82191edee14c06c8">More...</a><br /></td></tr>
|
|
<tr class="separator:ga2ab9ea1a1079e80a82191edee14c06c8"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga1136d17630ecbecb9f4a63d9749f5ee7"><td class="memTemplParams" colspan="2">template<length_t L, typename T , qualifier P> </td></tr>
|
|
<tr class="memitem:ga1136d17630ecbecb9f4a63d9749f5ee7"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL vec< L, T, P > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00151.html#ga1136d17630ecbecb9f4a63d9749f5ee7">bitfieldInsert</a> (vec< L, T, P > const &Base, vec< L, T, P > const &Insert, int Offset, int Bits)</td></tr>
|
|
<tr class="memdesc:ga1136d17630ecbecb9f4a63d9749f5ee7"><td class="mdescLeft"> </td><td class="mdescRight">Returns the insertion the bits least-significant bits of insert into base. <a href="a00151.html#ga1136d17630ecbecb9f4a63d9749f5ee7">More...</a><br /></td></tr>
|
|
<tr class="separator:ga1136d17630ecbecb9f4a63d9749f5ee7"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga524fde34694a91d2066162ab0bf17859"><td class="memTemplParams" colspan="2">template<length_t L, typename T , qualifier P> </td></tr>
|
|
<tr class="memitem:ga524fde34694a91d2066162ab0bf17859"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL vec< L, T, P > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00151.html#ga524fde34694a91d2066162ab0bf17859">bitfieldReverse</a> (vec< L, T, P > const &v)</td></tr>
|
|
<tr class="memdesc:ga524fde34694a91d2066162ab0bf17859"><td class="mdescLeft"> </td><td class="mdescRight">Returns the reversal of the bits of value. <a href="a00151.html#ga524fde34694a91d2066162ab0bf17859">More...</a><br /></td></tr>
|
|
<tr class="separator:ga524fde34694a91d2066162ab0bf17859"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:gaf74c4d969fa34ab8acb9d390f5ca5274"><td class="memTemplParams" colspan="2">template<typename genIUType > </td></tr>
|
|
<tr class="memitem:gaf74c4d969fa34ab8acb9d390f5ca5274"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL int </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00151.html#gaf74c4d969fa34ab8acb9d390f5ca5274">findLSB</a> (genIUType x)</td></tr>
|
|
<tr class="memdesc:gaf74c4d969fa34ab8acb9d390f5ca5274"><td class="mdescLeft"> </td><td class="mdescRight">Returns the bit number of the least significant bit set to 1 in the binary representation of value. <a href="a00151.html#gaf74c4d969fa34ab8acb9d390f5ca5274">More...</a><br /></td></tr>
|
|
<tr class="separator:gaf74c4d969fa34ab8acb9d390f5ca5274"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga29a63a1a0b5bcad9288e731204cd717e"><td class="memTemplParams" colspan="2">template<length_t L, typename T , qualifier P> </td></tr>
|
|
<tr class="memitem:ga29a63a1a0b5bcad9288e731204cd717e"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL vec< L, int, P > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00151.html#ga29a63a1a0b5bcad9288e731204cd717e">findLSB</a> (vec< L, T, P > const &v)</td></tr>
|
|
<tr class="memdesc:ga29a63a1a0b5bcad9288e731204cd717e"><td class="mdescLeft"> </td><td class="mdescRight">Returns the bit number of the least significant bit set to 1 in the binary representation of value. <a href="a00151.html#ga29a63a1a0b5bcad9288e731204cd717e">More...</a><br /></td></tr>
|
|
<tr class="separator:ga29a63a1a0b5bcad9288e731204cd717e"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga7e4a794d766861c70bc961630f8ef621"><td class="memTemplParams" colspan="2">template<typename genIUType > </td></tr>
|
|
<tr class="memitem:ga7e4a794d766861c70bc961630f8ef621"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL int </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00151.html#ga7e4a794d766861c70bc961630f8ef621">findMSB</a> (genIUType x)</td></tr>
|
|
<tr class="memdesc:ga7e4a794d766861c70bc961630f8ef621"><td class="mdescLeft"> </td><td class="mdescRight">Returns the bit number of the most significant bit in the binary representation of value. <a href="a00151.html#ga7e4a794d766861c70bc961630f8ef621">More...</a><br /></td></tr>
|
|
<tr class="separator:ga7e4a794d766861c70bc961630f8ef621"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga23a934e033f663a4e7173f98af1e0f73"><td class="memTemplParams" colspan="2">template<length_t L, typename T , qualifier P> </td></tr>
|
|
<tr class="memitem:ga23a934e033f663a4e7173f98af1e0f73"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL vec< L, int, P > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00151.html#ga23a934e033f663a4e7173f98af1e0f73">findMSB</a> (vec< L, T, P > const &v)</td></tr>
|
|
<tr class="memdesc:ga23a934e033f663a4e7173f98af1e0f73"><td class="mdescLeft"> </td><td class="mdescRight">Returns the bit number of the most significant bit in the binary representation of value. <a href="a00151.html#ga23a934e033f663a4e7173f98af1e0f73">More...</a><br /></td></tr>
|
|
<tr class="separator:ga23a934e033f663a4e7173f98af1e0f73"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:gada3cb816d88f9b68fb7a187effb4f974"><td class="memTemplParams" colspan="2">template<length_t L, qualifier P> </td></tr>
|
|
<tr class="memitem:gada3cb816d88f9b68fb7a187effb4f974"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL void </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00151.html#gada3cb816d88f9b68fb7a187effb4f974">imulExtended</a> (vec< L, int, P > const &x, vec< L, int, P > const &y, vec< L, int, P > &msb, vec< L, int, P > &lsb)</td></tr>
|
|
<tr class="memdesc:gada3cb816d88f9b68fb7a187effb4f974"><td class="mdescLeft"> </td><td class="mdescRight">Multiplies 32-bit integers x and y, producing a 64-bit result. <a href="a00151.html#gada3cb816d88f9b68fb7a187effb4f974">More...</a><br /></td></tr>
|
|
<tr class="separator:gada3cb816d88f9b68fb7a187effb4f974"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga2580af497d2105957cc589ffd4a853cd"><td class="memTemplParams" colspan="2">template<length_t L, qualifier P> </td></tr>
|
|
<tr class="memitem:ga2580af497d2105957cc589ffd4a853cd"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL vec< L, uint, P > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00151.html#ga2580af497d2105957cc589ffd4a853cd">uaddCarry</a> (vec< L, uint, P > const &x, vec< L, uint, P > const &y, vec< L, uint, P > &carry)</td></tr>
|
|
<tr class="memdesc:ga2580af497d2105957cc589ffd4a853cd"><td class="mdescLeft"> </td><td class="mdescRight">Adds 32-bit unsigned integer x and y, returning the sum modulo pow(2, 32). <a href="a00151.html#ga2580af497d2105957cc589ffd4a853cd">More...</a><br /></td></tr>
|
|
<tr class="separator:ga2580af497d2105957cc589ffd4a853cd"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:gac763612c0295fb7b31bd31f1b56761a8"><td class="memTemplParams" colspan="2">template<length_t L, qualifier P> </td></tr>
|
|
<tr class="memitem:gac763612c0295fb7b31bd31f1b56761a8"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL void </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00151.html#gac763612c0295fb7b31bd31f1b56761a8">umulExtended</a> (vec< L, uint, P > const &x, vec< L, uint, P > const &y, vec< L, uint, P > &msb, vec< L, uint, P > &lsb)</td></tr>
|
|
<tr class="memdesc:gac763612c0295fb7b31bd31f1b56761a8"><td class="mdescLeft"> </td><td class="mdescRight">Multiplies 32-bit integers x and y, producing a 64-bit result. <a href="a00151.html#gac763612c0295fb7b31bd31f1b56761a8">More...</a><br /></td></tr>
|
|
<tr class="separator:gac763612c0295fb7b31bd31f1b56761a8"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga6f98b07ab5cf0d1df97b34c28aafa723"><td class="memTemplParams" colspan="2">template<length_t L, qualifier P> </td></tr>
|
|
<tr class="memitem:ga6f98b07ab5cf0d1df97b34c28aafa723"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL vec< L, uint, P > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00151.html#ga6f98b07ab5cf0d1df97b34c28aafa723">usubBorrow</a> (vec< L, uint, P > const &x, vec< L, uint, P > const &y, vec< L, uint, P > &borrow)</td></tr>
|
|
<tr class="memdesc:ga6f98b07ab5cf0d1df97b34c28aafa723"><td class="mdescLeft"> </td><td class="mdescRight">Subtracts the 32-bit unsigned integer y from x, returning the difference if non-negative, or pow(2, 32) plus the difference otherwise. <a href="a00151.html#ga6f98b07ab5cf0d1df97b34c28aafa723">More...</a><br /></td></tr>
|
|
<tr class="separator:ga6f98b07ab5cf0d1df97b34c28aafa723"><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="ga44abfe3379e11cbd29425a843420d0d6"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">GLM_FUNC_DECL int glm::bitCount </td>
|
|
<td>(</td>
|
|
<td class="paramtype">genType </td>
|
|
<td class="paramname"><em>v</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">genType</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>
|
|
<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="gace2dbfa083773466715be25947dc4518"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">GLM_FUNC_DECL vec<L, int, P> glm::bitCount </td>
|
|
<td>(</td>
|
|
<td class="paramtype">vec< L, T, P > const & </td>
|
|
<td class="paramname"><em>v</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">L</td><td>An integer between 1 and 4 included that qualify the dimension of the vector. </td></tr>
|
|
<tr><td class="paramname">T</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>
|
|
<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="ga2ab9ea1a1079e80a82191edee14c06c8"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">GLM_FUNC_DECL vec<L, T, P> glm::bitfieldExtract </td>
|
|
<td>(</td>
|
|
<td class="paramtype">vec< L, T, P > const & </td>
|
|
<td class="paramname"><em>Value</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">int </td>
|
|
<td class="paramname"><em>Offset</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">int </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 - 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">L</td><td>An integer between 1 and 4 included that qualify the dimension of the vector. </td></tr>
|
|
<tr><td class="paramname">T</td><td>Signed or unsigned integer scalar 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>
|
|
<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="ga1136d17630ecbecb9f4a63d9749f5ee7"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">GLM_FUNC_DECL vec<L, T, P> glm::bitfieldInsert </td>
|
|
<td>(</td>
|
|
<td class="paramtype">vec< L, T, P > const & </td>
|
|
<td class="paramname"><em>Base</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">vec< L, T, P > const & </td>
|
|
<td class="paramname"><em>Insert</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">int </td>
|
|
<td class="paramname"><em>Offset</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">int </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 - 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">L</td><td>An integer between 1 and 4 included that qualify the dimension of the vector. </td></tr>
|
|
<tr><td class="paramname">T</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="ga524fde34694a91d2066162ab0bf17859"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">GLM_FUNC_DECL vec<L, T, P> glm::bitfieldReverse </td>
|
|
<td>(</td>
|
|
<td class="paramtype">vec< L, T, P > const & </td>
|
|
<td class="paramname"><em>v</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">L</td><td>An integer between 1 and 4 included that qualify the dimension of the vector. </td></tr>
|
|
<tr><td class="paramname">T</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="gaf74c4d969fa34ab8acb9d390f5ca5274"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">GLM_FUNC_DECL int glm::findLSB </td>
|
|
<td>(</td>
|
|
<td class="paramtype">genIUType </td>
|
|
<td class="paramname"><em>x</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 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>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="ga29a63a1a0b5bcad9288e731204cd717e"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">GLM_FUNC_DECL vec<L, int, P> glm::findLSB </td>
|
|
<td>(</td>
|
|
<td class="paramtype">vec< L, T, P > const & </td>
|
|
<td class="paramname"><em>v</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">L</td><td>An integer between 1 and 4 included that qualify the dimension of the vector. </td></tr>
|
|
<tr><td class="paramname">T</td><td>Signed or unsigned integer scalar 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>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="ga7e4a794d766861c70bc961630f8ef621"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">GLM_FUNC_DECL int glm::findMSB </td>
|
|
<td>(</td>
|
|
<td class="paramtype">genIUType </td>
|
|
<td class="paramname"><em>x</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 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>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="ga23a934e033f663a4e7173f98af1e0f73"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">GLM_FUNC_DECL vec<L, int, P> glm::findMSB </td>
|
|
<td>(</td>
|
|
<td class="paramtype">vec< L, T, P > const & </td>
|
|
<td class="paramname"><em>v</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">L</td><td>An integer between 1 and 4 included that qualify the dimension of the vector. </td></tr>
|
|
<tr><td class="paramname">T</td><td>Signed or unsigned integer scalar 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>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="gada3cb816d88f9b68fb7a187effb4f974"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">GLM_FUNC_DECL void glm::imulExtended </td>
|
|
<td>(</td>
|
|
<td class="paramtype">vec< L, int, P > const & </td>
|
|
<td class="paramname"><em>x</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">vec< L, int, P > const & </td>
|
|
<td class="paramname"><em>y</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">vec< L, int, P > & </td>
|
|
<td class="paramname"><em>msb</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">vec< L, int, P > & </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">L</td><td>An integer between 1 and 4 included that qualify the dimension of the vector.</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="ga2580af497d2105957cc589ffd4a853cd"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">GLM_FUNC_DECL vec<L, uint, P> glm::uaddCarry </td>
|
|
<td>(</td>
|
|
<td class="paramtype">vec< L, <a class="el" href="a00160.html#ga91ad9478d81a7aaf2593e8d9c3d06a14">uint</a>, P > const & </td>
|
|
<td class="paramname"><em>x</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">vec< L, <a class="el" href="a00160.html#ga91ad9478d81a7aaf2593e8d9c3d06a14">uint</a>, P > const & </td>
|
|
<td class="paramname"><em>y</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">vec< L, <a class="el" href="a00160.html#ga91ad9478d81a7aaf2593e8d9c3d06a14">uint</a>, P > & </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">L</td><td>An integer between 1 and 4 included that qualify the dimension of the vector.</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="gac763612c0295fb7b31bd31f1b56761a8"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">GLM_FUNC_DECL void glm::umulExtended </td>
|
|
<td>(</td>
|
|
<td class="paramtype">vec< L, <a class="el" href="a00160.html#ga91ad9478d81a7aaf2593e8d9c3d06a14">uint</a>, P > const & </td>
|
|
<td class="paramname"><em>x</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">vec< L, <a class="el" href="a00160.html#ga91ad9478d81a7aaf2593e8d9c3d06a14">uint</a>, P > const & </td>
|
|
<td class="paramname"><em>y</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">vec< L, <a class="el" href="a00160.html#ga91ad9478d81a7aaf2593e8d9c3d06a14">uint</a>, P > & </td>
|
|
<td class="paramname"><em>msb</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">vec< L, <a class="el" href="a00160.html#ga91ad9478d81a7aaf2593e8d9c3d06a14">uint</a>, P > & </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">L</td><td>An integer between 1 and 4 included that qualify the dimension of the vector.</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="ga6f98b07ab5cf0d1df97b34c28aafa723"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">GLM_FUNC_DECL vec<L, uint, P> glm::usubBorrow </td>
|
|
<td>(</td>
|
|
<td class="paramtype">vec< L, <a class="el" href="a00160.html#ga91ad9478d81a7aaf2593e8d9c3d06a14">uint</a>, P > const & </td>
|
|
<td class="paramname"><em>x</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">vec< L, <a class="el" href="a00160.html#ga91ad9478d81a7aaf2593e8d9c3d06a14">uint</a>, P > const & </td>
|
|
<td class="paramname"><em>y</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">vec< L, <a class="el" href="a00160.html#ga91ad9478d81a7aaf2593e8d9c3d06a14">uint</a>, P > & </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">L</td><td>An integer between 1 and 4 included that qualify the dimension of the vector.</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 -->
|
|
<!-- 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.10
|
|
</small></address>
|
|
</body>
|
|
</html>
|