ChampSim
041-bitwise_ops.cc File Reference
#include <catch.hpp>
#include "util/bits.h"
#include <bitset>
Include dependency graph for 041-bitwise_ops.cc:

Functions

 TEST_CASE ("lg2 correctly identifies powers of 2")
 
 TEST_CASE ("bitmask correctly produces lower-order bits")
 
 TEST_CASE ("bitmask correctly produces slice masks")
 
 TEST_CASE ("splice_bits performs correctly at the limits")
 
 TEST_CASE ("splice_bits performs correctly in the middle")
 
 TEST_CASE ("lg2 correctly identifies powers of 2 in a constexpr")
 
 TEST_CASE ("bitmask correctly produces lower-bit masks in a constexpr")
 
 TEST_CASE ("bitmask correctly produces slice masks in a constexpr")
 

Function Documentation

◆ TEST_CASE() [1/8]

TEST_CASE ( "bitmask correctly produces lower-bit masks in a constexpr"  )

◆ TEST_CASE() [2/8]

TEST_CASE ( "bitmask correctly produces lower-order bits"  )

◆ TEST_CASE() [3/8]

TEST_CASE ( "bitmask correctly produces slice masks in a constexpr"  )

◆ TEST_CASE() [4/8]

TEST_CASE ( "bitmask correctly produces slice masks"  )

◆ TEST_CASE() [5/8]

TEST_CASE ( "lg2 correctly identifies powers of 2 in a constexpr"  )

◆ TEST_CASE() [6/8]

TEST_CASE ( "lg2 correctly identifies powers of 2"  )

◆ TEST_CASE() [7/8]

TEST_CASE ( "splice_bits performs correctly at the limits"  )

◆ TEST_CASE() [8/8]

TEST_CASE ( "splice_bits performs correctly in the middle"  )