isPowTwo
authorMichael Curtiss <mcurtiss@fb.com>
Fri, 17 Aug 2012 05:31:16 +0000 (22:31 -0700)
committerTudor Bosman <tudorb@fb.com>
Sun, 26 Aug 2012 18:13:40 +0000 (11:13 -0700)
commitce15293f7537bb6ac4b0e9925aa1710b89af2e27
treebd43715a5cb32d041f3274e3edde7e3768dd1c89
parent2bfec0de99d40ef333c21d9388952fcd2abd09b0
isPowTwo

Summary:
a la Hacker's Delight.

Also, fix nonsensical nextPowTwo benchmark.

Test Plan: Added test and benchmark.

Reviewed By: tudorb@fb.com

FB internal diff: D551510
folly/Bits.h
folly/test/BitsTest.cpp