i have this:
it works, but i'm betting there's a faster algorithm. anyone have suggestions?Code:static unsigned int nextMultiple(unsigned int of,unsigned int from) { if(from < of ) return of; unsigned int fmodof = from%of ; return fmodof ? (from - (fmodof)) +of : from; }