undo
as i should've guessed initially, this had nothing to do with the earlier issues i noticed which seemed to disappear once i started fiddling with this function. that appeared to be coincidence. the actual issue lies somewhere else it seems ... ugh
This commit is contained in:
parent
27e096e03b
commit
c099d9bae1
|
@ -15,11 +15,7 @@
|
||||||
* @return the smallest short c such that c >= a / b
|
* @return the smallest short c such that c >= a / b
|
||||||
*/
|
*/
|
||||||
short ceil_div_short(short a, short b) {
|
short ceil_div_short(short a, short b) {
|
||||||
if (a % b) {
|
return (a + (b - 1)) / b;
|
||||||
return (a / b) + 1;
|
|
||||||
} else {
|
|
||||||
return a / b;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue