chromium/v8/test/unittests/base/bits-unittest.cc

// Copyright 2014 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "src/base/bits.h"

#include <limits>

#include "testing/gtest-support.h"

#ifdef DEBUG
#define DISABLE_IN_RELEASE(Name)
#else
#define DISABLE_IN_RELEASE
#endif

namespace v8 {
namespace base {
namespace bits {

TEST(Bits, CountPopulation8) {}

TEST(Bits, CountPopulation16) {}

TEST(Bits, CountPopulation32) {}

TEST(Bits, CountPopulation64) {}

TEST(Bits, CountLeadingZeros16) {}

TEST(Bits, CountLeadingZeros32) {}

TEST(Bits, CountLeadingZeros64) {}

TEST(Bits, CountTrailingZeros16) {}

TEST(Bits, CountTrailingZerosu32) {}

TEST(Bits, CountTrailingZerosi32) {}

TEST(Bits, CountTrailingZeros64) {}

TEST(Bits, IsPowerOfTwo32) {}

TEST(Bits, IsPowerOfTwo64) {}

TEST(Bits, WhichPowerOfTwo32) {}

TEST(Bits, WhichPowerOfTwo64) {}

TEST(Bits, RoundUpToPowerOfTwo32) {}


TEST(BitsDeathTest, DISABLE_IN_RELEASE(RoundUpToPowerOfTwo32)) {}

TEST(Bits, RoundUpToPowerOfTwo64) {}

TEST(BitsDeathTest, DISABLE_IN_RELEASE(RoundUpToPowerOfTwo64)) {}


TEST(Bits, RoundDownToPowerOfTwo32) {}


TEST(Bits, RotateRight32) {}


TEST(Bits, RotateRight64) {}


TEST(Bits, SignedAddOverflow32) {}


TEST(Bits, SignedSubOverflow32) {}


TEST(Bits, SignedMulHigh32) {}


TEST(Bits, SignedMulHighAndAdd32) {}


TEST(Bits, SignedDiv32) {}


TEST(Bits, SignedMod32) {}


TEST(Bits, UnsignedAddOverflow32) {}


TEST(Bits, UnsignedDiv32) {}


TEST(Bits, UnsignedMod32) {}

}  // namespace bits
}  // namespace base
}  // namespace v8