constexpr_log2_ceil
authorYedidya Feldblum <yfeldblum@fb.com>
Tue, 26 Dec 2017 18:59:25 +0000 (10:59 -0800)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Tue, 26 Dec 2017 19:08:22 +0000 (11:08 -0800)
commit3b8919b3c4121090183b40cd3fbcdeb81bf47645
tree3583a95ada27d98eb00b1f08041f3e7a8830f1e9
parente50d7df41cf5371584281bbf4208fd8c54bbf7f5
constexpr_log2_ceil

Summary: [Folly] `constexpr_log2_ceil`, like `constexpr_log2` but rounding up.

Reviewed By: Orvid

Differential Revision: D6636433

fbshipit-source-id: a10f031cc9c91cfeba7b74bbf143895a311ca772
folly/ConstexprMath.h
folly/test/ConstexprMathTest.cpp