OpenJPEG  1.5.1
int.h File Reference

Implementation of operations on integers (INT) More...

Go to the source code of this file.

Functions

Exported functions (see also openjpeg.h)
static INLINE int int_min (int a, int b)
 Get the minimum of two integers. More...
 
static INLINE int int_max (int a, int b)
 Get the maximum of two integers. More...
 
static INLINE int int_clamp (int a, int min, int max)
 Clamp an integer inside an interval. More...
 
static INLINE int int_abs (int a)
 
static INLINE int int_ceildiv (int a, int b)
 Divide an integer and round upwards. More...
 
static INLINE int int_ceildivpow2 (int a, int b)
 Divide an integer by a power of 2 and round upwards. More...
 
static INLINE int int_floordivpow2 (int a, int b)
 Divide an integer by a power of 2 and round downwards. More...
 
static INLINE int int_floorlog2 (int a)
 Get logarithm of an integer and round downwards. More...
 

Detailed Description

Implementation of operations on integers (INT)

The functions in INT.H have for goal to realize operations on integers.