[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}

CrOS-Libchrome-Original-Commit: b6d0db428b5b19930b17ac94a95eaefed30d26b9
2 files changed
tree: 70342fb2a2dae14e18975795e31b0e80f1584537
  1. base/
  2. build/
  3. components/
  4. dbus/
  5. device/
  6. ipc/
  7. mojo/
  8. testing/
  9. third_party/
  10. ui/