speed up quantization by letting the compiler generate fast integer divisions for the most common divisors. Also reformat the source file.