Re: [Pixman] [PATCH] float-combiner.c: Change tests for x == 0.0 tests to - FLT_MIN x FLT_MIN

2012-12-18 Thread Siarhei Siamashka
On Mon, 17 Dec 2012 03:34:34 +0100 sandm...@cs.au.dk (Søren Sandmann) wrote: Siarhei Siamashka siarhei.siamas...@gmail.com writes: I just wonder how big is the performance cost for adding an extra comparison operation. Probably much less than using -ffloat-store,

Re: [Pixman] [PATCH] float-combiner.c: Change tests for x == 0.0 tests to - FLT_MIN x FLT_MIN

2012-12-16 Thread Siarhei Siamashka
On Sat, 15 Dec 2012 10:50:01 -0500 Søren Sandmann sandm...@cs.au.dk wrote: From: Søren Sandmann Pedersen s...@redhat.com pixman-float-combiner.c currently uses checks like these: if (x == 0.0f) ... else ... / x; to prevent division by 0. In theory this is

Re: [Pixman] [PATCH] float-combiner.c: Change tests for x == 0.0 tests to - FLT_MIN x FLT_MIN

2012-12-16 Thread Søren Sandmann
Siarhei Siamashka siarhei.siamas...@gmail.com writes: I just wonder how big is the performance cost for adding an extra comparison operation. Probably much less than using -ffloat-store, -fexcess-precision=standard, and -std=c99 options, but might be interesting to confirm. It's not going to