remove deprecated v1 style function opj_decode and opj_decode_with_info
[openjpeg.git] / libopenjpeg / int.h
index a39772b02266d40659339762443d039af5099bd9..57fec99d21ea794b5813668e22cd7d50ade0c338 100644 (file)
@@ -104,6 +104,15 @@ Divide an integer and round upwards
 static INLINE int int_ceildiv(int a, int b) {
        return (a + b - 1) / b;
 }
+
+/**
+Divide an integer and round upwards
+@return Returns a divided by b
+*/
+static INLINE OPJ_UINT32  uint_ceildiv(OPJ_UINT32  a, OPJ_UINT32  b) {
+       return (a + b - 1) / b;
+}
+
 /**
 Divide an integer by a power of 2 and round upwards
 @return Returns a divided by 2^b