Make local function 'static' in verilated_profiler.h

This commit is contained in:
Geza Lore 2022-05-28 12:17:39 +01:00
parent d45caca011
commit cf1eccc24f
1 changed files with 1 additions and 1 deletions

View File

@ -60,7 +60,7 @@ uint16_t VlExecutionRecord::getcpu() {
//=============================================================================
// VlExecutionProfiler implementation
template <size_t N> size_t roundUptoMultipleOf(size_t value) {
template <size_t N> static size_t roundUptoMultipleOf(size_t value) {
static_assert((N & (N - 1)) == 0, "'N' must be a power of 2");
size_t mask = N - 1;
return (value + mask) & ~mask;