mirror of
https://github.com/boostorg/math.git
synced 2026-01-19 04:22:09 +00:00
Fix for TBB failure and add license [standalone]
This commit is contained in:
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
@@ -334,7 +334,7 @@ jobs:
|
|||||||
run: cp -r $GITHUB_WORKSPACE/* libs/math
|
run: cp -r $GITHUB_WORKSPACE/* libs/math
|
||||||
working-directory: ../boost-root
|
working-directory: ../boost-root
|
||||||
- name: Run CMake
|
- name: Run CMake
|
||||||
run: cmake -DBUILD_TESTING=1 .
|
run: cmake -DBUILD_TESTING=1 -DCMAKE_CXX_COMPILER=g++-10 .
|
||||||
working-directory: ../boost-root/libs/math
|
working-directory: ../boost-root/libs/math
|
||||||
- name: Run Compile Tests
|
- name: Run Compile Tests
|
||||||
run: make -j$((`nproc`+1))
|
run: make -j$((`nproc`+1))
|
||||||
|
|||||||
23
LICENSE
Normal file
23
LICENSE
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
Boost Software License - Version 1.0 - August 17th, 2003
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person or organization
|
||||||
|
obtaining a copy of the software and accompanying documentation covered by
|
||||||
|
this license (the "Software") to use, reproduce, display, distribute,
|
||||||
|
execute, and transmit the Software, and to prepare derivative works of the
|
||||||
|
Software, and to permit third-parties to whom the Software is furnished to
|
||||||
|
do so, all subject to the following:
|
||||||
|
|
||||||
|
The copyright notices in the Software and this entire statement, including
|
||||||
|
the above license grant, this restriction and the following disclaimer,
|
||||||
|
must be included in all copies of the Software, in whole or in part, and
|
||||||
|
all derivative works of the Software, unless such copies or derivative
|
||||||
|
works are solely in the form of machine-executable object code generated by
|
||||||
|
a source language processor.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT
|
||||||
|
SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE
|
||||||
|
FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE,
|
||||||
|
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||||
|
DEALINGS IN THE SOFTWARE.
|
||||||
@@ -33,11 +33,13 @@ With these techniques, the code could be simplified.
|
|||||||
#define BOOST_MATH_ENDIAN_BIG_BYTE BOOST_ENDIAN_BIG_BYTE
|
#define BOOST_MATH_ENDIAN_BIG_BYTE BOOST_ENDIAN_BIG_BYTE
|
||||||
#define BOOST_MATH_ENDIAN_LITTLE_BYTE BOOST_ENDIAN_LITTLE_BYTE
|
#define BOOST_MATH_ENDIAN_LITTLE_BYTE BOOST_ENDIAN_LITTLE_BYTE
|
||||||
|
|
||||||
#elif (__cplusplus > 202000L || _MSVC_LANG > 202000L) && __has_include(<bit>)
|
#elif (__cplusplus > 202000L || _MSVC_LANG > 202000L)
|
||||||
|
|
||||||
|
#if __has_include(<bit>)
|
||||||
#include <bit>
|
#include <bit>
|
||||||
#define BOOST_MATH_ENDIAN_BIG_BYTE (std::endian::native == std::endian::big)
|
#define BOOST_MATH_ENDIAN_BIG_BYTE (std::endian::native == std::endian::big)
|
||||||
#define BOOST_MATH_ENDIAN_LITTLE_BYTE (std::endian::native == std::endian::little)
|
#define BOOST_MATH_ENDIAN_LITTLE_BYTE (std::endian::native == std::endian::little)
|
||||||
|
#endif
|
||||||
|
|
||||||
#elif defined(_WIN32)
|
#elif defined(_WIN32)
|
||||||
|
|
||||||
|
|||||||
@@ -18,6 +18,7 @@
|
|||||||
#include <cmath>
|
#include <cmath>
|
||||||
#include <cstddef>
|
#include <cstddef>
|
||||||
#include <boost/math/tools/assert.hpp>
|
#include <boost/math/tools/assert.hpp>
|
||||||
|
#include <boost/math/tools/config.hpp>
|
||||||
|
|
||||||
// Support compilers with P0024R2 implemented without linking TBB
|
// Support compilers with P0024R2 implemented without linking TBB
|
||||||
// https://en.cppreference.com/w/cpp/compiler_support
|
// https://en.cppreference.com/w/cpp/compiler_support
|
||||||
|
|||||||
@@ -31,9 +31,13 @@
|
|||||||
|
|
||||||
#if (__cplusplus > 201700L || _MSVC_LANG > 201700L)
|
#if (__cplusplus > 201700L || _MSVC_LANG > 201700L)
|
||||||
#define BOOST_IF_CONSTEXPR if constexpr
|
#define BOOST_IF_CONSTEXPR if constexpr
|
||||||
|
#if !__has_include(<execution>)
|
||||||
|
#define BOOST_NO_CXX17_HDR_EXECUTION
|
||||||
|
#endif
|
||||||
#else
|
#else
|
||||||
#define BOOST_IF_CONSTEXPR if
|
#define BOOST_IF_CONSTEXPR if
|
||||||
#define BOOST_NO_CXX17_IF_CONSTEXPR
|
#define BOOST_NO_CXX17_IF_CONSTEXPR
|
||||||
|
#define BOOST_NO_CXX17_HDR_EXECUTION
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define BOOST_JOIN(X, Y) BOOST_DO_JOIN(X, Y)
|
#define BOOST_JOIN(X, Y) BOOST_DO_JOIN(X, Y)
|
||||||
|
|||||||
Reference in New Issue
Block a user