Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 0 additions & 13 deletions include/boost/decimal/decimal128_t.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -530,10 +530,6 @@ BOOST_DECIMAL_EXPORT class decimal128_t final
BOOST_DECIMAL_REQUIRES_RETURN(detail::is_integral_v, Integer, std::partial_ordering);
#endif

#if !defined(BOOST_DECIMAL_DISABLE_IOSTREAM)
friend inline std::string bit_string(decimal128_t rhs) noexcept;
#endif

// 3.6.4 Same Quantum
friend constexpr auto samequantumd128(const decimal128_t& lhs, const decimal128_t& rhs) noexcept -> bool;

Expand Down Expand Up @@ -606,15 +602,6 @@ BOOST_DECIMAL_EXPORT class decimal128_t final
friend constexpr auto fmad128(decimal128_t x, decimal128_t y, decimal128_t z) noexcept -> decimal128_t;
};

#if !defined(BOOST_DECIMAL_DISABLE_IOSTREAM)
inline std::string bit_string(decimal128_t rhs) noexcept
{
std::stringstream ss;
ss << std::hex << rhs.bits_.high << rhs.bits_.low;
return ss.str();
}
#endif

#ifdef BOOST_DECIMAL_HAS_INT128

constexpr auto from_bits(const detail::builtin_uint128_t rhs) noexcept -> decimal128_t
Expand Down
14 changes: 0 additions & 14 deletions include/boost/decimal/decimal32_t.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,6 @@ BOOST_DECIMAL_EXPORT class decimal32_t final // NOLINT(cppcoreguidelines-special
// Debug bit pattern
friend constexpr auto from_bits(std::uint32_t bits) noexcept -> decimal32_t;
friend BOOST_DECIMAL_CXX20_CONSTEXPR auto to_bits(decimal32_t rhs) noexcept -> std::uint32_t;
friend inline auto debug_pattern(decimal32_t rhs) noexcept -> void;

// Equality template between any integer type and decimal32_t
template <BOOST_DECIMAL_DECIMAL_FLOATING_TYPE Decimal, BOOST_DECIMAL_INTEGRAL Integer>
Expand Down Expand Up @@ -2037,19 +2036,6 @@ constexpr auto decimal32_t::operator%=(const decimal32_t rhs) noexcept -> decima
return *this;
}

// LCOV_EXCL_START
inline auto debug_pattern(const decimal32_t rhs) noexcept -> void
{
#if !defined(BOOST_DECIMAL_DISABLE_IOSTREAM)
std::cerr << "Sig: " << rhs.full_significand()
<< "\nExp: " << rhs.biased_exponent()
<< "\nNeg: " << rhs.isneg() << std::endl;
#else
static_cast<void>(rhs);
#endif
}
// LCOV_EXCL_STOP

BOOST_DECIMAL_CXX20_CONSTEXPR decimal32_t::operator float() const noexcept
{
return to_float<decimal32_t, float>(*this);
Expand Down
20 changes: 0 additions & 20 deletions include/boost/decimal/detail/config.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -272,26 +272,6 @@ typedef unsigned __int128 builtin_uint128_t;
# define BOOST_DECIMAL_NO_CONSTEVAL_DETECTION
#endif

#if defined(__clang__)
# if defined __has_feature
# if __has_feature(thread_sanitizer) || __has_feature(address_sanitizer) || __has_feature(thread_sanitizer)
# define BOOST_DECIMAL_REDUCE_TEST_DEPTH
# endif
# endif
#elif defined(__GNUC__)
# if defined(__SANITIZE_THREAD__) || defined(__SANITIZE_ADDRESS__) || defined(__SANITIZE_THREAD__)
# define BOOST_DECIMAL_REDUCE_TEST_DEPTH
# endif
#elif defined(_MSC_VER)
# if defined(_DEBUG) || defined(__SANITIZE_ADDRESS__)
# define BOOST_DECIMAL_REDUCE_TEST_DEPTH
# endif
#endif

#if !defined(BOOST_DECIMAL_REDUCE_TEST_DEPTH) && ((defined(UBSAN) && (UBSAN == 1)))
# define BOOST_DECIMAL_REDUCE_TEST_DEPTH
#endif

#if defined(__clang__) && __clang_major__ < 19
# define BOOST_DECIMAL_CLANG_STATIC static
#else
Expand Down
1 change: 1 addition & 0 deletions test/compare_dec128_and_fast.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
// Distributed under the Boost Software License, Version 1.0.
// https://www.boost.org/LICENSE_1_0.txt

#include "testing_config.hpp"
#include <boost/decimal.hpp>
#include <random>
#include <limits>
Expand Down
1 change: 1 addition & 0 deletions test/random_decimal128_comp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
// Distributed under the Boost Software License, Version 1.0.
// https://www.boost.org/LICENSE_1_0.txt

#include "testing_config.hpp"
#include <boost/decimal.hpp>
#include <boost/core/lightweight_test.hpp>
#include <random>
Expand Down
1 change: 1 addition & 0 deletions test/random_decimal128_fast_comp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
// Distributed under the Boost Software License, Version 1.0.
// https://www.boost.org/LICENSE_1_0.txt

#include "testing_config.hpp"
#include <boost/decimal.hpp>
#include <boost/core/lightweight_test.hpp>
#include <random>
Expand Down
1 change: 1 addition & 0 deletions test/random_decimal128_fast_math.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
// Distributed under the Boost Software License, Version 1.0.
// https://www.boost.org/LICENSE_1_0.txt

#include "testing_config.hpp"
#include <boost/decimal.hpp>
#include <random>
#include <limits>
Expand Down
1 change: 1 addition & 0 deletions test/random_decimal128_math.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
// Distributed under the Boost Software License, Version 1.0.
// https://www.boost.org/LICENSE_1_0.txt

#include "testing_config.hpp"
#include <boost/decimal.hpp>
#include <random>
#include <limits>
Expand Down
1 change: 1 addition & 0 deletions test/random_decimal32_comp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
#include <boost/decimal.hpp>
#endif

#include "testing_config.hpp"
#include <boost/core/lightweight_test.hpp>
#include <iostream>
#include <random>
Expand Down
1 change: 1 addition & 0 deletions test/random_decimal32_fast_comp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
#include <boost/decimal.hpp>
#endif

#include "testing_config.hpp"
#include <boost/core/lightweight_test.hpp>
#include <iostream>
#include <random>
Expand Down
1 change: 1 addition & 0 deletions test/random_decimal32_fast_math.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
#include <boost/decimal.hpp>
#endif

#include "testing_config.hpp"
#include <boost/core/lightweight_test.hpp>
#include <iostream>
#include <random>
Expand Down
1 change: 1 addition & 0 deletions test/random_decimal32_math.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
// Distributed under the Boost Software License, Version 1.0.
// https://www.boost.org/LICENSE_1_0.txt

#include "testing_config.hpp"
#include <boost/decimal/decimal32_t.hpp>
#include <boost/decimal/iostream.hpp>
#include <random>
Expand Down
1 change: 1 addition & 0 deletions test/random_decimal64_comp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
// Distributed under the Boost Software License, Version 1.0.
// https://www.boost.org/LICENSE_1_0.txt

#include "testing_config.hpp"
#include <boost/decimal/decimal64_t.hpp>
#include <boost/decimal/iostream.hpp>
#include <boost/core/lightweight_test.hpp>
Expand Down
1 change: 1 addition & 0 deletions test/random_decimal64_fast_comp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
// Distributed under the Boost Software License, Version 1.0.
// https://www.boost.org/LICENSE_1_0.txt

#include "testing_config.hpp"
#include <boost/decimal/decimal_fast64_t.hpp>
#include <boost/decimal/iostream.hpp>
#include <boost/decimal/cmath.hpp>
Expand Down
1 change: 1 addition & 0 deletions test/random_decimal64_fast_math.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
// Distributed under the Boost Software License, Version 1.0.
// https://www.boost.org/LICENSE_1_0.txt

#include "testing_config.hpp"
#include <boost/decimal.hpp>
#include <random>
#include <limits>
Expand Down
1 change: 1 addition & 0 deletions test/random_decimal64_math.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
// Distributed under the Boost Software License, Version 1.0.
// https://www.boost.org/LICENSE_1_0.txt

#include "testing_config.hpp"
#include <boost/decimal.hpp>
#include <random>
#include <limits>
Expand Down
1 change: 1 addition & 0 deletions test/random_mixed_decimal_comp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
// Distributed under the Boost Software License, Version 1.0.
// https://www.boost.org/LICENSE_1_0.txt

#include "testing_config.hpp"
#include <boost/decimal.hpp>
#include <boost/core/lightweight_test.hpp>
#include <random>
Expand Down
1 change: 1 addition & 0 deletions test/random_mixed_decimal_math.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
// Distributed under the Boost Software License, Version 1.0.
// https://www.boost.org/LICENSE_1_0.txt

#include "testing_config.hpp"
#include <boost/decimal.hpp>
#include <random>
#include <limits>
Expand Down
2 changes: 1 addition & 1 deletion test/roundtrip_decimal128.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// https://www.boost.org/LICENSE_1_0.txt

#include "mini_to_chars.hpp"

#include "testing_config.hpp"
#include <boost/decimal.hpp>

#if defined(__clang__)
Expand Down
2 changes: 1 addition & 1 deletion test/roundtrip_decimal128_fast.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// https://www.boost.org/LICENSE_1_0.txt

#include "mini_to_chars.hpp"

#include "testing_config.hpp"
#include <boost/decimal.hpp>

#if defined(__clang__)
Expand Down
2 changes: 1 addition & 1 deletion test/roundtrip_decimal32.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// https://www.boost.org/LICENSE_1_0.txt

#include "mini_to_chars.hpp"

#include "testing_config.hpp"
#include <boost/decimal/decimal32_t.hpp>
#include <boost/decimal/decimal64_t.hpp>
#include <boost/decimal/iostream.hpp>
Expand Down
2 changes: 1 addition & 1 deletion test/roundtrip_decimal32_fast.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// https://www.boost.org/LICENSE_1_0.txt

#include "mini_to_chars.hpp"

#include "testing_config.hpp"
#include <boost/decimal.hpp>
#include <limits>
#include <random>
Expand Down
2 changes: 1 addition & 1 deletion test/roundtrip_decimal64.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// https://www.boost.org/LICENSE_1_0.txt

#include "mini_to_chars.hpp"

#include "testing_config.hpp"
#include <boost/decimal.hpp>
#include <limits>
#include <random>
Expand Down
1 change: 1 addition & 0 deletions test/test_acos.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
// Propogates up from boost.math
#define _SILENCE_CXX23_DENORM_DEPRECATION_WARNING

#include "testing_config.hpp"
#include <boost/decimal.hpp>

#if defined(__clang__)
Expand Down
1 change: 1 addition & 0 deletions test/test_acosh.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
// Distributed under the Boost Software License, Version 1.0.
// https://www.boost.org/LICENSE_1_0.txt

#include "testing_config.hpp"
#include <chrono>
#include <iomanip>
#include <iostream>
Expand Down
1 change: 1 addition & 0 deletions test/test_asin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
// Propogates up from boost.math
#define _SILENCE_CXX23_DENORM_DEPRECATION_WARNING

#include "testing_config.hpp"
#include <boost/decimal.hpp>

#if defined(__clang__)
Expand Down
1 change: 1 addition & 0 deletions test/test_asinh.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
// Distributed under the Boost Software License, Version 1.0.
// https://www.boost.org/LICENSE_1_0.txt

#include "testing_config.hpp"
#include <chrono>
#include <iomanip>
#include <iostream>
Expand Down
1 change: 1 addition & 0 deletions test/test_assoc_laguerre.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
// Propogates up from boost.math
#define _SILENCE_CXX23_DENORM_DEPRECATION_WARNING

#include "testing_config.hpp"
#include <boost/decimal.hpp>

#if defined(__clang__)
Expand Down
1 change: 1 addition & 0 deletions test/test_assoc_legendre.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
// Propogates up from boost.math
#define _SILENCE_CXX23_DENORM_DEPRECATION_WARNING

#include "testing_config.hpp"
#include <boost/decimal.hpp>

#if defined(__clang__)
Expand Down
1 change: 1 addition & 0 deletions test/test_atan.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
// Propogates up from boost.math
#define _SILENCE_CXX23_DENORM_DEPRECATION_WARNING

#include "testing_config.hpp"
#include <boost/decimal.hpp>

#if defined(__clang__)
Expand Down
1 change: 1 addition & 0 deletions test/test_atan2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
// Propagates up from boost.math
#define _SILENCE_CXX23_DENORM_DEPRECATION_WARNING

#include "testing_config.hpp"
#include <boost/decimal.hpp>

#if defined(__clang__)
Expand Down
1 change: 1 addition & 0 deletions test/test_atanh.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
// Distributed under the Boost Software License, Version 1.0.
// https://www.boost.org/LICENSE_1_0.txt

#include "testing_config.hpp"
#include <chrono>
#include <iomanip>
#include <iostream>
Expand Down
1 change: 1 addition & 0 deletions test/test_beta.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
// Propagates up from boost.math
#define _SILENCE_CXX23_DENORM_DEPRECATION_WARNING

#include "testing_config.hpp"
#include <boost/decimal.hpp>

#if defined(__clang__)
Expand Down
1 change: 1 addition & 0 deletions test/test_cbrt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
// Distributed under the Boost Software License, Version 1.0.
// https://www.boost.org/LICENSE_1_0.txt

#include "testing_config.hpp"
#include <boost/decimal.hpp>

#if defined(__clang__)
Expand Down
1 change: 1 addition & 0 deletions test/test_cmath.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
// Propogates up from boost.math
#define _SILENCE_CXX23_DENORM_DEPRECATION_WARNING

#include "testing_config.hpp"
#include <boost/decimal/decimal32_t.hpp>
#include <boost/decimal/decimal64_t.hpp>
#include <boost/decimal/decimal128_t.hpp>
Expand Down
1 change: 1 addition & 0 deletions test/test_cosh.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
// Distributed under the Boost Software License, Version 1.0.
// https://www.boost.org/LICENSE_1_0.txt

#include "testing_config.hpp"
#include <chrono>
#include <iomanip>
#include <iostream>
Expand Down
Loading