SIMD optimizations for quantization