News for hackers. Stuff that matters.
Re:Write A Function To Determine If A Number Is A Power Of 2 by drallison on Tuesday October 19, 2010 @01:23PM (#1807896)
For more of this sort of thing:

http://www.amazon.com/Hackers-Delight-Henry-S-Warren/dp/0201...

which should be on every serious programmers bookshelf. Take a look, also, at the wonderful MIT HackMem report. Its Wikipedia entry, http://en.wikipedia.org/wiki/HAKMEM, has pointers to online versions. The venerable PDP-10's influence shows, but there's lots of cool stuff there.

Knuth's Art of Computer Programming,read closely, occasionally divulges clever hacks, particularly in the exercises.

There are no comments on this comment yet.