Better implementation of pagesize_multiple

Not measured if this bit-twiddling squeezes a few CPU cycles out of this
function. Can modern compilers not figure this all out by themselves?