Files
Louis Dionne 585da50d7d [third-party] Add a snapshot of Boost.Math 1.89 standalone (#141508)
This PR adds the code of Boost.Math as of version 1.89 into the
third-party directory, as discussed in a recent RFC [1].

The goal is for this code to be used as a back-end for the C++17
Math Special Functions.

As explained in third-paty/README.md, this code is cleared for
usage inside libc++ for the Math Special functions, however
the LLVM Foundation should be consulted before using this
code anywhere else in the LLVM project, due to the fact
that it is under the Boost Software License (as opposed
to the usual LLVM license). See the RFC [1] for more details.

[1]: https://discourse.llvm.org/t/rfc-libc-taking-a-dependency-on-boost-math-for-the-c-17-math-special-functions
2025-10-27 14:43:57 -07:00

59 lines
2.5 KiB
C++

///////////////////////////////////////////////////////////////////////////////
// Copyright Christopher Kormanyos 2014.
// Copyright John Maddock 2014.
// Copyright Paul Bristow 2014.
// 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)
//
// <boost/cstdfloat.hpp> implements floating-point typedefs having
// specified widths, as described in N3626 (proposed for C++14).
// See: http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2013/n3626.pdf
#ifndef BOOST_MATH_CSTDFLOAT_2014_01_09_HPP_
#define BOOST_MATH_CSTDFLOAT_2014_01_09_HPP_
// Include the floating-point type definitions.
#include <boost/math/cstdfloat/cstdfloat_types.hpp>
// Support a specialization of std::numeric_limits<> for the wrapped quadmath library (if available).
#if !defined(BOOST_CSTDFLOAT_NO_LIBQUADMATH_LIMITS)
#include <boost/math/cstdfloat/cstdfloat_limits.hpp>
#endif
// Support <cmath> functions for the wrapped quadmath library (if available).
#if !defined(BOOST_CSTDFLOAT_NO_LIBQUADMATH_CMATH)
#include <boost/math/cstdfloat/cstdfloat_cmath.hpp>
#endif
// Support I/O stream operations for the wrapped quadmath library (if available).
#if !defined(BOOST_CSTDFLOAT_NO_LIBQUADMATH_IOSTREAM)
#if defined(BOOST_CSTDFLOAT_NO_LIBQUADMATH_CMATH)
#error You can not use <boost/math/cstdfloat/cstdfloat_iostream.hpp> with BOOST_CSTDFLOAT_NO_LIBQUADMATH_CMATH defined.
#endif
#include <boost/math/cstdfloat/cstdfloat_iostream.hpp>
#endif
// Support a specialization of std::complex<> for the wrapped quadmath library (if available).
#if !defined(BOOST_CSTDFLOAT_NO_LIBQUADMATH_COMPLEX)
#if defined(BOOST_CSTDFLOAT_NO_LIBQUADMATH_LIMITS)
#error You can not use <boost/math/cstdfloat/cstdfloat_complex.hpp> with BOOST_CSTDFLOAT_NO_LIBQUADMATH_LIMITS defined.
#endif
#if defined(BOOST_CSTDFLOAT_NO_LIBQUADMATH_CMATH)
#error You can not use <boost/math/cstdfloat/cstdfloat_complex.hpp> with BOOST_CSTDFLOAT_NO_LIBQUADMATH_CMATH defined.
#endif
#if defined(BOOST_CSTDFLOAT_NO_LIBQUADMATH_IOSTREAM)
#error You can not use <boost/math/cstdfloat/cstdfloat_complex.hpp> with BOOST_CSTDFLOAT_NO_LIBQUADMATH_IOSTREAM defined.
#endif
#include <boost/math/cstdfloat/cstdfloat_complex.hpp>
#endif
// Undefine BOOST_NO_FLOAT128_T because this constant is not meant for public use.
#if defined(BOOST_CSTDFLOAT_HAS_INTERNAL_FLOAT128_T)
#undef BOOST_CSTDFLOAT_HAS_INTERNAL_FLOAT128_T
#endif
#endif // BOOST_MATH_CSTDFLOAT_2014_01_09_HPP_