Lines Matching refs:OPJ_INT32
56 static INLINE OPJ_INT32 opj_int_min(OPJ_INT32 a, OPJ_INT32 b) in opj_int_min()
74 static INLINE OPJ_INT32 opj_int_max(OPJ_INT32 a, OPJ_INT32 b) in opj_int_max()
95 return (OPJ_UINT32)(-(OPJ_INT32)(sum >> 32)) | (OPJ_UINT32)sum; in opj_uint_adds()
116 static INLINE OPJ_INT32 opj_int_clamp(OPJ_INT32 a, OPJ_INT32 min, in opj_int_clamp()
117 OPJ_INT32 max) in opj_int_clamp()
152 static INLINE OPJ_INT32 opj_int_abs(OPJ_INT32 a) in opj_int_abs()
160 static INLINE OPJ_INT32 opj_int_ceildiv(OPJ_INT32 a, OPJ_INT32 b) in opj_int_ceildiv()
163 return (OPJ_INT32)(((OPJ_INT64)a + b - 1) / b); in opj_int_ceildiv()
180 static INLINE OPJ_INT32 opj_int_ceildivpow2(OPJ_INT32 a, OPJ_INT32 b) in opj_int_ceildivpow2()
182 return (OPJ_INT32)((a + ((OPJ_INT64)1 << b) - 1) >> b); in opj_int_ceildivpow2()
189 static INLINE OPJ_INT32 opj_int64_ceildivpow2(OPJ_INT64 a, OPJ_INT32 b) in opj_int64_ceildivpow2()
191 return (OPJ_INT32)((a + ((OPJ_INT64)1 << b) - 1) >> b); in opj_int64_ceildivpow2()
207 static INLINE OPJ_INT32 opj_int_floordivpow2(OPJ_INT32 a, OPJ_INT32 b) in opj_int_floordivpow2()
215 static INLINE OPJ_INT32 opj_int_floorlog2(OPJ_INT32 a) in opj_int_floorlog2()
217 OPJ_INT32 l; in opj_int_floorlog2()
242 static INLINE OPJ_INT32 opj_int_fix_mul(OPJ_INT32 a, OPJ_INT32 b) in opj_int_fix_mul()
252 return (OPJ_INT32)(temp >> 13); in opj_int_fix_mul()
255 static INLINE OPJ_INT32 opj_int_fix_mul_t1(OPJ_INT32 a, OPJ_INT32 b) in opj_int_fix_mul_t1()
266 return (OPJ_INT32)(temp >> (13 + 11 - T1_NMSEDEC_FRACBITS)) ; in opj_int_fix_mul_t1()