diff --git a/include/nil/crypto3/multiprecision/complex128.hpp b/include/nil/crypto3/multiprecision/complex128.hpp index 10522bab..16cbd3d8 100644 --- a/include/nil/crypto3/multiprecision/complex128.hpp +++ b/include/nil/crypto3/multiprecision/complex128.hpp @@ -3,8 +3,7 @@ // Software License, Version 1.0. (See accompanying file // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) -#ifndef BOOST_MP_COMPLEX128_HPP -#define BOOST_MP_COMPLEX128_HPP +#pragma once #include #include @@ -23,5 +22,3 @@ namespace nil { } // namespace multiprecision } // namespace crypto3 } // namespace nil - -#endif diff --git a/include/nil/crypto3/multiprecision/complex_adaptor.hpp b/include/nil/crypto3/multiprecision/complex_adaptor.hpp index ce5b2a93..5ff474f4 100644 --- a/include/nil/crypto3/multiprecision/complex_adaptor.hpp +++ b/include/nil/crypto3/multiprecision/complex_adaptor.hpp @@ -3,8 +3,7 @@ // Software License, Version 1.0. (See accompanying file // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) -#ifndef BOOST_MULTIPRECISION_COMPLEX_ADAPTOR_HPP -#define BOOST_MULTIPRECISION_COMPLEX_ADAPTOR_HPP +#pragma once #include #include @@ -834,5 +833,3 @@ namespace nil { } // namespace crypto3 } // namespace nil - -#endif diff --git a/include/nil/crypto3/multiprecision/concepts/mp_number_archetypes.hpp b/include/nil/crypto3/multiprecision/concepts/mp_number_archetypes.hpp index 2af218d8..4ff7d3b5 100644 --- a/include/nil/crypto3/multiprecision/concepts/mp_number_archetypes.hpp +++ b/include/nil/crypto3/multiprecision/concepts/mp_number_archetypes.hpp @@ -3,8 +3,7 @@ // Software License, Version 1.0. (See accompanying file // LICENSE_1_0.txt or copy at https://www.boost.org/LICENSE_1_0.txt -#ifndef BOOST_MATH_CONCEPTS_ER_HPP -#define BOOST_MATH_CONCEPTS_ER_HPP +#pragma once #include #include @@ -242,5 +241,3 @@ namespace std { #ifdef BOOST_MSVC #pragma warning(pop) #endif - -#endif diff --git a/include/nil/crypto3/multiprecision/cpp_bin_float.hpp b/include/nil/crypto3/multiprecision/cpp_bin_float.hpp index f6e68a75..3f5cc5a2 100644 --- a/include/nil/crypto3/multiprecision/cpp_bin_float.hpp +++ b/include/nil/crypto3/multiprecision/cpp_bin_float.hpp @@ -3,8 +3,7 @@ // Software License, Version 1.0. (See accompanying file // LICENSE_1_0.txt or copy at https://www.boost.org/LICENSE_1_0.txt -#ifndef BOOST_MATH_CPP_BIN_FLOAT_HPP -#define BOOST_MATH_CPP_BIN_FLOAT_HPP +#pragma once #include #include @@ -2401,5 +2400,3 @@ namespace std { ExpressionTemplates>>::round_style; } // namespace std - -#endif diff --git a/include/nil/crypto3/multiprecision/cpp_bin_float/io.hpp b/include/nil/crypto3/multiprecision/cpp_bin_float/io.hpp index 3c5b8a2a..a589618f 100644 --- a/include/nil/crypto3/multiprecision/cpp_bin_float/io.hpp +++ b/include/nil/crypto3/multiprecision/cpp_bin_float/io.hpp @@ -3,8 +3,7 @@ // Software License, Version 1.0. (See accompanying file // LICENSE_1_0.txt or copy at https://www.boost.org/LICENSE_1_0.txt -#ifndef BOOST_MP_CPP_BIN_FLOAT_IO_HPP -#define BOOST_MP_CPP_BIN_FLOAT_IO_HPP +#pragma once namespace nil { namespace crypto3 { @@ -693,5 +692,3 @@ namespace nil { } // namespace multiprecision } // namespace crypto3 } // namespace nil - -#endif diff --git a/include/nil/crypto3/multiprecision/cpp_complex.hpp b/include/nil/crypto3/multiprecision/cpp_complex.hpp index eda5f488..364ce5d5 100644 --- a/include/nil/crypto3/multiprecision/cpp_complex.hpp +++ b/include/nil/crypto3/multiprecision/cpp_complex.hpp @@ -3,8 +3,7 @@ // Software License, Version 1.0. (See accompanying file // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) -#ifndef BOOST_MP_CPP_COMPLEX_HPP -#define BOOST_MP_CPP_COMPLEX_HPP +#pragma once #include #include @@ -37,5 +36,3 @@ namespace nil { } // namespace multiprecision } // namespace crypto3 } // namespace nil - -#endif diff --git a/include/nil/crypto3/multiprecision/cpp_dec_float.hpp b/include/nil/crypto3/multiprecision/cpp_dec_float.hpp index 46168c26..4924249f 100644 --- a/include/nil/crypto3/multiprecision/cpp_dec_float.hpp +++ b/include/nil/crypto3/multiprecision/cpp_dec_float.hpp @@ -13,8 +13,7 @@ // can detect noexcept misuse at compile time, the only realistic option is to simply not use it here. // -#ifndef BOOST_MP_CPP_DEC_FLOAT_BACKEND_HPP -#define BOOST_MP_CPP_DEC_FLOAT_BACKEND_HPP +#pragma once #include #include @@ -3555,5 +3554,3 @@ namespace boost { #ifdef BOOST_MSVC #pragma warning(pop) #endif - -#endif diff --git a/include/nil/crypto3/multiprecision/cpp_int.hpp b/include/nil/crypto3/multiprecision/cpp_int.hpp index 2015c8f9..c0944cc1 100644 --- a/include/nil/crypto3/multiprecision/cpp_int.hpp +++ b/include/nil/crypto3/multiprecision/cpp_int.hpp @@ -3,8 +3,7 @@ // Software License, Version 1.0. (See accompanying file // LICENSE_1_0.txt or copy at https://www.boost.org/LICENSE_1_0.txt -#ifndef BOOST_MP_CPP_INT_HPP -#define BOOST_MP_CPP_INT_HPP +#pragma once #ifndef TVM #include @@ -2767,9 +2766,6 @@ namespace nil { #include #include #include -#include #include #include //#include - -#endif diff --git a/include/nil/crypto3/multiprecision/cpp_int/add.hpp b/include/nil/crypto3/multiprecision/cpp_int/add.hpp index 32b222d7..9be1c2db 100644 --- a/include/nil/crypto3/multiprecision/cpp_int/add.hpp +++ b/include/nil/crypto3/multiprecision/cpp_int/add.hpp @@ -5,8 +5,7 @@ // // Comparison operators for cpp_int_backend: // -#ifndef BOOST_MP_CPP_INT_ADD_HPP -#define BOOST_MP_CPP_INT_ADD_HPP +#pragma once #include #include @@ -605,5 +604,3 @@ namespace nil { } // namespace multiprecision } // namespace crypto3 } // namespace nil - -#endif diff --git a/include/nil/crypto3/multiprecision/cpp_int/add_unsigned.hpp b/include/nil/crypto3/multiprecision/cpp_int/add_unsigned.hpp index 7cd69af6..d7ad0dd0 100644 --- a/include/nil/crypto3/multiprecision/cpp_int/add_unsigned.hpp +++ b/include/nil/crypto3/multiprecision/cpp_int/add_unsigned.hpp @@ -4,8 +4,7 @@ // Software License, Version 1.0. (See accompanying file // LICENSE_1_0.txt or copy at https://www.boost.org/LICENSE_1_0.txt -#ifndef BOOST_MP_ADD_UNSIGNED_ADDC_32_HPP -#define BOOST_MP_ADD_UNSIGNED_ADDC_32_HPP +#pragma once #include @@ -382,5 +381,3 @@ namespace nil { } // namespace multiprecision } // namespace crypto3 } // namespace nil - -#endif diff --git a/include/nil/crypto3/multiprecision/cpp_int/bitwise.hpp b/include/nil/crypto3/multiprecision/cpp_int/bitwise.hpp index 7213e7fb..8661a59b 100644 --- a/include/nil/crypto3/multiprecision/cpp_int/bitwise.hpp +++ b/include/nil/crypto3/multiprecision/cpp_int/bitwise.hpp @@ -5,8 +5,7 @@ // // Comparison operators for cpp_int_backend: // -#ifndef BOOST_MP_CPP_INT_BIT_HPP -#define BOOST_MP_CPP_INT_BIT_HPP +#pragma once #ifdef _MSC_VER #pragma warning(push) @@ -962,5 +961,3 @@ namespace nil { #ifdef _MSC_VER #pragma warning(pop) #endif - -#endif diff --git a/include/nil/crypto3/multiprecision/cpp_int/checked.hpp b/include/nil/crypto3/multiprecision/cpp_int/checked.hpp index 10d09b0c..6f762654 100644 --- a/include/nil/crypto3/multiprecision/cpp_int/checked.hpp +++ b/include/nil/crypto3/multiprecision/cpp_int/checked.hpp @@ -3,8 +3,7 @@ // Software License, Version 1.0. (See accompanying file // LICENSE_1_0.txt or copy at https://www.boost.org/LICENSE_1_0.txt -#ifndef BOOST_MP_CPP_INT_CHECKED_HPP -#define BOOST_MP_CPP_INT_CHECKED_HPP +#pragma once namespace nil { namespace crypto3 { @@ -151,5 +150,3 @@ namespace nil { } // namespace multiprecision } // namespace crypto3 } // namespace nil - -#endif diff --git a/include/nil/crypto3/multiprecision/cpp_int/comparison.hpp b/include/nil/crypto3/multiprecision/cpp_int/comparison.hpp index ad7b4a8b..ab96b0bb 100644 --- a/include/nil/crypto3/multiprecision/cpp_int/comparison.hpp +++ b/include/nil/crypto3/multiprecision/cpp_int/comparison.hpp @@ -5,8 +5,7 @@ // // Comparison operators for cpp_int_backend: // -#ifndef BOOST_MP_CPP_INT_COMPARISON_HPP -#define BOOST_MP_CPP_INT_COMPARISON_HPP +#pragma once #include @@ -396,5 +395,3 @@ namespace nil { } // namespace multiprecision } // namespace crypto3 } // namespace nil - -#endif diff --git a/include/nil/crypto3/multiprecision/cpp_int/cpp_int_config.hpp b/include/nil/crypto3/multiprecision/cpp_int/cpp_int_config.hpp index 38c355f7..16ff83ff 100644 --- a/include/nil/crypto3/multiprecision/cpp_int/cpp_int_config.hpp +++ b/include/nil/crypto3/multiprecision/cpp_int/cpp_int_config.hpp @@ -3,8 +3,7 @@ // Software License, Version 1.0. (See accompanying file // LICENSE_1_0.txt or copy at https://www.boost.org/LICENSE_1_0.txt -#ifndef BOOST_MP_CPP_INT_CORE_HPP -#define BOOST_MP_CPP_INT_CORE_HPP +#pragma once #include #include @@ -222,5 +221,3 @@ namespace nil { } // namespace multiprecision } // namespace crypto3 } // namespace nil - -#endif // BOOST_MP_CPP_INT_CORE_HPP diff --git a/include/nil/crypto3/multiprecision/cpp_int/divide.hpp b/include/nil/crypto3/multiprecision/cpp_int/divide.hpp index 977aca1f..e582ffee 100644 --- a/include/nil/crypto3/multiprecision/cpp_int/divide.hpp +++ b/include/nil/crypto3/multiprecision/cpp_int/divide.hpp @@ -5,8 +5,7 @@ // // Comparison operators for cpp_int_backend: // -#ifndef BOOST_MP_CPP_INT_DIV_HPP -#define BOOST_MP_CPP_INT_DIV_HPP +#pragma once namespace nil { namespace crypto3 { @@ -720,5 +719,3 @@ namespace nil { } // namespace multiprecision } // namespace crypto3 } // namespace nil - -#endif diff --git a/include/nil/crypto3/multiprecision/cpp_int/eval_jacobi.hpp b/include/nil/crypto3/multiprecision/cpp_int/eval_jacobi.hpp index 6e09ee09..8a054752 100644 --- a/include/nil/crypto3/multiprecision/cpp_int/eval_jacobi.hpp +++ b/include/nil/crypto3/multiprecision/cpp_int/eval_jacobi.hpp @@ -7,8 +7,7 @@ // http://www.boost.org/LICENSE_1_0.txt //---------------------------------------------------------------------------// -#ifndef BOOST_MULTIPRECISION_EVAL_JACOBI_HPP -#define BOOST_MULTIPRECISION_EVAL_JACOBI_HPP +#pragma once #include @@ -82,5 +81,3 @@ namespace nil { } // namespace multiprecision } // namespace crypto3 } // namespace nil - -#endif // BOOST_MULTIPRECISION_EVAL_JACOBI_HPP diff --git a/include/nil/crypto3/multiprecision/cpp_int/import_export.hpp b/include/nil/crypto3/multiprecision/cpp_int/import_export.hpp index de6978e6..2d7b4170 100644 --- a/include/nil/crypto3/multiprecision/cpp_int/import_export.hpp +++ b/include/nil/crypto3/multiprecision/cpp_int/import_export.hpp @@ -3,8 +3,7 @@ // Software License, Version 1.0. (See accompanying file // LICENSE_1_0.txt or copy at https://www.boost.org/LICENSE_1_0.txt -#ifndef BOOST_MP_CPP_INT_IMPORT_EXPORT_HPP -#define BOOST_MP_CPP_INT_IMPORT_EXPORT_HPP +#pragma once #include @@ -276,5 +275,3 @@ namespace nil { } // namespace multiprecision } // namespace crypto3 } // namespace nil - -#endif // BOOST_MP_CPP_INT_IMPORT_EXPORT_HPP diff --git a/include/nil/crypto3/multiprecision/cpp_int/intel_intrinsics.hpp b/include/nil/crypto3/multiprecision/cpp_int/intel_intrinsics.hpp index 36bdf08d..d337e523 100644 --- a/include/nil/crypto3/multiprecision/cpp_int/intel_intrinsics.hpp +++ b/include/nil/crypto3/multiprecision/cpp_int/intel_intrinsics.hpp @@ -5,8 +5,8 @@ // Software License, Version 1.0. (See accompanying file // LICENSE_1_0.txt or copy at https://www.boost.org/LICENSE_1_0.txt -#ifndef BOOST_MP_INTEL_INTRINSICS_HPP -#define BOOST_MP_INTEL_INTRINSICS_HPP +#pragma once + // // Select which actual implementation header to use: // @@ -126,5 +126,3 @@ namespace nil { #endif #endif - -#endif diff --git a/include/nil/crypto3/multiprecision/cpp_int/limits.hpp b/include/nil/crypto3/multiprecision/cpp_int/limits.hpp index ff5b34bb..c78ff70b 100644 --- a/include/nil/crypto3/multiprecision/cpp_int/limits.hpp +++ b/include/nil/crypto3/multiprecision/cpp_int/limits.hpp @@ -5,8 +5,7 @@ // // Comparison operators for cpp_int_backend: // -#ifndef BOOST_MP_CPP_INT_LIM_HPP -#define BOOST_MP_CPP_INT_LIM_HPP +#pragma once #include @@ -482,5 +481,3 @@ namespace std { #endif } // namespace std - -#endif diff --git a/include/nil/crypto3/multiprecision/cpp_int/literals.hpp b/include/nil/crypto3/multiprecision/cpp_int/literals.hpp index eefb2a0a..06b92697 100644 --- a/include/nil/crypto3/multiprecision/cpp_int/literals.hpp +++ b/include/nil/crypto3/multiprecision/cpp_int/literals.hpp @@ -3,8 +3,7 @@ // Software License, Version 1.0. (See accompanying file // LICENSE_1_0.txt or copy at https://www.boost.org/LICENSE_1_0.txt -#ifndef BOOST_MP_CPP_INT_LITERALS_HPP -#define BOOST_MP_CPP_INT_LITERALS_HPP +#pragma once #include @@ -292,5 +291,3 @@ namespace nil { } // namespace multiprecision } // namespace crypto3 } // namespace nil - -#endif // BOOST_MP_CPP_INT_CORE_HPP diff --git a/include/nil/crypto3/multiprecision/cpp_int/misc.hpp b/include/nil/crypto3/multiprecision/cpp_int/misc.hpp index a3e2a6ec..33137818 100644 --- a/include/nil/crypto3/multiprecision/cpp_int/misc.hpp +++ b/include/nil/crypto3/multiprecision/cpp_int/misc.hpp @@ -7,8 +7,7 @@ // // Comparison operators for cpp_int_backend: // -#ifndef BOOST_MP_CPP_INT_MISC_HPP -#define BOOST_MP_CPP_INT_MISC_HPP +#pragma once #include #include // lsb etc @@ -1542,5 +1541,3 @@ namespace nil { } // namespace multiprecision } // namespace crypto3 } // namespace nil - -#endif diff --git a/include/nil/crypto3/multiprecision/cpp_int/multiply.hpp b/include/nil/crypto3/multiprecision/cpp_int/multiply.hpp index fdb8f00a..47c36c2b 100644 --- a/include/nil/crypto3/multiprecision/cpp_int/multiply.hpp +++ b/include/nil/crypto3/multiprecision/cpp_int/multiply.hpp @@ -7,8 +7,7 @@ // // Comparison operators for cpp_int_backend: // -#ifndef BOOST_MP_CPP_INT_MUL_HPP -#define BOOST_MP_CPP_INT_MUL_HPP +#pragma once #include @@ -1009,5 +1008,3 @@ namespace nil { } // namespace multiprecision } // namespace crypto3 } // namespace nil - -#endif diff --git a/include/nil/crypto3/multiprecision/cpp_int/serialize.hpp b/include/nil/crypto3/multiprecision/cpp_int/serialize.hpp deleted file mode 100644 index 1e343b86..00000000 --- a/include/nil/crypto3/multiprecision/cpp_int/serialize.hpp +++ /dev/null @@ -1,203 +0,0 @@ -/////////////////////////////////////////////////////////////// -// 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 - -#ifndef BOOST_MP_CPP_INT_SERIALIZE_HPP -#define BOOST_MP_CPP_INT_SERIALIZE_HPP - -namespace boost { - - namespace archive { - - class binary_oarchive; - class binary_iarchive; - - } // namespace archive - - namespace serialization { - - namespace mp = nil::crypto3::multiprecision; - - namespace cpp_int_detail { - - using namespace nil::crypto3::multiprecision; - using namespace nil::crypto3::multiprecision::backends; - - template - struct is_binary_archive : public std::integral_constant { }; - template<> - struct is_binary_archive : public std::integral_constant { }; - template<> - struct is_binary_archive : public std::integral_constant { }; - - // - // We have 8 serialization methods to fill out (and test), they are all permutations of: - // Load vs Store. - // Trivial or non-trivial cpp_int type. - // Binary or not archive. - // - template - void do_serialize(Archive& ar, Int& val, std::integral_constant const&, - std::integral_constant const&, std::integral_constant const&) { - // Load. - // Non-trivial. - // Non binary. - - using boost::make_nvp; - bool s; - ar& make_nvp("sign", s); - std::size_t limb_count; - std::size_t byte_count; - ar& make_nvp("byte-count", byte_count); - limb_count = byte_count / sizeof(limb_type) + ((byte_count % sizeof(limb_type)) ? 1 : 0); - val.resize(limb_count, limb_count); - limb_type* pl = val.limbs(); - for (std::size_t i = 0; i < limb_count; ++i) { - pl[i] = 0; - for (std::size_t j = 0; (j < sizeof(limb_type)) && byte_count; ++j) { - unsigned char byte; - ar& make_nvp("byte", byte); - pl[i] |= static_cast(byte) << (j * CHAR_BIT); - --byte_count; - } - } - if (s != val.sign()) - val.negate(); - val.normalize(); - } - template - void do_serialize(Archive& ar, Int& val, std::integral_constant const&, - std::integral_constant const&, std::integral_constant const&) { - // Store. - // Non-trivial. - // Non binary. - - using boost::make_nvp; - bool s = val.sign(); - ar& make_nvp("sign", s); - limb_type* pl = val.limbs(); - std::size_t limb_count = val.size(); - std::size_t byte_count = limb_count * sizeof(limb_type); - ar& make_nvp("byte-count", byte_count); - - for (std::size_t i = 0; i < limb_count; ++i) { - limb_type l = pl[i]; - for (std::size_t j = 0; j < sizeof(limb_type); ++j) { - unsigned char byte = static_cast((l >> (j * CHAR_BIT)) & ((1u << CHAR_BIT) - 1)); - ar& make_nvp("byte", byte); - } - } - } - template - void do_serialize(Archive& ar, Int& val, std::integral_constant const&, - std::integral_constant const&, std::integral_constant const&) { - // Load. - // Trivial. - // Non binary. - using boost::make_nvp; - bool s; - typename Int::local_limb_type l = 0; - ar& make_nvp("sign", s); - std::size_t byte_count; - ar& make_nvp("byte-count", byte_count); - for (std::size_t i = 0; i < byte_count; ++i) { - unsigned char b; - ar& make_nvp("byte", b); - l |= static_cast(b) << (i * CHAR_BIT); - } - *val.limbs() = l; - if (s != val.sign()) - val.negate(); - } - template - void do_serialize(Archive& ar, Int& val, std::integral_constant const&, - std::integral_constant const&, std::integral_constant const&) { - // Store. - // Trivial. - // Non binary. - using boost::make_nvp; - bool s = val.sign(); - typename Int::local_limb_type l = *val.limbs(); - ar& make_nvp("sign", s); - std::size_t limb_count = sizeof(l); - ar& make_nvp("byte-count", limb_count); - for (std::size_t i = 0; i < limb_count; ++i) { - unsigned char b = - static_cast(static_cast(l >> (i * CHAR_BIT)) & - static_cast((1u << CHAR_BIT) - 1)); - ar& make_nvp("byte", b); - } - } - template - void do_serialize(Archive& ar, Int& val, std::integral_constant const&, - std::integral_constant const&, std::integral_constant const&) { - // Load. - // Non-trivial. - // Binary. - bool s; - std::size_t c; - ar& s; - ar& c; - val.resize(c, c); - ar.load_binary(val.limbs(), c * sizeof(limb_type)); - if (s != val.sign()) - val.negate(); - val.normalize(); - } - template - void do_serialize(Archive& ar, Int& val, std::integral_constant const&, - std::integral_constant const&, std::integral_constant const&) { - // Store. - // Non-trivial. - // Binary. - bool s = val.sign(); - std::size_t c = val.size(); - ar& s; - ar& c; - ar.save_binary(val.limbs(), c * sizeof(limb_type)); - } - template - void do_serialize(Archive& ar, Int& val, std::integral_constant const&, - std::integral_constant const&, std::integral_constant const&) { - // Load. - // Trivial. - // Binary. - bool s; - ar& s; - ar.load_binary(val.limbs(), sizeof(*val.limbs())); - if (s != val.sign()) - val.negate(); - } - template - void do_serialize(Archive& ar, Int& val, std::integral_constant const&, - std::integral_constant const&, std::integral_constant const&) { - // Store. - // Trivial. - // Binary. - bool s = val.sign(); - ar& s; - ar.save_binary(val.limbs(), sizeof(*val.limbs())); - } - - } // namespace cpp_int_detail - - template - void serialize(Archive& ar, mp::cpp_int_backend& val, - const unsigned int /*version*/) { - using archive_save_tag = typename Archive::is_saving; - using save_tag = std::integral_constant; - using trivial_tag = - std::integral_constant>::value>; - using binary_tag = typename cpp_int_detail::is_binary_archive::type; - - // Just dispatch to the correct method: - cpp_int_detail::do_serialize(ar, val, save_tag(), trivial_tag(), binary_tag()); - } - - } // namespace serialization -} // namespace boost - -#endif // BOOST_MP_CPP_INT_SERIALIZE_HPP diff --git a/include/nil/crypto3/multiprecision/cpp_int/value_pack.hpp b/include/nil/crypto3/multiprecision/cpp_int/value_pack.hpp index a0612d5b..83bdafca 100644 --- a/include/nil/crypto3/multiprecision/cpp_int/value_pack.hpp +++ b/include/nil/crypto3/multiprecision/cpp_int/value_pack.hpp @@ -3,8 +3,7 @@ // Software License, Version 1.0. (See accompanying file // LICENSE_1_0.txt or copy at https://www.boost.org/LICENSE_1_0.txt -#ifndef BOOST_MP_CPP_INT_VP_HPP -#define BOOST_MP_CPP_INT_VP_HPP +#pragma once namespace nil { namespace crypto3 { @@ -45,5 +44,3 @@ namespace nil { } // namespace multiprecision } // namespace crypto3 } // namespace nil - -#endif // BOOST_MP_CPP_INT_CORE_HPP diff --git a/include/nil/crypto3/multiprecision/cpp_modular.hpp b/include/nil/crypto3/multiprecision/cpp_modular.hpp index bcd97a2b..350049d8 100644 --- a/include/nil/crypto3/multiprecision/cpp_modular.hpp +++ b/include/nil/crypto3/multiprecision/cpp_modular.hpp @@ -7,8 +7,7 @@ // http://www.boost.org/LICENSE_1_0.txt //---------------------------------------------------------------------------// -#ifndef BOOST_MP_CPP_MODULAR_HPP -#define BOOST_MP_CPP_MODULAR_HPP +#pragma once #include #include @@ -96,5 +95,3 @@ namespace nil { } // namespace multiprecision } // namespace crypto3 } // namespace nil - -#endif diff --git a/include/nil/crypto3/multiprecision/debug_adaptor.hpp b/include/nil/crypto3/multiprecision/debug_adaptor.hpp index 90534715..05cc2935 100644 --- a/include/nil/crypto3/multiprecision/debug_adaptor.hpp +++ b/include/nil/crypto3/multiprecision/debug_adaptor.hpp @@ -3,8 +3,7 @@ // Software License, Version 1.0. (See accompanying file // LICENSE_1_0.txt or copy at https://www.boost.org/LICENSE_1_0.txt -#ifndef BOOST_MATH_DEBUG_ADAPTER_HPP -#define BOOST_MATH_DEBUG_ADAPTER_HPP +#pragma once #include #include @@ -509,5 +508,3 @@ namespace boost { } // namespace math } // namespace boost - -#endif diff --git a/include/nil/crypto3/multiprecision/detail/atomic.hpp b/include/nil/crypto3/multiprecision/detail/atomic.hpp index 861433ad..9c324a6c 100644 --- a/include/nil/crypto3/multiprecision/detail/atomic.hpp +++ b/include/nil/crypto3/multiprecision/detail/atomic.hpp @@ -4,8 +4,7 @@ // Software License, Version 1.0. (See accompanying file // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) -#ifndef BOOST_MT_ATOMIC_DETAIL_HPP -#define BOOST_MT_ATOMIC_DETAIL_HPP +#pragma once #include @@ -67,5 +66,3 @@ namespace nil { } // namespace multiprecision } // namespace crypto3 } // namespace nil - -#endif // BOOST_MATH_ATOMIC_DETAIL_HPP diff --git a/include/nil/crypto3/multiprecision/detail/bitscan.hpp b/include/nil/crypto3/multiprecision/detail/bitscan.hpp index 8ff667af..5e68cf09 100644 --- a/include/nil/crypto3/multiprecision/detail/bitscan.hpp +++ b/include/nil/crypto3/multiprecision/detail/bitscan.hpp @@ -5,8 +5,7 @@ // // Comparison operators for cpp_int_backend: // -#ifndef BOOST_MP_DETAIL_BITSCAN_HPP -#define BOOST_MP_DETAIL_BITSCAN_HPP +#pragma once #ifndef TVM #include @@ -270,5 +269,3 @@ namespace nil { } // namespace multiprecision } // namespace crypto3 } // namespace nil - -#endif diff --git a/include/nil/crypto3/multiprecision/detail/constexpr.hpp b/include/nil/crypto3/multiprecision/detail/constexpr.hpp index 64b1e5e0..a2ca81aa 100644 --- a/include/nil/crypto3/multiprecision/detail/constexpr.hpp +++ b/include/nil/crypto3/multiprecision/detail/constexpr.hpp @@ -3,8 +3,7 @@ // Software License, Version 1.0. (See accompanying file // LICENSE_1_0.txt or copy at https://www.boost.org/LICENSE_1_0.txt -#ifndef BOOST_MP_CONSTEXPR_HPP -#define BOOST_MP_CONSTEXPR_HPP +#pragma once #include @@ -76,5 +75,3 @@ namespace nil { } // namespace multiprecision } // namespace crypto3 } // namespace nil - -#endif diff --git a/include/nil/crypto3/multiprecision/detail/default_ops.hpp b/include/nil/crypto3/multiprecision/detail/default_ops.hpp index 2ccf7310..41479d79 100644 --- a/include/nil/crypto3/multiprecision/detail/default_ops.hpp +++ b/include/nil/crypto3/multiprecision/detail/default_ops.hpp @@ -3,8 +3,7 @@ // Software License, Version 1.0. (See accompanying file // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) -#ifndef BOOST_MATH_BIG_NUM_DEF_OPS -#define BOOST_MATH_BIG_NUM_DEF_OPS +#pragma once #include // BOOST_TRY #ifndef TVM @@ -846,7 +845,7 @@ namespace nil { return val.compare(static_cast(0)) == 0; } template - inline BOOST_MP_CXX14_CONSTEXPR int eval_get_sign(const T& val) { + inline BOOST_MP_CXX14_CONSTEXPR int eval_get_sign(const T &val) { using ui_type = typename std::tuple_element<0, typename T::unsigned_types>::type; return val.compare(static_cast(0)); } @@ -3842,5 +3841,3 @@ namespace boost { // min/max overloads: // #include - -#endif diff --git a/include/nil/crypto3/multiprecision/detail/digits.hpp b/include/nil/crypto3/multiprecision/detail/digits.hpp index e8acaa99..17dca412 100644 --- a/include/nil/crypto3/multiprecision/detail/digits.hpp +++ b/include/nil/crypto3/multiprecision/detail/digits.hpp @@ -3,8 +3,7 @@ // Software License, Version 1.0. (See accompanying file // LICENSE_1_0.txt or copy at https://www.boost.org/LICENSE_1_0.txt -#ifndef BOOST_MP_DIGITS_HPP -#define BOOST_MP_DIGITS_HPP +#pragma once namespace nil { namespace crypto3 { @@ -23,5 +22,3 @@ namespace nil { } // namespace multiprecision } // namespace crypto3 } // namespace nil - -#endif diff --git a/include/nil/crypto3/multiprecision/detail/dynamic_array.hpp b/include/nil/crypto3/multiprecision/detail/dynamic_array.hpp index f85dd2f8..304be17a 100644 --- a/include/nil/crypto3/multiprecision/detail/dynamic_array.hpp +++ b/include/nil/crypto3/multiprecision/detail/dynamic_array.hpp @@ -5,8 +5,7 @@ // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // -#ifndef BOOST_MP_DETAIL_DYNAMIC_ARRAY_HPP -#define BOOST_MP_DETAIL_DYNAMIC_ARRAY_HPP +#pragma once #include #include @@ -39,5 +38,3 @@ namespace nil { } // namespace multiprecision } // namespace crypto3 } // namespace nil - -#endif // BOOST_MP_DETAIL_DYNAMIC_ARRAY_HPP diff --git a/include/nil/crypto3/multiprecision/detail/et_ops.hpp b/include/nil/crypto3/multiprecision/detail/et_ops.hpp index 15b9e1dc..1755daf4 100644 --- a/include/nil/crypto3/multiprecision/detail/et_ops.hpp +++ b/include/nil/crypto3/multiprecision/detail/et_ops.hpp @@ -7,8 +7,7 @@ // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) -#ifndef BOOST_MP_ET_OPS_HPP -#define BOOST_MP_ET_OPS_HPP +#pragma once namespace nil { namespace crypto3 { @@ -1943,5 +1942,3 @@ namespace nil { } // namespace multiprecision } // namespace crypto3 } // namespace nil - -#endif diff --git a/include/nil/crypto3/multiprecision/detail/generic_interconvert.hpp b/include/nil/crypto3/multiprecision/detail/generic_interconvert.hpp index f9b5e89a..9b67c519 100644 --- a/include/nil/crypto3/multiprecision/detail/generic_interconvert.hpp +++ b/include/nil/crypto3/multiprecision/detail/generic_interconvert.hpp @@ -8,8 +8,7 @@ // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) -#ifndef BOOST_MP_GENERIC_INTERCONVERT_HPP -#define BOOST_MP_GENERIC_INTERCONVERT_HPP +#pragma once #include @@ -620,5 +619,3 @@ namespace nil { #ifdef BOOST_MSVC #pragma warning(pop) #endif - -#endif // BOOST_MP_GENERIC_INTERCONVERT_HPP diff --git a/include/nil/crypto3/multiprecision/detail/integer_ops.hpp b/include/nil/crypto3/multiprecision/detail/integer_ops.hpp index e71df9e3..d21cd9bb 100644 --- a/include/nil/crypto3/multiprecision/detail/integer_ops.hpp +++ b/include/nil/crypto3/multiprecision/detail/integer_ops.hpp @@ -3,8 +3,7 @@ // Software License, Version 1.0. (See accompanying file // LICENSE_1_0.txt or copy at https://www.boost.org/LICENSE_1_0.txt -#ifndef BOOST_MP_INT_FUNC_HPP -#define BOOST_MP_INT_FUNC_HPP +#pragma once #include @@ -522,5 +521,3 @@ namespace nil { } // namespace multiprecision } // namespace crypto3 } // namespace nil - -#endif diff --git a/include/nil/crypto3/multiprecision/detail/min_max.hpp b/include/nil/crypto3/multiprecision/detail/min_max.hpp index 057b7060..f202f9a5 100644 --- a/include/nil/crypto3/multiprecision/detail/min_max.hpp +++ b/include/nil/crypto3/multiprecision/detail/min_max.hpp @@ -3,8 +3,7 @@ // Software License, Version 1.0. (See accompanying file // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) -#ifndef BOOST_MP_MIN_MAX_HPP -#define BOOST_MP_MIN_MAX_HPP +#pragma once #include @@ -124,5 +123,3 @@ namespace nil { } // namespace multiprecision } // namespace crypto3 } // namespace nil - -#endif diff --git a/include/nil/crypto3/multiprecision/detail/no_et_ops.hpp b/include/nil/crypto3/multiprecision/detail/no_et_ops.hpp index ca717ee2..e2782920 100644 --- a/include/nil/crypto3/multiprecision/detail/no_et_ops.hpp +++ b/include/nil/crypto3/multiprecision/detail/no_et_ops.hpp @@ -7,8 +7,7 @@ // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) -#ifndef BOOST_MP_NO_ET_OPS_HPP -#define BOOST_MP_NO_ET_OPS_HPP +#pragma once #ifdef BOOST_MSVC #pragma warning(push) @@ -794,5 +793,3 @@ namespace nil { #ifdef BOOST_MSVC #pragma warning(pop) #endif - -#endif // BOOST_MP_NO_ET_OPS_HPP diff --git a/include/nil/crypto3/multiprecision/detail/number_base.hpp b/include/nil/crypto3/multiprecision/detail/number_base.hpp index a89329f2..5d2e1c1f 100644 --- a/include/nil/crypto3/multiprecision/detail/number_base.hpp +++ b/include/nil/crypto3/multiprecision/detail/number_base.hpp @@ -3,8 +3,7 @@ // Software License, Version 1.0. (See accompanying file // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) -#ifndef BOOST_MATH_BIG_NUM_BASE_HPP -#define BOOST_MATH_BIG_NUM_BASE_HPP +#pragma once #include #include @@ -1846,5 +1845,3 @@ namespace boost { #ifdef BOOST_MSVC #pragma warning(pop) #endif - -#endif // BOOST_MATH_BIG_NUM_BASE_HPP diff --git a/include/nil/crypto3/multiprecision/detail/number_compare.hpp b/include/nil/crypto3/multiprecision/detail/number_compare.hpp index cc4d5e1f..5c562b34 100644 --- a/include/nil/crypto3/multiprecision/detail/number_compare.hpp +++ b/include/nil/crypto3/multiprecision/detail/number_compare.hpp @@ -3,8 +3,7 @@ // Software License, Version 1.0. (See accompanying file // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) -#ifndef BOOST_MP_COMPARE_HPP -#define BOOST_MP_COMPARE_HPP +#pragma once #include @@ -1120,5 +1119,3 @@ namespace nil { } // namespace multiprecision } // namespace crypto3 } // namespace nil - -#endif // BOOST_MP_COMPARE_HPP diff --git a/include/nil/crypto3/multiprecision/detail/precision.hpp b/include/nil/crypto3/multiprecision/detail/precision.hpp index 6289dda7..cffbf0d4 100644 --- a/include/nil/crypto3/multiprecision/detail/precision.hpp +++ b/include/nil/crypto3/multiprecision/detail/precision.hpp @@ -3,8 +3,7 @@ // Software License, Version 1.0. (See accompanying file // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) -#ifndef BOOST_MP_PRECISION_HPP -#define BOOST_MP_PRECISION_HPP +#pragma once #include #include @@ -192,5 +191,3 @@ namespace nil { } // namespace multiprecision } // namespace crypto3 } // namespace nil - -#endif // BOOST_MP_IS_BACKEND_HPP diff --git a/include/nil/crypto3/multiprecision/detail/rebind.hpp b/include/nil/crypto3/multiprecision/detail/rebind.hpp index 4f6ffc4a..c0249dce 100644 --- a/include/nil/crypto3/multiprecision/detail/rebind.hpp +++ b/include/nil/crypto3/multiprecision/detail/rebind.hpp @@ -5,8 +5,7 @@ // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // -#ifndef BOOST_MP_DETAIL_REBIND_HPP -#define BOOST_MP_DETAIL_REBIND_HPP +#pragma once namespace nil { namespace crypto3 { @@ -22,5 +21,3 @@ namespace nil { } // namespace multiprecision } // namespace crypto3 } // namespace nil - -#endif // BOOST_MP_DETAIL_REBIND_HPP diff --git a/include/nil/crypto3/multiprecision/float128.hpp b/include/nil/crypto3/multiprecision/float128.hpp index f3cf88be..e0345151 100644 --- a/include/nil/crypto3/multiprecision/float128.hpp +++ b/include/nil/crypto3/multiprecision/float128.hpp @@ -3,8 +3,7 @@ // Software License, Version 1.0. (See accompanying file // LICENSE_1_0.txt or copy at https://www.boost.org/LICENSE_1_0.txt -#ifndef BOOST_MP_FLOAT128_HPP -#define BOOST_MP_FLOAT128_HPP +#pragma once #include #include @@ -926,5 +925,3 @@ namespace std { nil::crypto3::multiprecision::backends::float128_backend, ExpressionTemplates>>::has_denorm; } // namespace std - -#endif diff --git a/include/nil/crypto3/multiprecision/gmp.hpp b/include/nil/crypto3/multiprecision/gmp.hpp index 0d78ea0f..5a99030e 100644 --- a/include/nil/crypto3/multiprecision/gmp.hpp +++ b/include/nil/crypto3/multiprecision/gmp.hpp @@ -3,8 +3,7 @@ // Software License, Version 1.0. (See accompanying file // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) -#ifndef BOOST_MATH_ER_GMP_BACKEND_HPP -#define BOOST_MATH_ER_GMP_BACKEND_HPP +#pragma once #include #include @@ -3080,5 +3079,3 @@ namespace std { #endif } // namespace std - -#endif diff --git a/include/nil/crypto3/multiprecision/integer.hpp b/include/nil/crypto3/multiprecision/integer.hpp index 8408196f..8251c756 100644 --- a/include/nil/crypto3/multiprecision/integer.hpp +++ b/include/nil/crypto3/multiprecision/integer.hpp @@ -3,8 +3,7 @@ // Software License, Version 1.0. (See accompanying file // LICENSE_1_0.txt or copy at https://www.boost.org/LICENSE_1_0.txt -#ifndef BOOST_MP_INTEGER_HPP -#define BOOST_MP_INTEGER_HPP +#pragma once #include #include @@ -267,5 +266,3 @@ namespace nil { } // namespace multiprecision } // namespace crypto3 } // namespace nil - -#endif diff --git a/include/nil/crypto3/multiprecision/inverse.hpp b/include/nil/crypto3/multiprecision/inverse.hpp index 5f9b7079..3bc73622 100644 --- a/include/nil/crypto3/multiprecision/inverse.hpp +++ b/include/nil/crypto3/multiprecision/inverse.hpp @@ -6,8 +6,7 @@ // http://www.boost.org/LICENSE_1_0.txt //---------------------------------------------------------------------------// -#ifndef BOOST_MULTIPRECISION_INVERSE_HPP -#define BOOST_MULTIPRECISION_INVERSE_HPP +#pragma once #include @@ -76,5 +75,3 @@ namespace nil { } // namespace multiprecision } // namespace crypto3 } // namespace nil - -#endif diff --git a/include/nil/crypto3/multiprecision/jacobi.hpp b/include/nil/crypto3/multiprecision/jacobi.hpp index 43445f19..2ab28d2c 100644 --- a/include/nil/crypto3/multiprecision/jacobi.hpp +++ b/include/nil/crypto3/multiprecision/jacobi.hpp @@ -7,8 +7,7 @@ // http://www.boost.org/LICENSE_1_0.txt //---------------------------------------------------------------------------// -#ifndef BOOST_MULTIPRECISION_JACOBI_HPP -#define BOOST_MULTIPRECISION_JACOBI_HPP +#pragma once #include @@ -33,5 +32,3 @@ namespace nil { } // namespace multiprecision } // namespace crypto3 } // namespace nil - -#endif // BOOST_MULTIPRECISION_JACOBI_HPP diff --git a/include/nil/crypto3/multiprecision/logged_adaptor.hpp b/include/nil/crypto3/multiprecision/logged_adaptor.hpp index fe37cf1f..576450ea 100644 --- a/include/nil/crypto3/multiprecision/logged_adaptor.hpp +++ b/include/nil/crypto3/multiprecision/logged_adaptor.hpp @@ -3,8 +3,7 @@ // Software License, Version 1.0. (See accompanying file // LICENSE_1_0.txt or copy at https://www.boost.org/LICENSE_1_0.txt -#ifndef BOOST_MATH_LOGGED_ADAPTER_HPP -#define BOOST_MATH_LOGGED_ADAPTER_HPP +#pragma once #include #include @@ -614,5 +613,3 @@ namespace boost { #undef NON_MEMBER_OP2 #undef NON_MEMBER_OP3 #undef NON_MEMBER_OP4 - -#endif diff --git a/include/nil/crypto3/multiprecision/miller_rabin.hpp b/include/nil/crypto3/multiprecision/miller_rabin.hpp index b94ee52f..93477a7d 100644 --- a/include/nil/crypto3/multiprecision/miller_rabin.hpp +++ b/include/nil/crypto3/multiprecision/miller_rabin.hpp @@ -3,8 +3,7 @@ // Software License, Version 1.0. (See accompanying file // LICENSE_1_0.txt or copy at https://www.boost.org/LICENSE_1_0.txt -#ifndef BOOST_MP_MR_HPP -#define BOOST_MP_MR_HPP +#pragma once #include #include @@ -183,5 +182,3 @@ namespace nil { } // namespace multiprecision } // namespace crypto3 } // namespace nil - -#endif diff --git a/include/nil/crypto3/multiprecision/modular/base_params.hpp b/include/nil/crypto3/multiprecision/modular/base_params.hpp index 12a38065..f472fcec 100644 --- a/include/nil/crypto3/multiprecision/modular/base_params.hpp +++ b/include/nil/crypto3/multiprecision/modular/base_params.hpp @@ -8,8 +8,7 @@ // http://www.boost.org/LICENSE_1_0.txt //---------------------------------------------------------------------------// -#ifndef BOOST_MULTIPRECISION_BASE_PARAMS_HPP -#define BOOST_MULTIPRECISION_BASE_PARAMS_HPP +#pragma once #include @@ -74,5 +73,4 @@ namespace nil { } // namespace backends } // namespace multiprecision } // namespace crypto3 -} // namespace nil -#endif // BOOST_MULTIPRECISION_BASE_PARAMS_HPP +} // namespace nil \ No newline at end of file diff --git a/include/nil/crypto3/multiprecision/modular/inverse.hpp b/include/nil/crypto3/multiprecision/modular/inverse.hpp index a8a86aeb..2bdfa477 100644 --- a/include/nil/crypto3/multiprecision/modular/inverse.hpp +++ b/include/nil/crypto3/multiprecision/modular/inverse.hpp @@ -7,8 +7,7 @@ // http://www.boost.org/LICENSE_1_0.txt //---------------------------------------------------------------------------// -#ifndef BOOST_MULTIPRECISION_MODULAR_BACKENDS_INVERSE_HPP -#define BOOST_MULTIPRECISION_MODULAR_BACKENDS_INVERSE_HPP +#pragma once #include #include @@ -358,5 +357,3 @@ namespace nil { } // namespace multiprecision } // namespace crypto3 } // namespace nil - -#endif diff --git a/include/nil/crypto3/multiprecision/modular/modular_adaptor.hpp b/include/nil/crypto3/multiprecision/modular/modular_adaptor.hpp index 581a7206..aa10d44b 100644 --- a/include/nil/crypto3/multiprecision/modular/modular_adaptor.hpp +++ b/include/nil/crypto3/multiprecision/modular/modular_adaptor.hpp @@ -8,8 +8,7 @@ // http://www.boost.org/LICENSE_1_0.txt //---------------------------------------------------------------------------// -#ifndef BOOST_MULTIPRECISION_MODULAR_ADAPTOR_HPP -#define BOOST_MULTIPRECISION_MODULAR_ADAPTOR_HPP +#pragma once #include #include @@ -679,5 +678,3 @@ namespace nil { } // namespace multiprecision } // namespace crypto3 } // namespace nil - -#endif diff --git a/include/nil/crypto3/multiprecision/modular/modular_params.hpp b/include/nil/crypto3/multiprecision/modular/modular_params.hpp index adaf5e4c..2e1cea0f 100644 --- a/include/nil/crypto3/multiprecision/modular/modular_params.hpp +++ b/include/nil/crypto3/multiprecision/modular/modular_params.hpp @@ -8,8 +8,7 @@ // http://www.boost.org/LICENSE_1_0.txt //---------------------------------------------------------------------------// -#ifndef BOOST_MULTIPRECISION_MODULAR_PARAMS_HPP -#define BOOST_MULTIPRECISION_MODULAR_PARAMS_HPP +#pragma once #include #include @@ -107,5 +106,3 @@ namespace nil { } // namespace multiprecision } // namespace crypto3 } // namespace nil - -#endif //_MULTIPRECISION_MODULAR_PARAMS_HPP diff --git a/include/nil/crypto3/multiprecision/modular/montgomery_params.hpp b/include/nil/crypto3/multiprecision/modular/montgomery_params.hpp index b064ecbc..cbf43ed1 100644 --- a/include/nil/crypto3/multiprecision/modular/montgomery_params.hpp +++ b/include/nil/crypto3/multiprecision/modular/montgomery_params.hpp @@ -8,8 +8,7 @@ // http://www.boost.org/LICENSE_1_0.txt //---------------------------------------------------------------------------// -#ifndef BOOST_MULTIPRECISION_MONTGOMERY_PARAMS_HPP -#define BOOST_MULTIPRECISION_MONTGOMERY_PARAMS_HPP +#pragma once #include @@ -201,5 +200,3 @@ namespace nil { } // namespace multiprecision } // namespace crypto3 } // namespace nil - -#endif diff --git a/include/nil/crypto3/multiprecision/mpc.hpp b/include/nil/crypto3/multiprecision/mpc.hpp index 0cddd51e..0da84eaa 100644 --- a/include/nil/crypto3/multiprecision/mpc.hpp +++ b/include/nil/crypto3/multiprecision/mpc.hpp @@ -3,8 +3,7 @@ // Software License, Version 1.0. (See accompanying file // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) -#ifndef BOOST_MULTIPRECISION_MPC_HPP -#define BOOST_MULTIPRECISION_MPC_HPP +#pragma once #include #include @@ -1299,5 +1298,3 @@ namespace nil { } // namespace multiprecision } // namespace crypto3 } // namespace nil - -#endif diff --git a/include/nil/crypto3/multiprecision/mpfi.hpp b/include/nil/crypto3/multiprecision/mpfi.hpp index 5b4b0387..3dc0c85c 100644 --- a/include/nil/crypto3/multiprecision/mpfi.hpp +++ b/include/nil/crypto3/multiprecision/mpfi.hpp @@ -3,8 +3,7 @@ // Software License, Version 1.0. (See accompanying file // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) -#ifndef BOOST_MATH_BN_MPFI_HPP -#define BOOST_MATH_BN_MPFI_HPP +#pragma once #include #include @@ -1792,4 +1791,3 @@ namespace std { nil::crypto3::multiprecision::mpfi_float_backend<0>, ExpressionTemplates>>::round_style; } // namespace std -#endif diff --git a/include/nil/crypto3/multiprecision/mpfr.hpp b/include/nil/crypto3/multiprecision/mpfr.hpp index 0ae234f4..bf8f522d 100644 --- a/include/nil/crypto3/multiprecision/mpfr.hpp +++ b/include/nil/crypto3/multiprecision/mpfr.hpp @@ -3,8 +3,7 @@ // Software License, Version 1.0. (See accompanying file // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) -#ifndef BOOST_MATH_BN_MPFR_HPP -#define BOOST_MATH_BN_MPFR_HPP +#pragma once #include #include @@ -2936,4 +2935,3 @@ namespace std { nil::crypto3::multiprecision::mpfr_float_backend<0>, ExpressionTemplates>>::round_style; } // namespace std -#endif diff --git a/include/nil/crypto3/multiprecision/number.hpp b/include/nil/crypto3/multiprecision/number.hpp index 79cc1efa..aa716b56 100644 --- a/include/nil/crypto3/multiprecision/number.hpp +++ b/include/nil/crypto3/multiprecision/number.hpp @@ -7,8 +7,7 @@ // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) -#ifndef BOOST_MATH_EXTENDED_REAL_HPP -#define BOOST_MATH_EXTENDED_REAL_HPP +#pragma once #include #include @@ -2364,5 +2363,3 @@ struct std::hash - -#endif diff --git a/include/nil/crypto3/multiprecision/random.hpp b/include/nil/crypto3/multiprecision/random.hpp index 2cb3c2bc..883422ba 100644 --- a/include/nil/crypto3/multiprecision/random.hpp +++ b/include/nil/crypto3/multiprecision/random.hpp @@ -5,8 +5,7 @@ // Software License, Version 1.0. (See accompanying file // LICENSE_1_0.txt or copy at https://www.boost.org/LICENSE_1_0.txt -#ifndef BOOST_MP_RANDOM_HPP -#define BOOST_MP_RANDOM_HPP +#pragma once #if defined(__GNUC__) || defined(_MSC_VER) #pragma message( \ @@ -14,5 +13,3 @@ #endif #include - -#endif diff --git a/include/nil/crypto3/multiprecision/rational_adaptor.hpp b/include/nil/crypto3/multiprecision/rational_adaptor.hpp index 1be302b0..79066e79 100644 --- a/include/nil/crypto3/multiprecision/rational_adaptor.hpp +++ b/include/nil/crypto3/multiprecision/rational_adaptor.hpp @@ -3,8 +3,7 @@ // Software License, Version 1.0. (See accompanying file // LICENSE_1_0.txt or copy at https://www.boost.org/LICENSE_1_0.txt -#ifndef BOOST_MATH_RATIONAL_ADAPTER_HPP -#define BOOST_MATH_RATIONAL_ADAPTER_HPP +#pragma once #include #include @@ -373,5 +372,3 @@ namespace std { ExpressionTemplates>>::is_exact; } // namespace std - -#endif diff --git a/include/nil/crypto3/multiprecision/ressol.hpp b/include/nil/crypto3/multiprecision/ressol.hpp index 91399c75..ddba244a 100644 --- a/include/nil/crypto3/multiprecision/ressol.hpp +++ b/include/nil/crypto3/multiprecision/ressol.hpp @@ -8,8 +8,7 @@ // http://www.boost.org/LICENSE_1_0.txt //---------------------------------------------------------------------------// -#ifndef BOOST_MULTIPRECISION_RESSOL_HPP -#define BOOST_MULTIPRECISION_RESSOL_HPP +#pragma once #include #include @@ -337,5 +336,3 @@ namespace nil { } // namespace multiprecision } // namespace crypto3 } // namespace nil - -#endif // BOOST_MULTIPRECISION_RESSOL_HPP diff --git a/include/nil/crypto3/multiprecision/tommath.hpp b/include/nil/crypto3/multiprecision/tommath.hpp index ce05e26b..b0e39921 100644 --- a/include/nil/crypto3/multiprecision/tommath.hpp +++ b/include/nil/crypto3/multiprecision/tommath.hpp @@ -3,8 +3,7 @@ // Software License, Version 1.0. (See accompanying file // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) -#ifndef BOOST_MATH_MP_TOMMATH_BACKEND_HPP -#define BOOST_MATH_MP_TOMMATH_BACKEND_HPP +#pragma once #include #include @@ -875,5 +874,3 @@ namespace std { nil::crypto3::multiprecision::tommath_int, ExpressionTemplates>>::round_style; } // namespace std - -#endif diff --git a/include/nil/crypto3/multiprecision/traits/explicit_conversion.hpp b/include/nil/crypto3/multiprecision/traits/explicit_conversion.hpp index a84ee7a5..69bbeae8 100644 --- a/include/nil/crypto3/multiprecision/traits/explicit_conversion.hpp +++ b/include/nil/crypto3/multiprecision/traits/explicit_conversion.hpp @@ -4,8 +4,7 @@ // Software License, Version 1.0. (See accompanying file // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) -#ifndef BOOST_MP_EXPLICIT_CONVERTIBLE_HPP -#define BOOST_MP_EXPLICIT_CONVERTIBLE_HPP +#pragma once #include #include // number_category @@ -62,5 +61,3 @@ namespace nil { } // namespace multiprecision } // namespace crypto3 } // namespace nil - -#endif diff --git a/include/nil/crypto3/multiprecision/traits/is_backend.hpp b/include/nil/crypto3/multiprecision/traits/is_backend.hpp index 1fcf9389..eccf92b8 100644 --- a/include/nil/crypto3/multiprecision/traits/is_backend.hpp +++ b/include/nil/crypto3/multiprecision/traits/is_backend.hpp @@ -3,8 +3,7 @@ // Software License, Version 1.0. (See accompanying file // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) -#ifndef BOOST_MP_IS_BACKEND_HPP -#define BOOST_MP_IS_BACKEND_HPP +#pragma once #include @@ -87,5 +86,3 @@ namespace nil { } // namespace multiprecision } // namespace crypto3 } // namespace nil - -#endif // BOOST_MP_IS_BACKEND_HPP diff --git a/include/nil/crypto3/multiprecision/traits/is_byte_container.hpp b/include/nil/crypto3/multiprecision/traits/is_byte_container.hpp index 597284cb..071215c2 100644 --- a/include/nil/crypto3/multiprecision/traits/is_byte_container.hpp +++ b/include/nil/crypto3/multiprecision/traits/is_byte_container.hpp @@ -3,8 +3,7 @@ // Software License, Version 1.0. (See accompanying file // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) -#ifndef BOOST_IS_BYTE_CONTAINER_HPP -#define BOOST_IS_BYTE_CONTAINER_HPP +#pragma once #include #include @@ -43,5 +42,3 @@ namespace nil { } // namespace multiprecision } // namespace crypto3 } // namespace nil - -#endif // BOOST_IS_BYTE_CONTAINER_HPP diff --git a/include/nil/crypto3/multiprecision/traits/is_complex.hpp b/include/nil/crypto3/multiprecision/traits/is_complex.hpp index 91009fbf..490e9fd0 100644 --- a/include/nil/crypto3/multiprecision/traits/is_complex.hpp +++ b/include/nil/crypto3/multiprecision/traits/is_complex.hpp @@ -3,8 +3,7 @@ // Software License, Version 1.0. (See accompanying file // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) -#ifndef BOOST_MP_IS_COMPLEX_HPP -#define BOOST_MP_IS_COMPLEX_HPP +#pragma once #include #include @@ -24,5 +23,3 @@ namespace nil { } // namespace multiprecision } // namespace crypto3 } // namespace nil - -#endif // BOOST_MP_IS_BACKEND_HPP diff --git a/include/nil/crypto3/multiprecision/traits/is_restricted_conversion.hpp b/include/nil/crypto3/multiprecision/traits/is_restricted_conversion.hpp index 8d1f2cf7..93d8d6c5 100644 --- a/include/nil/crypto3/multiprecision/traits/is_restricted_conversion.hpp +++ b/include/nil/crypto3/multiprecision/traits/is_restricted_conversion.hpp @@ -4,8 +4,7 @@ // Software License, Version 1.0. (See accompanying file // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) -#ifndef BOOST_MP_RESTRICTED_CONVERSION_HPP -#define BOOST_MP_RESTRICTED_CONVERSION_HPP +#pragma once #include #include @@ -45,5 +44,3 @@ namespace nil { } // namespace multiprecision } // namespace crypto3 } // namespace nil - -#endif // BOOST_MP_RESTRICTED_CONVERSION_HPP diff --git a/include/nil/crypto3/multiprecision/traits/is_variable_precision.hpp b/include/nil/crypto3/multiprecision/traits/is_variable_precision.hpp index 8d984f5d..35853baf 100644 --- a/include/nil/crypto3/multiprecision/traits/is_variable_precision.hpp +++ b/include/nil/crypto3/multiprecision/traits/is_variable_precision.hpp @@ -3,8 +3,7 @@ // Software License, Version 1.0. (See accompanying file // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) -#ifndef BOOST_MP_IS_VARIABLE_PRECISION_HPP -#define BOOST_MP_IS_VARIABLE_PRECISION_HPP +#pragma once #include @@ -24,5 +23,3 @@ namespace nil { } // namespace multiprecision } // namespace crypto3 } // namespace nil - -#endif // BOOST_MP_IS_BACKEND_HPP diff --git a/include/nil/crypto3/multiprecision/traits/std_integer_traits.hpp b/include/nil/crypto3/multiprecision/traits/std_integer_traits.hpp index 2cbc533e..586e6f9e 100644 --- a/include/nil/crypto3/multiprecision/traits/std_integer_traits.hpp +++ b/include/nil/crypto3/multiprecision/traits/std_integer_traits.hpp @@ -3,8 +3,7 @@ // Software License, Version 1.0. (See accompanying file // LICENSE_1_0.txt or copy at https://www.boost.org/LICENSE_1_0.txt -#ifndef BOOST_MP_STD_INTEGER_TRAITS_HPP -#define BOOST_MP_STD_INTEGER_TRAITS_HPP +#pragma once #include @@ -68,5 +67,3 @@ namespace nil { } // namespace multiprecision } // namespace crypto3 } // namespace nil - -#endif diff --git a/include/nil/crypto3/multiprecision/traits/transcendental_reduction_type.hpp b/include/nil/crypto3/multiprecision/traits/transcendental_reduction_type.hpp index 88c117ca..aaaabc36 100644 --- a/include/nil/crypto3/multiprecision/traits/transcendental_reduction_type.hpp +++ b/include/nil/crypto3/multiprecision/traits/transcendental_reduction_type.hpp @@ -3,8 +3,7 @@ // Software License, Version 1.0. (See accompanying file // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) -#ifndef BOOST_MP_TRANS_RED_TYPE_HPP -#define BOOST_MP_TRANS_RED_TYPE_HPP +#pragma once namespace nil { namespace crypto3 { @@ -20,5 +19,3 @@ namespace nil { } // namespace multiprecision } // namespace crypto3 } // namespace nil - -#endif // BOOST_MP_TRANS_RED_TYPE_HPP diff --git a/performance/arithmetic_backend.hpp b/performance/arithmetic_backend.hpp index 38b3cdd0..e8a69d84 100644 --- a/performance/arithmetic_backend.hpp +++ b/performance/arithmetic_backend.hpp @@ -3,8 +3,7 @@ // Software License, Version 1.0. (See accompanying file // LICENSE_1_0.txt or copy at https://www.boost.org/LICENSE_1_0.txt -#ifndef BOOST_MATH_FLOAT_BACKEND_HPP -#define BOOST_MATH_FLOAT_BACKEND_HPP +#pragma once #include #include @@ -664,5 +663,3 @@ class numeric_limits : public std::numeric_ } // namespace std #include - -#endif