X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=util.cpp;fp=util.cpp;h=8162f712d02eed8f5b47b7f481b977b827f56f8f;hb=f3591ae239781d0587a141e14633e172ba9e376b;hp=b86e3f77c9d4842fdea43cfbfe025bc786a2fa1c;hpb=f3c466c53a5fd158029c3752d720af39a15b075e;p=movit diff --git a/util.cpp b/util.cpp index b86e3f7..8162f71 100644 --- a/util.cpp +++ b/util.cpp @@ -215,4 +215,9 @@ void cleanup_vertex_attribute(GLuint glsl_program_num, const string &attribute_n check_error(); } +unsigned div_round_up(unsigned a, unsigned b) +{ + return (a + b - 1) / b; +} + } // namespace movit