News for hackers. Stuff that matters.
Re:Calculate n + 1 without using + or - or * or / by alecbenzer on Monday July 04, 2011 @05:52PM (#2727988)
if n is an integer, I believe this works:

https://gist.github.com/1063990

uses only bit shits, bitwise XOR, and bitwise AND

I would imagine they meant not to use the operations, not just the symbols.

There are no comments on this comment yet.