commit | 841a1aded1c997157db6e31ec64d4cad82b62407 | [log] [tgz] |
---|---|---|
author | Michael Lippautz <mlippautz@chromium.org> | Wed May 23 16:19:42 2018 +0900 |
committer | Qijiang Fan <fqj@google.com> | Fri Jun 05 09:27:12 2020 +0900 |
tree | 70342fb2a2dae14e18975795e31b0e80f1584537 | |
parent | 5db8340dc9d97ccb15d925434d8450c778d9d682 [diff] |
[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