#include <iostream>
// The next highest multiple of eight
unsigned int roundToMultipleOf(unsigned int number, unsigned int roundTo) {
return (number + (roundTo - 1)) & ~(roundTo - 1);
}
int main() {
std::cout << roundToMultipleOf(9, 8) << "\n";
std::cout << roundToMultipleOf(19, 8) << "\n";
std::cout << roundToMultipleOf(71, 8) << "\n";
}
/*
run:
16
24
72
*/