gem5  v20.1.0.0
Functions
intmath.hh File Reference
#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 >
divCeil (const T &a, const U &b)
 
template<class T , class U >
roundUp (const T &val, const U &align)
 This function is used to align addresses in memory. More...
 
template<class T , class U >
roundDown (const T &val, const U &align)
 This function is used to align addresses in memory. More...
 

Generated on Wed Sep 30 2020 14:02:18 for gem5 by doxygen 1.8.17