[base] Add bits::IsPowerOfTwo
Adds helper for computing whether a number is power of two. Change-Id: Ifd7e01ec1aad644fd9c6ac78600edd013076c9fb Reviewed-on: https://chromium-review.googlesource.com/1065960 Commit-Queue: Michael Lippautz <mlippautz@chromium.org> Reviewed-by:Kentaro Hara <haraken@chromium.org> Reviewed-by:
Gabriel Charette <gab@chromium.org> Cr-Commit-Position: refs/heads/master@{#560988}
Showing
Please register or sign in to comment