Boost logo

Geometry :

Subject: [ggl] ggl::overlaps
From: Chris Browet (cbro)
Date: 2009-06-18 05:57:25

2009/6/18 Barend Gehrels <Barend.Gehrels_at_[hidden]>

> 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?

Sure. Sorry, stupid remark.

- Chris -
-------------- next part --------------
An HTML attachment was scrubbed...

Geometry list run by mateusz at