Kea 2.5.8
bigints.h
Go to the documentation of this file.
1// Copyright (C) 2023 Internet Systems Consortium, Inc. ("ISC")
2//
3// This Source Code Form is subject to the terms of the Mozilla Public
4// License, v. 2.0. If a copy of the MPL was not distributed with this
5// file, You can obtain one at http://mozilla.org/MPL/2.0/.
6
7// This file provides an interface towards bigint implementations.
8// Currently, it uses the ones from boost::multiprecision, but if we ever want
9// to swap it out, or implement our own, we can seamlessly do it in this header.
10
11#ifndef UTIL_BIGINTS_H
12#define UTIL_BIGINTS_H
13
14#include <boost/multiprecision/cpp_int.hpp>
15
16namespace isc {
17namespace util {
18
19using int128_t = boost::multiprecision::checked_int128_t;
20
21using uint128_t = boost::multiprecision::checked_uint128_t;
22
23} // namespace util
24} // namespace isc
25
26#endif // UTIL_BIGINTS_H
boost::multiprecision::checked_int128_t int128_t
Definition: bigints.h:19
boost::multiprecision::checked_uint128_t uint128_t
Definition: bigints.h:21
Defines the logger used by the top-level component of kea-lfc.