News for hackers. Stuff that matters.
Re:Write A Function To Determine If A Number Is A Power Of 2 by dfranke on Monday October 18, 2010 @12:04PM (#1803984)
I picked up this trick from reading the scrypt source code. A few months later I was asked it in a job interview. Thanks, Colin :-)
Re:Write A Function To Determine If A Number Is A Power Of 2 by cperciva on Tuesday October 19, 2010 @06:39PM (#1809120)
I can't claim much credit here -- that trick is older than I am. :-)