Port of turbo_quant_encode_value(): rotate (fwht) then Lloyd-Max quantize (lm_quant) per 32-group RMS scale.
Port of turbo_quant_encode_value(): rotate (fwht) then Lloyd-Max quantize (lm_quant) per 32-group RMS scale.