data_structure.cc 557 B

123456789101112131415161718
  1. // Copyright (c) Meta Platforms, Inc. and affiliates.
  2. // This source code is licensed under both the GPLv2 (found in the
  3. // COPYING file in the root directory) and Apache 2.0 License
  4. // (found in the LICENSE.Apache file in the root directory).
  5. #include "rocksdb/data_structure.h"
  6. #include "util/math.h"
  7. namespace ROCKSDB_NAMESPACE::detail {
  8. int CountTrailingZeroBitsForSmallEnumSet(uint64_t v) {
  9. return CountTrailingZeroBits(v);
  10. }
  11. int BitsSetToOneForSmallEnumSet(uint64_t v) { return BitsSetToOne(v); }
  12. } // namespace ROCKSDB_NAMESPACE::detail