Kagome
Polkadot Runtime Engine in C++17
kagome::math Namespace Reference

Functions

template<size_t X, typename T >
constexpr T roundUp (T t)
 

Detailed Description

Copyright Soramitsu Co., Ltd. All Rights Reserved. SPDX-License-Identifier: Apache-2.0

Function Documentation

template<size_t X, typename T >
constexpr T kagome::math::roundUp ( t)
inline

Obtain closest multiple of X that is greater or equal to given number

Template Parameters
Xmultiple that is POW of 2
Ttype of number
Parameters
tgiven number
Returns
closest multiple

Definition at line 21 of file math.hpp.