<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="l00065"></a><spanclass="lineno"><aclass="line"href="group___o_p_j___i_n_t_m_a_t_h.html#ga06c1c4470f9765a3ed04963b0daa111a"> 65</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="l00074"></a><spanclass="lineno"><aclass="line"href="group___o_p_j___i_n_t_m_a_t_h.html#ga2f7d5c3934ee6be38763652b7f80ea6c"> 74</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="l00083"></a><spanclass="lineno"><aclass="line"href="group___o_p_j___i_n_t_m_a_t_h.html#ga2c3eb35fddab83fef25256485b926fc0"> 83</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="l00092"></a><spanclass="lineno"><aclass="line"href="group___o_p_j___i_n_t_m_a_t_h.html#gab9aad885f5c9bc9e39420003b2b32fe5"> 92</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="l00107"></a><spanclass="lineno"><aclass="line"href="group___o_p_j___i_n_t_m_a_t_h.html#gaefb4572107a9aea093be96d966869a0d"> 107</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#gaefb4572107a9aea093be96d966869a0d">opj_int_clamp</a>(<aclass="code"href="openjpeg_8h.html#a3cec91ef9e73677f0dbd60d4e42401b9">OPJ_INT32</a> a, <aclass="code"href="openjpeg_8h.html#a3cec91ef9e73677f0dbd60d4e42401b9">OPJ_INT32</a><aclass="code"href="index__manager_8c.html#ac1d9c713f42b405f9e353ec99b880755">min</a>,</div>
<divclass="line"><aname="l00129"></a><spanclass="lineno"><aclass="line"href="group___o_p_j___i_n_t_m_a_t_h.html#gab00a7c3619b5af7595961047baff120e"> 129</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="l00139"></a><spanclass="lineno"><aclass="line"href="group___o_p_j___i_n_t_m_a_t_h.html#gae4b2e5a7c8b8f09faacc4a895f866ea1"> 139</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="l00149"></a><spanclass="lineno"><aclass="line"href="group___o_p_j___i_n_t_m_a_t_h.html#gaaa1e441dec325d33ccd86aa7ca8ccfdc"> 149</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="l00158"></a><spanclass="lineno"><aclass="line"href="group___o_p_j___i_n_t_m_a_t_h.html#ga6881e82a881556059d14d265a8d0aa25"> 158</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="l00167"></a><spanclass="lineno"><aclass="line"href="group___o_p_j___i_n_t_m_a_t_h.html#gae592eb75f221decddec51834b6c4177d"> 167</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="l00176"></a><spanclass="lineno"><aclass="line"href="group___o_p_j___i_n_t_m_a_t_h.html#gabdf6c78f5b60afd230901e5e0c57f491"> 176</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="l00211"></a><spanclass="lineno"><aclass="line"href="group___o_p_j___i_n_t_m_a_t_h.html#gaa2130d6482126a20e6680f82b254857b"> 211</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="l00216"></a><spanclass="lineno"> 216</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="l00224"></a><spanclass="lineno"><aclass="line"href="group___o_p_j___i_n_t_m_a_t_h.html#ga5ce489e764483d741e8953475341ba14"> 224</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="l00229"></a><spanclass="lineno"> 229</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:176</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:139</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:158</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:149</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:65</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:184</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:196</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:74</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:211</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:167</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:83</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:129</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:107</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:92</div></div>