row_max is in scaled domain (s_val * scale_log2). The O rescaling should be exp2(old_max - new_max) without extra scale_log2 because the max values already include the scaling factor.
row_max is in scaled domain (s_val * scale_log2). The O rescaling should be exp2(old_max - new_max) without extra scale_log2 because the max values already include the scaling factor.