bink2: implement calc_dc as in the reference