cosmetics: remove code duplication in hadamard8_diff_mmx