Re: [AD] bool in MSVC |
[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]
I think the latter could optimize better, given C's requirement for short-
circuiting. The former must not dereference 'display' if 'onoff' is false
(forcing a branch), whereas the latter can possibly optimize out any branching
because display->flags needs to be evaluated anyway.
Granted, I have no idea if this is time-sensitive code that would benefit from
such, but I figured I'd toss that out there.
Mail converted by MHonArc 2.6.19+ | http://listengine.tuxfamily.org/ |