News for hackers. Stuff that matters.
Re:FizzBuzz solved using only bit twiddling by robinduckett on Monday October 28, 2013 @02:00PM (#6628574)
Aren't those bitwise operators doing the same as dividing?

http://stackoverflow.com/questions/5284898/implement-divisio...

Re:FizzBuzz solved using only bit twiddling by gamegoblin on Monday October 28, 2013 @02:37PM (#6628846)
The functions emulate deterministic finite automata that read binary strings and determine divisibility.

See:

http://stackoverflow.com/questions/15330027/regular-expressi...

http://ugccomputerscience.blogspot.com/2012/02/dfa-of-binary...

Re:FizzBuzz solved using only bit twiddling by mcmillhj on Monday October 28, 2013 @02:07PM (#6628623)
essentially, but the author only claimed to solve it without division or modulo operators.
Re:FizzBuzz solved using only bit twiddling by gamegoblin on Monday October 28, 2013 @03:02PM (#6629066)
I actually originally titled it "FizzBuzz using only bit twiddling" but a mod changed it...