| Kea 3.0.2-git

bigints.h
Go to the documentation of this file.
1// Copyright (C) 2023-2024 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
16 namespace isc {
17 namespace util {
18
19 using int128_t = boost::multiprecision::checked_int128_t;
20
21 using uint128_t = boost::multiprecision::checked_uint128_t;
22
23} // namespace util
24} // namespace isc
25
26#endif // UTIL_BIGINTS_H
isc::util
Definition time_utils.cc:43
isc::util::int128_t
boost::multiprecision::checked_int128_t int128_t
Definition bigints.h:19
isc::util::uint128_t
boost::multiprecision::checked_uint128_t uint128_t
Definition bigints.h:21
isc
Defines the logger used by the top-level component of kea-lfc.
Definition agent_parser.cc:148