[Mesa-dev] [PATCH] r600g: Add support for ROUND

Jose Fonseca jfonseca at vmware.com
Mon Aug 8 00:22:20 PDT 2011



----- Original Message -----
> On 8 August 2011 03:58, Jose Fonseca <jfonseca at vmware.com> wrote:
> > It's subjective. It depends on the expected input distribution,
> > which is effectively impossible to characterize in general. One
> > can easily find datasets where one method gives biased results and
> > the other not, and vice versa. And if one takes all possible
> > numbers, they are equally good.
> >
> This is probably largely irrelevant to the patch in question, but
> just
> for arguments sake, I don't think that's true. The function floor(x +
> .5) will introduce positive bias regardless of input distribution,

I thought the patch implemented round to +/- infinity. Indeed round to +infinitity indeed has a bias.

Jose


More information about the mesa-dev mailing list