diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-13 12:15:43 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-13 12:15:43 +0000 |
commit | f5f56e1a1c4d9e9496fcb9d81131066a964ccd23 (patch) | |
tree | 49e44c6f87febed37efb953ab5485aa49f6481a7 /src/lib/util/bigints.h | |
parent | Initial commit. (diff) | |
download | isc-kea-f5f56e1a1c4d9e9496fcb9d81131066a964ccd23.tar.xz isc-kea-f5f56e1a1c4d9e9496fcb9d81131066a964ccd23.zip |
Adding upstream version 2.4.1.upstream/2.4.1upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/lib/util/bigints.h')
-rw-r--r-- | src/lib/util/bigints.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/src/lib/util/bigints.h b/src/lib/util/bigints.h new file mode 100644 index 0000000..be76b1d --- /dev/null +++ b/src/lib/util/bigints.h @@ -0,0 +1,26 @@ +// Copyright (C) 2023 Internet Systems Consortium, Inc. ("ISC") +// +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + +// This file provides an interface towards bigint implementations. +// Currently, it uses the ones from boost::multiprecision, but if we ever want +// to swap it out, or implement our own, we can seamlessly do it in this header. + +#ifndef UTIL_BIGINTS_H +#define UTIL_BIGINTS_H + +#include <boost/multiprecision/cpp_int.hpp> + +namespace isc { +namespace util { + +using int128_t = boost::multiprecision::int128_t; + +using uint128_t = boost::multiprecision::uint128_t; + +} // namespace util +} // namespace isc + +#endif // UTIL_BIGINTS_H
\ No newline at end of file |