58 return (a > b) ? a : b;
80 return a < 0 ? -a : a;
87 return (a + b - 1) / b;
94 return (a + (1 << b) - 1) >> b;
109 for (l = 0; a > 1; l++) {
static INLINE int int_abs(int a)
Definition: int.h:79
static INLINE int int_ceildivpow2(int a, int b)
Divide an integer by a power of 2 and round upwards.
Definition: int.h:93
#define min(a, b)
Computes the minimum between two integers.
Definition: rs.h:102
static INLINE int int_clamp(int a, int min, int max)
Clamp an integer inside an interval.
Definition: int.h:69
static INLINE int int_ceildiv(int a, int b)
Divide an integer and round upwards.
Definition: int.h:86
static INLINE int int_max(int a, int b)
Get the maximum of two integers.
Definition: int.h:57
#define INLINE
Definition: opj_includes.h:75
static INLINE int int_floordivpow2(int a, int b)
Divide an integer by a power of 2 and round downwards.
Definition: int.h:100
static INLINE int int_floorlog2(int a)
Get logarithm of an integer and round downwards.
Definition: int.h:107
static INLINE int int_min(int a, int b)
Get the minimum of two integers.
Definition: int.h:50