----- Original Message -----
> On Sun, 7 Aug 2011 19:22:06 +0200
> Henri Verbeet <[email protected]> wrote:
> 
> > On 7 August 2011 19:03, Lauri Kasanen <[email protected]> wrote:
> > > +       /* floor(a + 0.5) */
> > Why not use RNDNE?
> 
> I feel it would cause more "wrong" results, with two numbers
> resolving to the same (3.5 = 4.5 = 4).

There's no "wrong" or "right" when there are two equidistant integers -- it's 
all a matter of convention.

Also, llvmpipe uses ROUNDPS which follows the "round to even" rule for *.5 
values too.

IMHO, if there's a hardware opcode for round then it should be used until 
there's conclusive evidence against it.

Jose
_______________________________________________
mesa-dev mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to