Providing a width equal to even power 2 (so 2,4,8,16,32, etc.), it will return a number equal to or greater than n, which is a multiple of the width and which is the smallest value satisfying these criteria.
So width = 16; 5-> 16, 7-> 16, 15-> 16, 16-> 16, 17-> 32, 18-> 32, etc.
EDIT , , , , , OP, . , , width = 16, n = 15,16,17. , = , ~ = .