<ahref="opj__intmath_8h.html">Go to the documentation of this file.</a><divclass="fragment"><divclass="line"><aname="l00001"></a><spanclass="lineno"> 1</span> <spanclass="comment">/*</span></div>
<divclass="line"><aname="l00002"></a><spanclass="lineno"> 2</span> <spanclass="comment"> * The copyright in this software is being made available under the 2-clauses </span></div>
<divclass="line"><aname="l00003"></a><spanclass="lineno"> 3</span> <spanclass="comment"> * BSD License, included below. This software may be subject to other third </span></div>
<divclass="line"><aname="l00004"></a><spanclass="lineno"> 4</span> <spanclass="comment"> * party and contributor rights, including patent rights, and no such rights</span></div>
<divclass="line"><aname="l00005"></a><spanclass="lineno"> 5</span> <spanclass="comment"> * are granted under this license.</span></div>
<divclass="line"><aname="l00016"></a><spanclass="lineno"> 16</span> <spanclass="comment"> * Redistribution and use in source and binary forms, with or without</span></div>
<divclass="line"><aname="l00017"></a><spanclass="lineno"> 17</span> <spanclass="comment"> * modification, are permitted provided that the following conditions</span></div>
<divclass="line"><aname="l00018"></a><spanclass="lineno"> 18</span> <spanclass="comment"> * are met:</span></div>
<divclass="line"><aname="l00019"></a><spanclass="lineno"> 19</span> <spanclass="comment"> * 1. Redistributions of source code must retain the above copyright</span></div>
<divclass="line"><aname="l00020"></a><spanclass="lineno"> 20</span> <spanclass="comment"> * notice, this list of conditions and the following disclaimer.</span></div>
<divclass="line"><aname="l00021"></a><spanclass="lineno"> 21</span> <spanclass="comment"> * 2. Redistributions in binary form must reproduce the above copyright</span></div>
<divclass="line"><aname="l00022"></a><spanclass="lineno"> 22</span> <spanclass="comment"> * notice, this list of conditions and the following disclaimer in the</span></div>
<divclass="line"><aname="l00023"></a><spanclass="lineno"> 23</span> <spanclass="comment"> * documentation and/or other materials provided with the distribution.</span></div>
<divclass="line"><aname="l00025"></a><spanclass="lineno"> 25</span> <spanclass="comment"> * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS `AS IS'</span></div>
<divclass="line"><aname="l00026"></a><spanclass="lineno"> 26</span> <spanclass="comment"> * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE</span></div>
<divclass="line"><aname="l00027"></a><spanclass="lineno"> 27</span> <spanclass="comment"> * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE</span></div>
<divclass="line"><aname="l00028"></a><spanclass="lineno"> 28</span> <spanclass="comment"> * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE</span></div>
<divclass="line"><aname="l00029"></a><spanclass="lineno"> 29</span> <spanclass="comment"> * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR</span></div>
<divclass="line"><aname="l00030"></a><spanclass="lineno"> 30</span> <spanclass="comment"> * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF</span></div>
<divclass="line"><aname="l00031"></a><spanclass="lineno"> 31</span> <spanclass="comment"> * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS</span></div>
<divclass="line"><aname="l00032"></a><spanclass="lineno"> 32</span> <spanclass="comment"> * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN</span></div>
<divclass="line"><aname="l00033"></a><spanclass="lineno"> 33</span> <spanclass="comment"> * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)</span></div>
<divclass="line"><aname="l00034"></a><spanclass="lineno"> 34</span> <spanclass="comment"> * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE</span></div>
<divclass="line"><aname="l00035"></a><spanclass="lineno"> 35</span> <spanclass="comment"> * POSSIBILITY OF SUCH DAMAGE.</span></div>
<divclass="line"><aname="l00056"></a><spanclass="lineno"><aclass="line"href="group___o_p_j___i_n_t_m_a_t_h.html#gaac315c40dca690742df538fcc21d4f91"> 56</a></span> <spanclass="keyword">static</span><aclass="code"href="openjpeg_8h.html#a2eb6f9e0395b47b8d5e3eeae4fe0c116">INLINE</a><aclass="code"href="openjpeg_8h.html#a3cec91ef9e73677f0dbd60d4e42401b9">OPJ_INT32</a><aclass="code"href="group___o_p_j___i_n_t_m_a_t_h.html#gaac315c40dca690742df538fcc21d4f91">opj_int_min</a>(<aclass="code"href="openjpeg_8h.html#a3cec91ef9e73677f0dbd60d4e42401b9">OPJ_INT32</a> a, <aclass="code"href="openjpeg_8h.html#a3cec91ef9e73677f0dbd60d4e42401b9">OPJ_INT32</a> b) {</div>
<divclass="line"><aname="l00057"></a><spanclass="lineno"> 57</span> <spanclass="keywordflow">return</span> a < b ? a : b;</div>
<divclass="line"><aname="l00064"></a><spanclass="lineno"><aclass="line"href="group___o_p_j___i_n_t_m_a_t_h.html#ga06c1c4470f9765a3ed04963b0daa111a"> 64</a></span> <spanclass="keyword">static</span><aclass="code"href="openjpeg_8h.html#a2eb6f9e0395b47b8d5e3eeae4fe0c116">INLINE</a><aclass="code"href="openjpeg_8h.html#a4cb1e6e6b6ef2df499d5c02f7df54cbb">OPJ_UINT32</a><aclass="code"href="group___o_p_j___i_n_t_m_a_t_h.html#ga06c1c4470f9765a3ed04963b0daa111a">opj_uint_min</a>(<aclass="code"href="openjpeg_8h.html#a4cb1e6e6b6ef2df499d5c02f7df54cbb">OPJ_UINT32</a> a, <aclass="code"href="openjpeg_8h.html#a4cb1e6e6b6ef2df499d5c02f7df54cbb">OPJ_UINT32</a> b) {</div>
<divclass="line"><aname="l00065"></a><spanclass="lineno"> 65</span> <spanclass="keywordflow">return</span> a < b ? a : b;</div>
<divclass="line"><aname="l00072"></a><spanclass="lineno"><aclass="line"href="group___o_p_j___i_n_t_m_a_t_h.html#ga2f7d5c3934ee6be38763652b7f80ea6c"> 72</a></span> <spanclass="keyword">static</span><aclass="code"href="openjpeg_8h.html#a2eb6f9e0395b47b8d5e3eeae4fe0c116">INLINE</a><aclass="code"href="openjpeg_8h.html#a3cec91ef9e73677f0dbd60d4e42401b9">OPJ_INT32</a><aclass="code"href="group___o_p_j___i_n_t_m_a_t_h.html#ga2f7d5c3934ee6be38763652b7f80ea6c">opj_int_max</a>(<aclass="code"href="openjpeg_8h.html#a3cec91ef9e73677f0dbd60d4e42401b9">OPJ_INT32</a> a, <aclass="code"href="openjpeg_8h.html#a3cec91ef9e73677f0dbd60d4e42401b9">OPJ_INT32</a> b) {</div>
<divclass="line"><aname="l00073"></a><spanclass="lineno"> 73</span> <spanclass="keywordflow">return</span> (a > b) ? a : b;</div>
<divclass="line"><aname="l00080"></a><spanclass="lineno"><aclass="line"href="group___o_p_j___i_n_t_m_a_t_h.html#ga2c3eb35fddab83fef25256485b926fc0"> 80</a></span> <spanclass="keyword">static</span><aclass="code"href="openjpeg_8h.html#a2eb6f9e0395b47b8d5e3eeae4fe0c116">INLINE</a><aclass="code"href="openjpeg_8h.html#a4cb1e6e6b6ef2df499d5c02f7df54cbb">OPJ_UINT32</a><aclass="code"href="group___o_p_j___i_n_t_m_a_t_h.html#ga2c3eb35fddab83fef25256485b926fc0">opj_uint_max</a>(<aclass="code"href="openjpeg_8h.html#a4cb1e6e6b6ef2df499d5c02f7df54cbb">OPJ_UINT32</a> a, <aclass="code"href="openjpeg_8h.html#a4cb1e6e6b6ef2df499d5c02f7df54cbb">OPJ_UINT32</a> b) {</div>
<divclass="line"><aname="l00081"></a><spanclass="lineno"> 81</span> <spanclass="keywordflow">return</span> (a > b) ? a : b;</div>
<divclass="line"><aname="l00088"></a><spanclass="lineno"><aclass="line"href="group___o_p_j___i_n_t_m_a_t_h.html#gab9aad885f5c9bc9e39420003b2b32fe5"> 88</a></span> <spanclass="keyword">static</span><aclass="code"href="openjpeg_8h.html#a2eb6f9e0395b47b8d5e3eeae4fe0c116">INLINE</a><aclass="code"href="openjpeg_8h.html#a4cb1e6e6b6ef2df499d5c02f7df54cbb">OPJ_UINT32</a><aclass="code"href="group___o_p_j___i_n_t_m_a_t_h.html#gab9aad885f5c9bc9e39420003b2b32fe5">opj_uint_adds</a>(<aclass="code"href="openjpeg_8h.html#a4cb1e6e6b6ef2df499d5c02f7df54cbb">OPJ_UINT32</a> a, <aclass="code"href="openjpeg_8h.html#a4cb1e6e6b6ef2df499d5c02f7df54cbb">OPJ_UINT32</a> b) {</div>
<divclass="line"><aname="l00089"></a><spanclass="lineno"> 89</span> <aclass="code"href="openjpeg_8h.html#ad915cf26c4c9cc10a75b2d9287dbbb5e">OPJ_UINT64</a> sum = (<aclass="code"href="openjpeg_8h.html#ad915cf26c4c9cc10a75b2d9287dbbb5e">OPJ_UINT64</a>)a + (<aclass="code"href="openjpeg_8h.html#ad915cf26c4c9cc10a75b2d9287dbbb5e">OPJ_UINT64</a>)b;</div>
<divclass="line"><aname="l00112"></a><spanclass="lineno"><aclass="line"href="group___o_p_j___i_n_t_m_a_t_h.html#gacaef279a9031adbd9319990646328a01"> 112</a></span> <spanclass="keyword">static</span><aclass="code"href="openjpeg_8h.html#a2eb6f9e0395b47b8d5e3eeae4fe0c116">INLINE</a><aclass="code"href="openjpeg_8h.html#a3cec91ef9e73677f0dbd60d4e42401b9">OPJ_INT32</a><aclass="code"href="group___o_p_j___i_n_t_m_a_t_h.html#gacaef279a9031adbd9319990646328a01">opj_int_abs</a>(<aclass="code"href="openjpeg_8h.html#a3cec91ef9e73677f0dbd60d4e42401b9">OPJ_INT32</a> a) {</div>
<divclass="line"><aname="l00113"></a><spanclass="lineno"> 113</span> <spanclass="keywordflow">return</span> a < 0 ? -a : a;</div>
<divclass="line"><aname="l00119"></a><spanclass="lineno"><aclass="line"href="group___o_p_j___i_n_t_m_a_t_h.html#gab00a7c3619b5af7595961047baff120e"> 119</a></span> <spanclass="keyword">static</span><aclass="code"href="openjpeg_8h.html#a2eb6f9e0395b47b8d5e3eeae4fe0c116">INLINE</a><aclass="code"href="openjpeg_8h.html#a3cec91ef9e73677f0dbd60d4e42401b9">OPJ_INT32</a><aclass="code"href="group___o_p_j___i_n_t_m_a_t_h.html#gab00a7c3619b5af7595961047baff120e">opj_int_ceildiv</a>(<aclass="code"href="openjpeg_8h.html#a3cec91ef9e73677f0dbd60d4e42401b9">OPJ_INT32</a> a, <aclass="code"href="openjpeg_8h.html#a3cec91ef9e73677f0dbd60d4e42401b9">OPJ_INT32</a> b) {</div>
<divclass="line"><aname="l00128"></a><spanclass="lineno"><aclass="line"href="group___o_p_j___i_n_t_m_a_t_h.html#gae4b2e5a7c8b8f09faacc4a895f866ea1"> 128</a></span> <spanclass="keyword">static</span><aclass="code"href="openjpeg_8h.html#a2eb6f9e0395b47b8d5e3eeae4fe0c116">INLINE</a><aclass="code"href="openjpeg_8h.html#a4cb1e6e6b6ef2df499d5c02f7df54cbb">OPJ_UINT32</a><aclass="code"href="group___o_p_j___i_n_t_m_a_t_h.html#gae4b2e5a7c8b8f09faacc4a895f866ea1">opj_uint_ceildiv</a>(<aclass="code"href="openjpeg_8h.html#a4cb1e6e6b6ef2df499d5c02f7df54cbb">OPJ_UINT32</a> a, <aclass="code"href="openjpeg_8h.html#a4cb1e6e6b6ef2df499d5c02f7df54cbb">OPJ_UINT32</a> b) {</div>
<divclass="line"><aname="l00137"></a><spanclass="lineno"><aclass="line"href="group___o_p_j___i_n_t_m_a_t_h.html#gaaa1e441dec325d33ccd86aa7ca8ccfdc"> 137</a></span> <spanclass="keyword">static</span><aclass="code"href="openjpeg_8h.html#a2eb6f9e0395b47b8d5e3eeae4fe0c116">INLINE</a><aclass="code"href="openjpeg_8h.html#a3cec91ef9e73677f0dbd60d4e42401b9">OPJ_INT32</a><aclass="code"href="group___o_p_j___i_n_t_m_a_t_h.html#gaaa1e441dec325d33ccd86aa7ca8ccfdc">opj_int_ceildivpow2</a>(<aclass="code"href="openjpeg_8h.html#a3cec91ef9e73677f0dbd60d4e42401b9">OPJ_INT32</a> a, <aclass="code"href="openjpeg_8h.html#a3cec91ef9e73677f0dbd60d4e42401b9">OPJ_INT32</a> b) {</div>
<divclass="line"><aname="l00145"></a><spanclass="lineno"><aclass="line"href="group___o_p_j___i_n_t_m_a_t_h.html#ga6881e82a881556059d14d265a8d0aa25"> 145</a></span> <spanclass="keyword">static</span><aclass="code"href="openjpeg_8h.html#a2eb6f9e0395b47b8d5e3eeae4fe0c116">INLINE</a><aclass="code"href="openjpeg_8h.html#a3cec91ef9e73677f0dbd60d4e42401b9">OPJ_INT32</a><aclass="code"href="group___o_p_j___i_n_t_m_a_t_h.html#ga6881e82a881556059d14d265a8d0aa25">opj_int64_ceildivpow2</a>(<aclass="code"href="openjpeg_8h.html#a871a81193cb4972db35948edd67360bd">OPJ_INT64</a> a, <aclass="code"href="openjpeg_8h.html#a3cec91ef9e73677f0dbd60d4e42401b9">OPJ_INT32</a> b) {</div>
<divclass="line"><aname="l00153"></a><spanclass="lineno"><aclass="line"href="group___o_p_j___i_n_t_m_a_t_h.html#gae592eb75f221decddec51834b6c4177d"> 153</a></span> <spanclass="keyword">static</span><aclass="code"href="openjpeg_8h.html#a2eb6f9e0395b47b8d5e3eeae4fe0c116">INLINE</a><aclass="code"href="openjpeg_8h.html#a4cb1e6e6b6ef2df499d5c02f7df54cbb">OPJ_UINT32</a><aclass="code"href="group___o_p_j___i_n_t_m_a_t_h.html#gae592eb75f221decddec51834b6c4177d">opj_uint_ceildivpow2</a>(<aclass="code"href="openjpeg_8h.html#a4cb1e6e6b6ef2df499d5c02f7df54cbb">OPJ_UINT32</a> a, <aclass="code"href="openjpeg_8h.html#a4cb1e6e6b6ef2df499d5c02f7df54cbb">OPJ_UINT32</a> b) {</div>
<divclass="line"><aname="l00161"></a><spanclass="lineno"><aclass="line"href="group___o_p_j___i_n_t_m_a_t_h.html#gabdf6c78f5b60afd230901e5e0c57f491"> 161</a></span> <spanclass="keyword">static</span><aclass="code"href="openjpeg_8h.html#a2eb6f9e0395b47b8d5e3eeae4fe0c116">INLINE</a><aclass="code"href="openjpeg_8h.html#a3cec91ef9e73677f0dbd60d4e42401b9">OPJ_INT32</a><aclass="code"href="group___o_p_j___i_n_t_m_a_t_h.html#gabdf6c78f5b60afd230901e5e0c57f491">opj_int_floordivpow2</a>(<aclass="code"href="openjpeg_8h.html#a3cec91ef9e73677f0dbd60d4e42401b9">OPJ_INT32</a> a, <aclass="code"href="openjpeg_8h.html#a3cec91ef9e73677f0dbd60d4e42401b9">OPJ_INT32</a> b) {</div>
<divclass="line"><aname="l00162"></a><spanclass="lineno"> 162</span> <spanclass="keywordflow">return</span> a >> b;</div>
<divclass="line"><aname="l00168"></a><spanclass="lineno"><aclass="line"href="group___o_p_j___i_n_t_m_a_t_h.html#gaa6a55d57af96308459f6de414227ae40"> 168</a></span> <spanclass="keyword">static</span><aclass="code"href="openjpeg_8h.html#a2eb6f9e0395b47b8d5e3eeae4fe0c116">INLINE</a><aclass="code"href="openjpeg_8h.html#a3cec91ef9e73677f0dbd60d4e42401b9">OPJ_INT32</a><aclass="code"href="group___o_p_j___i_n_t_m_a_t_h.html#gaa6a55d57af96308459f6de414227ae40">opj_int_floorlog2</a>(<aclass="code"href="openjpeg_8h.html#a3cec91ef9e73677f0dbd60d4e42401b9">OPJ_INT32</a> a) {</div>
<divclass="line"><aname="l00179"></a><spanclass="lineno"><aclass="line"href="group___o_p_j___i_n_t_m_a_t_h.html#ga91ef25eaa56320684de5d1e3a4097823"> 179</a></span> <spanclass="keyword">static</span><aclass="code"href="openjpeg_8h.html#a2eb6f9e0395b47b8d5e3eeae4fe0c116">INLINE</a><aclass="code"href="openjpeg_8h.html#a4cb1e6e6b6ef2df499d5c02f7df54cbb">OPJ_UINT32</a><aclass="code"href="group___o_p_j___i_n_t_m_a_t_h.html#ga91ef25eaa56320684de5d1e3a4097823">opj_uint_floorlog2</a>(<aclass="code"href="openjpeg_8h.html#a4cb1e6e6b6ef2df499d5c02f7df54cbb">OPJ_UINT32</a> a) {</div>
<divclass="line"><aname="l00194"></a><spanclass="lineno"><aclass="line"href="group___o_p_j___i_n_t_m_a_t_h.html#gaa2130d6482126a20e6680f82b254857b"> 194</a></span> <spanclass="keyword">static</span><aclass="code"href="openjpeg_8h.html#a2eb6f9e0395b47b8d5e3eeae4fe0c116">INLINE</a><aclass="code"href="openjpeg_8h.html#a3cec91ef9e73677f0dbd60d4e42401b9">OPJ_INT32</a><aclass="code"href="group___o_p_j___i_n_t_m_a_t_h.html#gaa2130d6482126a20e6680f82b254857b">opj_int_fix_mul</a>(<aclass="code"href="openjpeg_8h.html#a3cec91ef9e73677f0dbd60d4e42401b9">OPJ_INT32</a> a, <aclass="code"href="openjpeg_8h.html#a3cec91ef9e73677f0dbd60d4e42401b9">OPJ_INT32</a> b) {</div>
<divclass="line"><aname="l00198"></a><spanclass="lineno"> 198</span> <aclass="code"href="openjpeg_8h.html#a871a81193cb4972db35948edd67360bd">OPJ_INT64</a> temp = (<aclass="code"href="openjpeg_8h.html#a871a81193cb4972db35948edd67360bd">OPJ_INT64</a>) a * (<aclass="code"href="openjpeg_8h.html#a871a81193cb4972db35948edd67360bd">OPJ_INT64</a>) b ;</div>
<divclass="line"><aname="l00206"></a><spanclass="lineno"><aclass="line"href="group___o_p_j___i_n_t_m_a_t_h.html#ga5ce489e764483d741e8953475341ba14"> 206</a></span> <spanclass="keyword">static</span><aclass="code"href="openjpeg_8h.html#a2eb6f9e0395b47b8d5e3eeae4fe0c116">INLINE</a><aclass="code"href="openjpeg_8h.html#a3cec91ef9e73677f0dbd60d4e42401b9">OPJ_INT32</a><aclass="code"href="group___o_p_j___i_n_t_m_a_t_h.html#ga5ce489e764483d741e8953475341ba14">opj_int_fix_mul_t1</a>(<aclass="code"href="openjpeg_8h.html#a3cec91ef9e73677f0dbd60d4e42401b9">OPJ_INT32</a> a, <aclass="code"href="openjpeg_8h.html#a3cec91ef9e73677f0dbd60d4e42401b9">OPJ_INT32</a> b) {</div>
<divclass="line"><aname="l00210"></a><spanclass="lineno"> 210</span> <aclass="code"href="openjpeg_8h.html#a871a81193cb4972db35948edd67360bd">OPJ_INT64</a> temp = (<aclass="code"href="openjpeg_8h.html#a871a81193cb4972db35948edd67360bd">OPJ_INT64</a>) a * (<aclass="code"href="openjpeg_8h.html#a871a81193cb4972db35948edd67360bd">OPJ_INT64</a>) b ;</div>
<divclass="ttc"id="group___o_p_j___i_n_t_m_a_t_h_html_gaac315c40dca690742df538fcc21d4f91"><divclass="ttname"><ahref="group___o_p_j___i_n_t_m_a_t_h.html#gaac315c40dca690742df538fcc21d4f91">opj_int_min</a></div><divclass="ttdeci">static INLINE OPJ_INT32 opj_int_min(OPJ_INT32 a, OPJ_INT32 b)</div><divclass="ttdoc">Get the minimum of two integers. </div><divclass="ttdef"><b>Definition:</b> opj_intmath.h:56</div></div>
<divclass="ttc"id="group___o_p_j___i_n_t_m_a_t_h_html_gabdf6c78f5b60afd230901e5e0c57f491"><divclass="ttname"><ahref="group___o_p_j___i_n_t_m_a_t_h.html#gabdf6c78f5b60afd230901e5e0c57f491">opj_int_floordivpow2</a></div><divclass="ttdeci">static INLINE OPJ_INT32 opj_int_floordivpow2(OPJ_INT32 a, OPJ_INT32 b)</div><divclass="ttdoc">Divide an integer by a power of 2 and round downwards. </div><divclass="ttdef"><b>Definition:</b> opj_intmath.h:161</div></div>
<divclass="ttc"id="group___o_p_j___i_n_t_m_a_t_h_html_gae4b2e5a7c8b8f09faacc4a895f866ea1"><divclass="ttname"><ahref="group___o_p_j___i_n_t_m_a_t_h.html#gae4b2e5a7c8b8f09faacc4a895f866ea1">opj_uint_ceildiv</a></div><divclass="ttdeci">static INLINE OPJ_UINT32 opj_uint_ceildiv(OPJ_UINT32 a, OPJ_UINT32 b)</div><divclass="ttdoc">Divide an integer and round upwards. </div><divclass="ttdef"><b>Definition:</b> opj_intmath.h:128</div></div>
<divclass="ttc"id="group___o_p_j___i_n_t_m_a_t_h_html_ga6881e82a881556059d14d265a8d0aa25"><divclass="ttname"><ahref="group___o_p_j___i_n_t_m_a_t_h.html#ga6881e82a881556059d14d265a8d0aa25">opj_int64_ceildivpow2</a></div><divclass="ttdeci">static INLINE OPJ_INT32 opj_int64_ceildivpow2(OPJ_INT64 a, OPJ_INT32 b)</div><divclass="ttdoc">Divide a 64bits integer by a power of 2 and round upwards. </div><divclass="ttdef"><b>Definition:</b> opj_intmath.h:145</div></div>
<divclass="ttc"id="group___o_p_j___i_n_t_m_a_t_h_html_gaaa1e441dec325d33ccd86aa7ca8ccfdc"><divclass="ttname"><ahref="group___o_p_j___i_n_t_m_a_t_h.html#gaaa1e441dec325d33ccd86aa7ca8ccfdc">opj_int_ceildivpow2</a></div><divclass="ttdeci">static INLINE OPJ_INT32 opj_int_ceildivpow2(OPJ_INT32 a, OPJ_INT32 b)</div><divclass="ttdoc">Divide an integer by a power of 2 and round upwards. </div><divclass="ttdef"><b>Definition:</b> opj_intmath.h:137</div></div>
<divclass="ttc"id="group___o_p_j___i_n_t_m_a_t_h_html_ga06c1c4470f9765a3ed04963b0daa111a"><divclass="ttname"><ahref="group___o_p_j___i_n_t_m_a_t_h.html#ga06c1c4470f9765a3ed04963b0daa111a">opj_uint_min</a></div><divclass="ttdeci">static INLINE OPJ_UINT32 opj_uint_min(OPJ_UINT32 a, OPJ_UINT32 b)</div><divclass="ttdoc">Get the minimum of two integers. </div><divclass="ttdef"><b>Definition:</b> opj_intmath.h:64</div></div>
<divclass="ttc"id="group___o_p_j___i_n_t_m_a_t_h_html_gaa6a55d57af96308459f6de414227ae40"><divclass="ttname"><ahref="group___o_p_j___i_n_t_m_a_t_h.html#gaa6a55d57af96308459f6de414227ae40">opj_int_floorlog2</a></div><divclass="ttdeci">static INLINE OPJ_INT32 opj_int_floorlog2(OPJ_INT32 a)</div><divclass="ttdoc">Get logarithm of an integer and round downwards. </div><divclass="ttdef"><b>Definition:</b> opj_intmath.h:168</div></div>
<divclass="ttc"id="group___o_p_j___i_n_t_m_a_t_h_html_ga91ef25eaa56320684de5d1e3a4097823"><divclass="ttname"><ahref="group___o_p_j___i_n_t_m_a_t_h.html#ga91ef25eaa56320684de5d1e3a4097823">opj_uint_floorlog2</a></div><divclass="ttdeci">static INLINE OPJ_UINT32 opj_uint_floorlog2(OPJ_UINT32 a)</div><divclass="ttdoc">Get logarithm of an integer and round downwards. </div><divclass="ttdef"><b>Definition:</b> opj_intmath.h:179</div></div>
<divclass="ttc"id="group___o_p_j___i_n_t_m_a_t_h_html_ga2f7d5c3934ee6be38763652b7f80ea6c"><divclass="ttname"><ahref="group___o_p_j___i_n_t_m_a_t_h.html#ga2f7d5c3934ee6be38763652b7f80ea6c">opj_int_max</a></div><divclass="ttdeci">static INLINE OPJ_INT32 opj_int_max(OPJ_INT32 a, OPJ_INT32 b)</div><divclass="ttdoc">Get the maximum of two integers. </div><divclass="ttdef"><b>Definition:</b> opj_intmath.h:72</div></div>
<divclass="ttc"id="group___o_p_j___i_n_t_m_a_t_h_html_gaa2130d6482126a20e6680f82b254857b"><divclass="ttname"><ahref="group___o_p_j___i_n_t_m_a_t_h.html#gaa2130d6482126a20e6680f82b254857b">opj_int_fix_mul</a></div><divclass="ttdeci">static INLINE OPJ_INT32 opj_int_fix_mul(OPJ_INT32 a, OPJ_INT32 b)</div><divclass="ttdoc">Multiply two fixed-precision rational numbers. </div><divclass="ttdef"><b>Definition:</b> opj_intmath.h:194</div></div>
<divclass="ttc"id="group___o_p_j___i_n_t_m_a_t_h_html_gae592eb75f221decddec51834b6c4177d"><divclass="ttname"><ahref="group___o_p_j___i_n_t_m_a_t_h.html#gae592eb75f221decddec51834b6c4177d">opj_uint_ceildivpow2</a></div><divclass="ttdeci">static INLINE OPJ_UINT32 opj_uint_ceildivpow2(OPJ_UINT32 a, OPJ_UINT32 b)</div><divclass="ttdoc">Divide an integer by a power of 2 and round upwards. </div><divclass="ttdef"><b>Definition:</b> opj_intmath.h:153</div></div>
<divclass="ttc"id="group___o_p_j___i_n_t_m_a_t_h_html_ga2c3eb35fddab83fef25256485b926fc0"><divclass="ttname"><ahref="group___o_p_j___i_n_t_m_a_t_h.html#ga2c3eb35fddab83fef25256485b926fc0">opj_uint_max</a></div><divclass="ttdeci">static INLINE OPJ_UINT32 opj_uint_max(OPJ_UINT32 a, OPJ_UINT32 b)</div><divclass="ttdoc">Get the maximum of two integers. </div><divclass="ttdef"><b>Definition:</b> opj_intmath.h:80</div></div>
<divclass="ttc"id="group___o_p_j___i_n_t_m_a_t_h_html_gab00a7c3619b5af7595961047baff120e"><divclass="ttname"><ahref="group___o_p_j___i_n_t_m_a_t_h.html#gab00a7c3619b5af7595961047baff120e">opj_int_ceildiv</a></div><divclass="ttdeci">static INLINE OPJ_INT32 opj_int_ceildiv(OPJ_INT32 a, OPJ_INT32 b)</div><divclass="ttdoc">Divide an integer and round upwards. </div><divclass="ttdef"><b>Definition:</b> opj_intmath.h:119</div></div>
<divclass="ttc"id="group___o_p_j___i_n_t_m_a_t_h_html_gaefb4572107a9aea093be96d966869a0d"><divclass="ttname"><ahref="group___o_p_j___i_n_t_m_a_t_h.html#gaefb4572107a9aea093be96d966869a0d">opj_int_clamp</a></div><divclass="ttdeci">static INLINE OPJ_INT32 opj_int_clamp(OPJ_INT32 a, OPJ_INT32 min, OPJ_INT32 max)</div><divclass="ttdoc">Clamp an integer inside an interval. </div><divclass="ttdef"><b>Definition:</b> opj_intmath.h:102</div></div>
<divclass="ttc"id="group___o_p_j___i_n_t_m_a_t_h_html_gab9aad885f5c9bc9e39420003b2b32fe5"><divclass="ttname"><ahref="group___o_p_j___i_n_t_m_a_t_h.html#gab9aad885f5c9bc9e39420003b2b32fe5">opj_uint_adds</a></div><divclass="ttdeci">static INLINE OPJ_UINT32 opj_uint_adds(OPJ_UINT32 a, OPJ_UINT32 b)</div><divclass="ttdoc">Get the saturated sum of two unsigned integers. </div><divclass="ttdef"><b>Definition:</b> opj_intmath.h:88</div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hrclass="footer"/><addressclass="footer"><small>
Generated by  <ahref="http://www.doxygen.org/index.html">