Skip to content

Introduce gmx::divideRoundUp, replace multiple copies in the code

Andrey Alekseenko requested to merge aa-divide-round-up into main

We have the same (a + b - 1) / b pattern repeated in the code many times. Replace them with a single function, covered by unit tests.

Used Coccinelle to find most instances.

Merge request reports