"ABX" <abx### [at] abxartpl> wrote:
>
> bbox.cpp:
> maxfinitecount += maxfinitecount / 2;
>
> bsphere.cpp:
> maxelements += maxelements / 2;
>
> where '/2' on ints is often calculated using bits operations seems useful.
Not in this case. '/2' and '>>1' are only equivalent for unsigned values
(although this can also be applied to signed variables known [by the
compiler] to contain positive values).
Post a reply to this message
|