On Tue, Jul 3, 2012 at 01:49 UTC, Michael W. Bombardieri <m...@ii.net> wrote:
> Sorry, my fault. The intent was bitwise-and not bitwise-or.
> Third version of the diff follows.
> In regards to hand optimisations, we could be even worse
> and do something like add rn_id values, subtract rn_len, check
> if zero. :)

I don't understand why you don't simply write the obvious comparison
of each to 1 for equality, anding them together logically, and let the
compiler play the bit-twiddling games.  Bitwise and will be correct, I
believe, but obfuscated in a place where micro-optimization seems
pointless.  The same goes for the add then subtract alternative.

Cheers,
Dave Hart

Reply via email to