what is the best way to to get the closest, non-smaller number that is divisible by 16?
the method I came up with doesn't look very elegant or fast
int non_smaller_int_divisible_by_16(int x)
{
return x + ((16 - (x % 16)) % 16);
}
the expected results are
result | X values
-------|----------
16 | 1,2,..., 16
32 | 17, 18, ... 32
48 | 33, 34, ..., 48
etc