- printf("%d,%d: start=%d freq=%d\n", i, j, rans_dist->ransdist[i * 256 + j].first, rans_dist->ransdist[i * 256 + j].second);
- write_varint(rans_dist->ransdist[i * 256 + j].second, codedfp);
+ printf("%d,%d: freq=%d x_max=%d, rcp_freq=%08x, bias=%d, rcp_shift=%d, cmpl_freq=%d\n",
+ i, j, rans_dist->ransfreq[i * 256 + j],
+ rans_dist->ransdist[i * 256 + j].x_max,
+ rans_dist->ransdist[i * 256 + j].rcp_freq,
+ rans_dist->ransdist[i * 256 + j].bias,
+ rans_dist->ransdist[i * 256 + j].rcp_shift_and_cmpl_freq & 0xffff,
+ rans_dist->ransdist[i * 256 + j].rcp_shift_and_cmpl_freq >> 16);
+ write_varint(rans_dist->ransfreq[i * 256 + j], codedfp);