gem5
v20.1.0.0
|
#include <cassert>
#include <cstdint>
#include <type_traits>
#include "base/logging.hh"
#include "base/types.hh"
Go to the source code of this file.
Functions | |
uint64_t | power (uint32_t n, uint32_t e) |
template<class T > | |
std::enable_if< std::is_integral< T >::value, int >::type | floorLog2 (T x) |
template<class T > | |
int | ceilLog2 (const T &n) |
template<class T > | |
bool | isPowerOf2 (const T &n) |
template<class T , class U > | |
T | divCeil (const T &a, const U &b) |
template<class T , class U > | |
T | roundUp (const T &val, const U &align) |
This function is used to align addresses in memory. More... | |
template<class T , class U > | |
T | roundDown (const T &val, const U &align) |
This function is used to align addresses in memory. More... | |