util/macros: rework DIV_ROUND_UP macro
authorChristian Gmeiner <christian.gmeiner@gmail.com>
Wed, 3 Jul 2019 19:06:54 +0000 (21:06 +0200)
committerChristian Gmeiner <christian.gmeiner@gmail.com>
Thu, 4 Jul 2019 08:21:32 +0000 (10:21 +0200)
commitf39a7fd627847a196ad119db9364936e21e94db9
tree4c765b6b1c402e2dbb71ac2b464ca20582a1dacb
parente519d3c239c4c52b42f01dc96bffb004064d0843
util/macros: rework DIV_ROUND_UP macro

Simplify used math.

Signed-off-by: Christian Gmeiner <christian.gmeiner@gmail.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Reviewed-by: Kristian H. Kristensen <hoegsberg@google.com>
Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
src/util/macros.h