Boost logo

Geometry :

Subject: [ggl] ggl::overlaps
From: Barend Gehrels (Barend.Gehrels)
Date: 2009-06-18 05:48:20

Chris Browet wrote:
> BTW, for ggl::overlaps, wouldn't AND'ing be more efficient than OR'ing?
> If I had to write an optimized compiler, I'd say that if the first
> condition of a AND is false, I'd bail out with FALSE without testing
> the other conditions, while OR'ing means you systematically have to
> test all conditions....
I thought that for OR, if the first condition is true, the compiler will
also bail out... without the other conditions... So the effect is the same?

BTW: the ggl::overlaps will be dimension agnostic and therefore
implemented differently (yes, still much todo's).


Geometry list run by mateusz at