Boost logo

Boost :

Subject: Re: [boost] non-branching min()
From: joel (joel.falcou_at_[hidden])
Date: 2009-09-10 13:35:30

Tim Blechmann wrote:
> well, depending on your compiler optimization and cpu architecture, the
> compiler is able to optimize it, removing the branch ...
All the code I do with ?: generates an asm without branches but with the
sbb asm instruction.
So I ponder how and with which compielr OP did his test

Joel Falcou - Assistant Professor
PARALL Team - LRI - Universite Paris Sud XI
Tel : (+33)1 69 15 66 35

Boost list run by bdawes at, gregod at, cpdaniel at, john at