In 3.8, we have a pair of functions roundoff_unsigned and roundoff_signed
roundoff_unsigned(v, d) = (unsigned(v) >> d) + r
roundoff_signed(v, d) = (signed(v) >> d) + r
and the Rounding increment r depends on the rounding mode ( i.e vxrm)
In the table, r is given by expressions like v[d-1].
But this definition is unclear when d equals 0.