Skip to content

Commit

Permalink
multiprecision: update and fix copyrights
Browse files Browse the repository at this point in the history
  • Loading branch information
ioxid committed Dec 19, 2024
1 parent 09d0221 commit 81f11dd
Show file tree
Hide file tree
Showing 39 changed files with 242 additions and 26 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
//---------------------------------------------------------------------------//
// Copyright (c) 2024 Andrey Nefedov <[email protected]>
//
// Distributed under the Boost Software License, Version 1.0
// See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt
//---------------------------------------------------------------------------//

#pragma once

#include "nil/crypto3/multiprecision/detail/big_mod/big_mod_impl.hpp" // IWYU pragma: export
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
//---------------------------------------------------------------------------//
// Copyright (c) 2024 Andrey Nefedov <[email protected]>
//
// Distributed under the Boost Software License, Version 1.0
// See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt
//---------------------------------------------------------------------------//

#pragma once

#include "nil/crypto3/multiprecision/detail/big_uint/big_uint_impl.hpp" // IWYU pragma: export
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
//---------------------------------------------------------------------------//
// Copyright (c) 2024 Andrey Nefedov <[email protected]>
//
// Distributed under the Boost Software License, Version 1.0
// See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt
//---------------------------------------------------------------------------//

#pragma once

#include <climits>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//---------------------------------------------------------------------------//
// Copyright (c) 2020 Mikhail Komarov <[email protected]>
// Copyright (c) 2019-2021 Aleksei Moskvin <[email protected]>
// Copyright (c) 2020 Mikhail Komarov <[email protected]>
// Copyright (c) 2020 Ilias Khairullin <[email protected]>
// Copyright (c) 2024 Andrey Nefedov <[email protected]>
//
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//---------------------------------------------------------------------------//
// Copyright (c) 2020 Mikhail Komarov <[email protected]>
// Copyright (c) 2019-2021 Aleksei Moskvin <[email protected]>
// Copyright (c) 2020 Mikhail Komarov <[email protected]>
// Copyright (c) 2020 Ilias Khairullin <[email protected]>
// Copyright (c) 2024 Andrey Nefedov <[email protected]>
//
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//---------------------------------------------------------------------------//
// Copyright (c) 2020 Mikhail Komarov <[email protected]>
// Copyright (c) 2019-2021 Aleksei Moskvin <[email protected]>
// Copyright (c) 2020 Mikhail Komarov <[email protected]>
// Copyright (c) 2020 Ilias Khairullin <[email protected]>
// Copyright (c) 2024 Andrey Nefedov <[email protected]>
//
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
//---------------------------------------------------------------------------//
// Copyright (c) 2024 Andrey Nefedov <[email protected]>
//
// Distributed under the Boost Software License, Version 1.0
// See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt
//---------------------------------------------------------------------------//

#pragma once

#include "nil/crypto3/multiprecision/detail/big_mod/type_traits.hpp"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
//---------------------------------------------------------------------------//
// Copyright (c) 2024 Andrey Nefedov <[email protected]>
//
// Distributed under the Boost Software License, Version 1.0
// See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt
//---------------------------------------------------------------------------//

#pragma once

#include <cstddef>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
//---------------------------------------------------------------------------//
// Copyright (c) 2012 John Maddock
// Copyright (c) 2020 Madhur Chauhan
// Copyright (c) 2020 John Maddock
// Copyright (c) 2024 Andrey Nefedov <[email protected]>
//
// Distributed under the Boost Software License, Version 1.0
// See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt
//---------------------------------------------------------------------------//

#pragma once

#include <algorithm>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
//---------------------------------------------------------------------------//
// Copyright (c) 2012-2022 John Maddock
// Copyright (c) 2022 Christopher Kormanyos
// Copyright (c) 2024 Martun Karapetyan <[email protected]>
// Copyright (c) 2024 Andrey Nefedov <[email protected]>
//
// Distributed under the Boost Software License, Version 1.0
// See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt
//---------------------------------------------------------------------------//

#pragma once

// IWYU pragma: private; include "nil/crypto3/multiprecision/big_uint.hpp"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
///////////////////////////////////////////////////////////////
// Copyright 2012 John Maddock. Distributed under the Boost
// Software License, Version 1.0. (See accompanying file
// LICENSE_1_0.txt or copy at https://www.boost.org/LICENSE_1_0.txt
//---------------------------------------------------------------------------//
// Copyright (c) 2012 John Maddock
// Copyright (c) 2018-2020 Mikhail Komarov <[email protected]>
// Copyright (c) 2024 Andrey Nefedov <[email protected]>
//
// Distributed under the Boost Software License, Version 1.0
// See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt
//---------------------------------------------------------------------------//

#pragma once

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
//---------------------------------------------------------------------------//
// Copyright (c) 2020 Mikhail Komarov <[email protected]>
// Copyright (c) 2021 Aleksei Moskvin <[email protected]>
// Copyright (c) 2024 Andrey Nefedov <[email protected]>
//
// Distributed under the Boost Software License, Version 1.0
// See accompanying file LICENSE_1_0.txt or copy at
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
//---------------------------------------------------------------------------//
// Copyright (c) 2018-2020 Mikhail Komarov <[email protected]>
// Copyright (c) 2021 Aleksei Moskvin <[email protected]>
// Copyright (c) 2024 Andrey Nefedov <[email protected]>
//
// Distributed under the Boost Software License, Version 1.0
// See accompanying file LICENSE_1_0.txt or copy at
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//---------------------------------------------------------------------------//
// Copyright (c) 2020 Mikhail Komarov <[email protected]>
// Copyright (c) 2019-2021 Aleksei Moskvin <[email protected]>
// Copyright (c) 2020 Mikhail Komarov <[email protected]>
// Copyright (c) 2020 Ilias Khairullin <[email protected]>
// Copyright (c) 2024 Andrey Nefedov <[email protected]>
//
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
// Copyright (c) 2018-2020 Mikhail Komarov <[email protected]>
// Copyright (c) 2018-2020 Pavel Kharitonov <[email protected]>
// Copyright (c) 2021 Aleksei Moskvin <[email protected]>
// Copyright (c) 2024 Andrey Nefedov <[email protected]>
//
// Distributed under the Boost Software License, Version 1.0
// See accompanying file LICENSE_1_0.txt or copy at
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
//---------------------------------------------------------------------------//
// Copyright (c) 2018-2020 Mikhail Komarov <[email protected]>
// Copyright (c) 2024 Andrey Nefedov <[email protected]>
//
// Distributed under the Boost Software License, Version 1.0
// See accompanying file LICENSE_1_0.txt or copy at
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
//---------------------------------------------------------------------------//
// Copyright (c) 2024 Andrey Nefedov <[email protected]>
//
// Distributed under the Boost Software License, Version 1.0
// See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt
//---------------------------------------------------------------------------//

#pragma once

#include <bit>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
//---------------------------------------------------------------------------//
// Copyright (c) 2012-2021 John Maddock
// Copyright (c) 2020 Mikhail Komarov <[email protected]>
// Copyright (c) 2020 Ilias Khairullin <[email protected]>
// Copyright (c) 2021 Aleksei Moskvin <[email protected]>
// Copyright (c) 2021 Matt Borland
// Copyright (c) 2024 Andrey Nefedov <[email protected]>
//
// Distributed under the Boost Software License, Version 1.0
// See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt
//---------------------------------------------------------------------------//

#pragma once

#include <climits>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
//---------------------------------------------------------------------------//
// Copyright (c) 2018-2020 Mikhail Komarov <[email protected]>
// Copyright (c) 2024 Andrey Nefedov <[email protected]>
//
// Distributed under the Boost Software License, Version 1.0
// See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt
//---------------------------------------------------------------------------//

#pragma once

#include <algorithm>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
//---------------------------------------------------------------------------//
// Copyright (c) 2021 Matt Borland
// Copyright (c) 2024 Andrey Nefedov <[email protected]>
//
// Distributed under the Boost Software License, Version 1.0
// See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt
//---------------------------------------------------------------------------//

#pragma once

#if !defined(NIL_CO3_MP_FORCEINLINE)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
//---------------------------------------------------------------------------//
// Copyright (c) 2021 Matt Borland
// Copyright (c) 2024 Andrey Nefedov <[email protected]>
//
// Distributed under the Boost Software License, Version 1.0
// See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt
//---------------------------------------------------------------------------//

#pragma once

#include <bits/endian.h>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
//---------------------------------------------------------------------------//
// Copyright (c) 2010-2021 Douglas Gregor
// Copyright (c) 2021 Matt Borland
// Copyright (c) 2024 Andrey Nefedov <[email protected]>
//
// Distributed under the Boost Software License, Version 1.0
// See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt
//---------------------------------------------------------------------------//

#pragma once

#if defined(__SIZEOF_INT128__)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
//---------------------------------------------------------------------------//
// Copyright (c) 2024 Andrey Nefedov <[email protected]>
//
// Distributed under the Boost Software License, Version 1.0
// See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt
//---------------------------------------------------------------------------//

#pragma once

#include <cstddef>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
//---------------------------------------------------------------------------//
// Copyright (c) 2024 Andrey Nefedov <[email protected]>
//
// Distributed under the Boost Software License, Version 1.0
// See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt
//---------------------------------------------------------------------------//

#pragma once

#include <limits>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
//---------------------------------------------------------------------------//
// Copyright (c) 2024 Andrey Nefedov <[email protected]>
//
// Distributed under the Boost Software License, Version 1.0
// See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt
//---------------------------------------------------------------------------//

#pragma once

#include <stdexcept>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
//---------------------------------------------------------------------------//
// Copyright (c) 2020 Madhur Chauhan
// Copyright (c) 2020 John Maddock
// Copyright (c) 2024 Andrey Nefedov <[email protected]>
//
// Distributed under the Boost Software License, Version 1.0
// See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt
//---------------------------------------------------------------------------//

#pragma once

#include "nil/crypto3/multiprecision/detail/big_uint/storage.hpp"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
//---------------------------------------------------------------------------//
// Copyright (c) 2024 Andrey Nefedov <[email protected]>
//
// Distributed under the Boost Software License, Version 1.0
// See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt
//---------------------------------------------------------------------------//

#pragma once

#include "nil/crypto3/multiprecision/detail/integer_ops_base.hpp" // IWYU pragma: export
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
///////////////////////////////////////////////////////////////
// Copyright 2013 John Maddock. Distributed under the Boost
// Software License, Version 1.0. (See accompanying file
// LICENSE_1_0.txt or copy at https://www.boost.org/LICENSE_1_0.txt
//---------------------------------------------------------------------------//
// Copyright (c) 2013 John Maddock
// Copyright (c) 2024 Andrey Nefedov <[email protected]>
//
// Distributed under the Boost Software License, Version 1.0
// See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt
//---------------------------------------------------------------------------//

#pragma once

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
///////////////////////////////////////////////////////////////
// Copyright 2012 John Maddock. Distributed under the Boost
// Software License, Version 1.0. (See accompanying file
// LICENSE_1_0.txt or copy at https://www.boost.org/LICENSE_1_0.txt
//---------------------------------------------------------------------------//
// Copyright (c) 2012 John Maddock
// Copyright (c) 2024 Andrey Nefedov <[email protected]>
//
// Distributed under the Boost Software License, Version 1.0
// See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt
//---------------------------------------------------------------------------//

#pragma once

Expand Down
1 change: 1 addition & 0 deletions crypto3/libs/multiprecision/test/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#---------------------------------------------------------------------------#
# Copyright (c) 2018-2020 Mikhail Komarov <[email protected]>
# Copyright (c) 2018-2021 Aleksei Moskvin <[email protected]>
# Copyright (c) 2024 Andrey Nefedov <[email protected]>
#
# Distributed under the Boost Software License, Version 1.0
# See accompanying file LICENSE_1_0.txt or copy at
Expand Down
8 changes: 8 additions & 0 deletions crypto3/libs/multiprecision/test/big_mod_basic.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
//---------------------------------------------------------------------------//
// Copyright (c) 2024 Andrey Nefedov <[email protected]>
//
// Distributed under the Boost Software License, Version 1.0
// See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt
//---------------------------------------------------------------------------//

#define BOOST_TEST_MODULE big_int_modular_test

#include <cstdint>
Expand Down
1 change: 1 addition & 0 deletions crypto3/libs/multiprecision/test/big_mod_randomized.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
// Copyright (c) 2020 Mikhail Komarov <[email protected]>
// Copyright (c) 2020 Ilias Khairullin <[email protected]>
// Copyright (c) 2024 Martun Karapetyan <[email protected]>
// Copyright (c) 2024 Andrey Nefedov <[email protected]>
//
// Distributed under the Boost Software License, Version 1.0
// See accompanying file LICENSE_1_0.txt or copy at
Expand Down
8 changes: 8 additions & 0 deletions crypto3/libs/multiprecision/test/big_uint.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
//---------------------------------------------------------------------------//
// Copyright (c) 2024 Andrey Nefedov <[email protected]>
//
// Distributed under the Boost Software License, Version 1.0
// See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt
//---------------------------------------------------------------------------//

#define BOOST_TEST_MODULE big_int_test

#include <cstdint>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
//---------------------------------------------------------------------------//
// Copyright (c) 2024 Martun Karapetyan <[email protected]>
// Copyright (c) 2024 Andrey Nefedov <[email protected]>
//
// Distributed under the Boost Software License, Version 1.0
// See accompanying file LICENSE_1_0.txt or copy at
Expand Down
Loading

0 comments on commit 81f11dd

Please sign in to comment.