prevPowTwo / faster bit operations
authorBen Maurer <bmaurer@fb.com>
Tue, 25 Oct 2016 03:14:08 +0000 (20:14 -0700)
committerFacebook Github Bot <facebook-github-bot-bot@fb.com>
Tue, 25 Oct 2016 03:23:29 +0000 (20:23 -0700)
commit02548aa013320689d38b906fa893a028f4cdfb6b
tree672bb56790d8b377dc6e5ee81c7a4a5e46f597b5
parent78753f6221c4dc6553bbdc28526723cf2a6bd4c0
prevPowTwo / faster bit operations

Summary:
Add a prevPowTwo method to bits.h and optimize the current code for
GCCs output.

Reviewed By: ot

Differential Revision: D4072341

fbshipit-source-id: 6e949d0bfcf88ff8500022939d08a2b5aa9e00c9
folly/Bits.h
folly/test/BitsTest.cpp