[Mesa-dev] [PATCH] r600g: Add support for ROUND
cand at gmx.com
Sun Aug 7 12:01:20 PDT 2011
On Sun, 7 Aug 2011 19:22:06 +0200
Henri Verbeet <hverbeet at gmail.com> wrote:
> On 7 August 2011 19:03, Lauri Kasanen <cand at gmx.com> 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).
Of course for best rounding one could use Wine's solution, floor(abs(a) + 0.5) * sign(a), but it looked to me like one could only have one temp, and that solution would require two.
More information about the mesa-dev