Introduce gmx::divideRoundUp, replace multiple copies in the code
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.
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.