aboutsummaryrefslogtreecommitdiffstats
path: root/vespalib/src/vespa/vespalib/util/round_up_to_page_size.h
blob: 4923d96d94e183388eb442c90b70f772f9c3c80a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.

#pragma once

#include <cstddef>

namespace vespalib {

/*
 * Return sz rounded up to a multiple of page size.
 */
size_t round_up_to_page_size(size_t sz);

}