|
The Sparta Modeling Framework
|
Helper functions to count bits. A little old – consider using compiler intrinsics. More...
#include <cinttypes>#include <cassert>#include <typeinfo>#include "sparta/utils/SpartaException.hpp"Go to the source code of this file.
Namespaces | |
| namespace | sparta |
| Macros for handling exponential backoff. | |
Functions | |
| template<class T > | |
| uint32_t | sparta::utils::count_1_bits (const T &) |
| template<> | |
| uint32_t | sparta::utils::count_1_bits< uint32_t > (const uint32_t &n) |
| template<> | |
| uint32_t | sparta::utils::count_1_bits< uint64_t > (const uint64_t &n) |
Helper functions to count bits. A little old – consider using compiler intrinsics.
Definition in file Bits.hpp.
|
inline |
|
inline |