aboutsummaryrefslogtreecommitdiffstats
path: root/vespalib/src/vespa/vespalib/util/round_up_to_page_size.h
blob: e3e99470f04243af8584f9e05617a48cbbf882ba (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// Copyright Yahoo. 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);

}