<ahref="a00449.html">Go to the documentation of this file.</a><divclass="fragment"><divclass="line"><aname="l00001"></a><spanclass="lineno"> 1</span> </div><divclass="line"><aname="l00013"></a><spanclass="lineno"> 13</span> <spanclass="preprocessor">#pragma once</span></div><divclass="line"><aname="l00014"></a><spanclass="lineno"> 14</span> </div><divclass="line"><aname="l00015"></a><spanclass="lineno"> 15</span> <spanclass="comment">// Dependencies</span></div><divclass="line"><aname="l00016"></a><spanclass="lineno"> 16</span> <spanclass="preprocessor">#include "../gtc/bitfield.hpp"</span></div><divclass="line"><aname="l00017"></a><spanclass="lineno"> 17</span> </div><divclass="line"><aname="l00018"></a><spanclass="lineno"> 18</span> <spanclass="preprocessor">#ifndef GLM_ENABLE_EXPERIMENTAL</span></div><divclass="line"><aname="l00019"></a><spanclass="lineno"> 19</span> <spanclass="preprocessor"># error "GLM: GLM_GTX_bit is an experimental extension and may change in the future. Use #define GLM_ENABLE_EXPERIMENTAL before including it, if you really want to use it."</span></div><divclass="line"><aname="l00020"></a><spanclass="lineno"> 20</span> <spanclass="preprocessor">#endif</span></div><divclass="line"><aname="l00021"></a><spanclass="lineno"> 21</span> </div><divclass="line"><aname="l00022"></a><spanclass="lineno"> 22</span> <spanclass="preprocessor">#if GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED)</span></div><divclass="line"><aname="l00023"></a><spanclass="lineno"> 23</span> <spanclass="preprocessor"># pragma message("GLM: GLM_GTX_bit extension is deprecated, include GLM_GTC_bitfield and GLM_GTC_integer instead")</span></div><divclass="line"><aname="l00024"></a><spanclass="lineno"> 24</span> <spanclass="preprocessor">#endif</span></div><divclass="line"><aname="l00025"></a><spanclass="lineno"> 25</span> </div><divclass="line"><aname="l00026"></a><spanclass="lineno"> 26</span> <spanclass="keyword">namespace </span><aclass="code"href="a00792.html">glm</a></div><divclass="line"><aname="l00027"></a><spanclass="lineno"> 27</span> {</div><divclass="line"><aname="l00030"></a><spanclass="lineno"> 30</span> </div><divclass="line"><aname="l00032"></a><spanclass="lineno"> 32</span> <spanclass="keyword">template</span><<spanclass="keyword">typename</span> genIUType></div><divclass="line"><aname="l00033"></a><spanclass="lineno"> 33</span>  GLM_FUNC_DECL genIUType <aclass="code"href="a00726.html#ga898ef075ccf809a1e480faab48fe96bf">highestBitValue</a>(genIUType Value);</div><divclass="line"><aname="l00034"></a><spanclass="lineno"> 34</span> </div><divclass="line"><aname="l00036"></a><spanclass="lineno"> 36</span> <spanclass="keyword">template</span><<spanclass="keyword">typename</span> genIUType></div><divclass="line"><aname="l00037"></a><spanclass="lineno"> 37</span>  GLM_FUNC_DECL genIUType <aclass="code"href="a00726.html#ga2ff6568089f3a9b67f5c30918855fc6f">lowestBitValue</a>(genIUType Value);</div><divclass="line"><aname="l00038"></a><spanclass="lineno"> 38</span> </div><divclass="line"><aname="l00042"></a><spanclass="lineno"> 42</span> <spanclass="keyword">template</span><length_t L, <spanclass="keyword">typename</span> T, qualifier Q></div><divclass="line"><aname="l00043"></a><spanclass="lineno"> 43</span>  GLM_FUNC_DECL vec<L, T, Q><aclass="code"href="a00726.html#ga898ef075ccf809a1e480faab48fe96bf">highestBitValue</a>(vec<L, T, Q><spanclass="keyword">const</span>& value);</div><divclass="line"><aname="l00044"></a><spanclass="lineno"> 44</span> </div><divclass="line"><aname="l00050"></a><spanclass="lineno"> 50</span> <spanclass="keyword">template</span><<spanclass="keyword">typename</span> genIUType></div><divcla
<divclass="ttc"id="a00726_html_ga898ef075ccf809a1e480faab48fe96bf"><divclass="ttname"><ahref="a00726.html#ga898ef075ccf809a1e480faab48fe96bf">glm::highestBitValue</a></div><divclass="ttdeci">GLM_FUNC_DECL vec< L, T, Q > highestBitValue(vec< L, T, Q > const &value)</div><divclass="ttdoc">Find the highest bit set to 1 in a integer variable and return its value. </div></div>
<divclass="ttc"id="a00726_html_ga2bbded187c5febfefc1e524ba31b3fab"><divclass="ttname"><ahref="a00726.html#ga2bbded187c5febfefc1e524ba31b3fab">glm::powerOfTwoAbove</a></div><divclass="ttdeci">GLM_DEPRECATED GLM_FUNC_DECL vec< L, T, Q > powerOfTwoAbove(vec< L, T, Q > const &value)</div><divclass="ttdoc">Return the power of two number which value is just higher the input value. </div></div>
<divclass="ttc"id="a00726_html_gaf78ddcc4152c051b2a21e68fecb10980"><divclass="ttname"><ahref="a00726.html#gaf78ddcc4152c051b2a21e68fecb10980">glm::powerOfTwoBelow</a></div><divclass="ttdeci">GLM_DEPRECATED GLM_FUNC_DECL vec< L, T, Q > powerOfTwoBelow(vec< L, T, Q > const &value)</div><divclass="ttdoc">Return the power of two number which value is just lower the input value. </div></div>