Am 17.11.2013 20:20, schrieb Mouse:
What do you mean exactly? I thought the comment was saying that using "(x < y) << z" is avoiding a conditinal branch introduced by using an "if" or "? :" in some way to get the calculation done. Isn't the comment true then?*wide = new + ((unsigned long) (new < *wide) << 16 << 16); The comment says "Treating the comparison as a 1 and shifting it avoids a conditional branch".Only on architectures with conditional moves - and, on those, the version using ? : is likely to compile down to a conditional move anyway. I think that comment should be fixed.
- Jonas _______________________________________________ [email protected]: X.Org development Archives: http://lists.x.org/archives/xorg-devel Info: http://lists.x.org/mailman/listinfo/xorg-devel
