update boost
This commit is contained in:
@@ -13,10 +13,10 @@ http://www.boost.org/LICENSE_1_0.txt)
|
||||
#include <boost/predef/library/c/gnu.h>
|
||||
#include <boost/predef/os/macos.h>
|
||||
#include <boost/predef/os/bsd.h>
|
||||
#include <boost/predef/os/android.h>
|
||||
#include <boost/predef/platform/android.h>
|
||||
|
||||
/*`
|
||||
[heading `BOOST_ENDIAN_*`]
|
||||
/* tag::reference[]
|
||||
= `BOOST_ENDIAN_*`
|
||||
|
||||
Detection of endian memory ordering. There are four defined macros
|
||||
in this header that define the various generally possible endian
|
||||
@@ -37,12 +37,12 @@ programatic bi-endianness is available.
|
||||
This implementation is a compilation of various publicly available
|
||||
information and acquired knowledge:
|
||||
|
||||
# The indispensable documentation of "Pre-defined Compiler Macros"
|
||||
[@http://sourceforge.net/p/predef/wiki/Endianness Endianness].
|
||||
# The various endian specifications available in the
|
||||
[@http://wikipedia.org/ Wikipedia] computer architecture pages.
|
||||
# Generally available searches for headers that define endianness.
|
||||
*/
|
||||
. The indispensable documentation of "Pre-defined Compiler Macros"
|
||||
http://sourceforge.net/p/predef/wiki/Endianness[Endianness].
|
||||
. The various endian specifications available in the
|
||||
http://wikipedia.org/[Wikipedia] computer architecture pages.
|
||||
. Generally available searches for headers that define endianness.
|
||||
*/ // end::reference[]
|
||||
|
||||
#define BOOST_ENDIAN_BIG_BYTE BOOST_VERSION_NUMBER_NOT_AVAILABLE
|
||||
#define BOOST_ENDIAN_BIG_WORD BOOST_VERSION_NUMBER_NOT_AVAILABLE
|
||||
@@ -54,18 +54,14 @@ information and acquired knowledge:
|
||||
*/
|
||||
#if !BOOST_ENDIAN_BIG_BYTE && !BOOST_ENDIAN_BIG_WORD && \
|
||||
!BOOST_ENDIAN_LITTLE_BYTE && !BOOST_ENDIAN_LITTLE_WORD
|
||||
# if BOOST_LIB_C_GNU || BOOST_OS_ANDROID
|
||||
# if BOOST_LIB_C_GNU || BOOST_PLAT_ANDROID || BOOST_OS_BSD_OPEN
|
||||
# include <endian.h>
|
||||
# else
|
||||
# if BOOST_OS_MACOS
|
||||
# include <machine/endian.h>
|
||||
# else
|
||||
# if BOOST_OS_BSD
|
||||
# if BOOST_OS_BSD_OPEN
|
||||
# include <machine/endian.h>
|
||||
# else
|
||||
# include <sys/endian.h>
|
||||
# endif
|
||||
# include <sys/endian.h>
|
||||
# endif
|
||||
# endif
|
||||
# endif
|
||||
@@ -99,7 +95,7 @@ information and acquired knowledge:
|
||||
# endif
|
||||
#endif
|
||||
|
||||
/* Built-in byte-swpped big-endian macros.
|
||||
/* Built-in byte-swapped big-endian macros.
|
||||
*/
|
||||
#if !BOOST_ENDIAN_BIG_BYTE && !BOOST_ENDIAN_BIG_WORD && \
|
||||
!BOOST_ENDIAN_LITTLE_BYTE && !BOOST_ENDIAN_LITTLE_WORD
|
||||
@@ -116,7 +112,7 @@ information and acquired knowledge:
|
||||
# endif
|
||||
#endif
|
||||
|
||||
/* Built-in byte-swpped little-endian macros.
|
||||
/* Built-in byte-swapped little-endian macros.
|
||||
*/
|
||||
#if !BOOST_ENDIAN_BIG_BYTE && !BOOST_ENDIAN_BIG_WORD && \
|
||||
!BOOST_ENDIAN_LITTLE_BYTE && !BOOST_ENDIAN_LITTLE_WORD
|
||||
@@ -125,9 +121,12 @@ information and acquired knowledge:
|
||||
defined(__ARMEL__) || \
|
||||
defined(__THUMBEL__) || \
|
||||
defined(__AARCH64EL__) || \
|
||||
defined(__loongarch__) || \
|
||||
defined(_MIPSEL) || \
|
||||
defined(__MIPSEL) || \
|
||||
defined(__MIPSEL__)
|
||||
defined(__MIPSEL__) || \
|
||||
defined(__riscv) || \
|
||||
defined(__e2k__)
|
||||
# undef BOOST_ENDIAN_LITTLE_BYTE
|
||||
# define BOOST_ENDIAN_LITTLE_BYTE BOOST_VERSION_NUMBER_AVAILABLE
|
||||
# endif
|
||||
@@ -157,7 +156,7 @@ information and acquired knowledge:
|
||||
#endif
|
||||
|
||||
/* Windows on ARM, if not otherwise detected/specified, is always
|
||||
* byte-swaped little-endian.
|
||||
* byte-swapped little-endian.
|
||||
*/
|
||||
#if !BOOST_ENDIAN_BIG_BYTE && !BOOST_ENDIAN_BIG_WORD && \
|
||||
!BOOST_ENDIAN_LITTLE_BYTE && !BOOST_ENDIAN_LITTLE_WORD
|
||||
|
||||
73
linx64/include/boost/predef/other/wordsize.h
Normal file
73
linx64/include/boost/predef/other/wordsize.h
Normal file
@@ -0,0 +1,73 @@
|
||||
/*
|
||||
Copyright Rene Ferdinand Rivera Morell 2020-2021
|
||||
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)
|
||||
*/
|
||||
|
||||
#ifndef BOOST_PREDEF_OTHER_WORD_SIZE_H
|
||||
#define BOOST_PREDEF_OTHER_WORD_SIZE_H
|
||||
|
||||
#include <boost/predef/architecture.h>
|
||||
#include <boost/predef/version_number.h>
|
||||
#include <boost/predef/make.h>
|
||||
|
||||
/* tag::reference[]
|
||||
= `BOOST_ARCH_WORD_BITS`
|
||||
|
||||
Detects the native word size, in bits, for the current architecture. There are
|
||||
two types of macros for this detection:
|
||||
|
||||
* `BOOST_ARCH_WORD_BITS`, gives the number of word size bits
|
||||
(16, 32, 64).
|
||||
* `BOOST_ARCH_WORD_BITS_16`, `BOOST_ARCH_WORD_BITS_32`, and
|
||||
`BOOST_ARCH_WORD_BITS_64`, indicate when the given word size is
|
||||
detected.
|
||||
|
||||
They allow for both single checks and direct use of the size in code.
|
||||
|
||||
NOTE: The word size is determined manually on each architecture. Hence use of
|
||||
the `wordsize.h` header will also include all the architecture headers.
|
||||
|
||||
*/ // end::reference[]
|
||||
|
||||
#if !defined(BOOST_ARCH_WORD_BITS_64)
|
||||
# define BOOST_ARCH_WORD_BITS_64 BOOST_VERSION_NUMBER_NOT_AVAILABLE
|
||||
#elif !defined(BOOST_ARCH_WORD_BITS)
|
||||
# define BOOST_ARCH_WORD_BITS 64
|
||||
#endif
|
||||
|
||||
#if !defined(BOOST_ARCH_WORD_BITS_32)
|
||||
# define BOOST_ARCH_WORD_BITS_32 BOOST_VERSION_NUMBER_NOT_AVAILABLE
|
||||
#elif !defined(BOOST_ARCH_WORD_BITS)
|
||||
# define BOOST_ARCH_WORD_BITS 32
|
||||
#endif
|
||||
|
||||
#if !defined(BOOST_ARCH_WORD_BITS_16)
|
||||
# define BOOST_ARCH_WORD_BITS_16 BOOST_VERSION_NUMBER_NOT_AVAILABLE
|
||||
#elif !defined(BOOST_ARCH_WORD_BITS)
|
||||
# define BOOST_ARCH_WORD_BITS 16
|
||||
#endif
|
||||
|
||||
#if !defined(BOOST_ARCH_WORD_BITS)
|
||||
# define BOOST_ARCH_WORD_BITS 0
|
||||
#endif
|
||||
|
||||
#define BOOST_ARCH_WORD_BITS_NAME "Word Bits"
|
||||
#define BOOST_ARCH_WORD_BITS_16_NAME "16-bit Word Size"
|
||||
#define BOOST_ARCH_WORD_BITS_32_NAME "32-bit Word Size"
|
||||
#define BOOST_ARCH_WORD_BITS_64_NAME "64-bit Word Size"
|
||||
|
||||
#endif
|
||||
|
||||
#include <boost/predef/detail/test.h>
|
||||
BOOST_PREDEF_DECLARE_TEST(BOOST_ARCH_WORD_BITS,BOOST_ARCH_WORD_BITS_NAME)
|
||||
|
||||
#include <boost/predef/detail/test.h>
|
||||
BOOST_PREDEF_DECLARE_TEST(BOOST_ARCH_WORD_BITS_16,BOOST_ARCH_WORD_BITS_16_NAME)
|
||||
|
||||
#include <boost/predef/detail/test.h>
|
||||
BOOST_PREDEF_DECLARE_TEST(BOOST_ARCH_WORD_BITS_32,BOOST_ARCH_WORD_BITS_32_NAME)
|
||||
|
||||
#include <boost/predef/detail/test.h>
|
||||
BOOST_PREDEF_DECLARE_TEST(BOOST_ARCH_WORD_BITS_64,BOOST_ARCH_WORD_BITS_64_NAME)
|
||||
@@ -8,20 +8,23 @@ http://www.boost.org/LICENSE_1_0.txt)
|
||||
#ifndef BOOST_PREDEF_WORKAROUND_H
|
||||
#define BOOST_PREDEF_WORKAROUND_H
|
||||
|
||||
/*`
|
||||
[heading `BOOST_PREDEF_WORKAROUND`]
|
||||
/* tag::reference[]
|
||||
|
||||
``
|
||||
= `BOOST_PREDEF_WORKAROUND`
|
||||
|
||||
[source]
|
||||
----
|
||||
BOOST_PREDEF_WORKAROUND(symbol,comp,major,minor,patch)
|
||||
``
|
||||
----
|
||||
|
||||
Usage:
|
||||
|
||||
``
|
||||
[source]
|
||||
----
|
||||
#if BOOST_PREDEF_WORKAROUND(BOOST_COMP_CLANG,<,3,0,0)
|
||||
// Workaround for old clang compilers..
|
||||
#endif
|
||||
``
|
||||
----
|
||||
|
||||
Defines a comparison against two version numbers that depends on the definion
|
||||
of `BOOST_STRICT_CONFIG`. When `BOOST_STRICT_CONFIG` is defined this will expand
|
||||
@@ -29,7 +32,8 @@ to a value convertible to `false`. Which has the effect of disabling all code
|
||||
conditionally guarded by `BOOST_PREDEF_WORKAROUND`. When `BOOST_STRICT_CONFIG`
|
||||
is undefine this expand to test the given `symbol` version value with the
|
||||
`comp` comparison against `BOOST_VERSION_NUMBER(major,minor,patch)`.
|
||||
*/
|
||||
|
||||
*/ // end::reference[]
|
||||
#ifdef BOOST_STRICT_CONFIG
|
||||
# define BOOST_PREDEF_WORKAROUND(symbol, comp, major, minor, patch) (0)
|
||||
#else
|
||||
@@ -39,20 +43,23 @@ is undefine this expand to test the given `symbol` version value with the
|
||||
( (symbol) comp (BOOST_VERSION_NUMBER( (major) , (minor) , (patch) )) )
|
||||
#endif
|
||||
|
||||
/*`
|
||||
[heading `BOOST_PREDEF_TESTED_AT`]
|
||||
/* tag::reference[]
|
||||
|
||||
``
|
||||
= `BOOST_PREDEF_TESTED_AT`
|
||||
|
||||
[source]
|
||||
----
|
||||
BOOST_PREDEF_TESTED_AT(symbol,major,minor,patch)
|
||||
``
|
||||
----
|
||||
|
||||
Usage:
|
||||
|
||||
``
|
||||
[source]
|
||||
----
|
||||
#if BOOST_PREDEF_TESTED_AT(BOOST_COMP_CLANG,3,5,0)
|
||||
// Needed for clang, and last checked for 3.5.0.
|
||||
#endif
|
||||
``
|
||||
----
|
||||
|
||||
Defines a comparison against two version numbers that depends on the definion
|
||||
of `BOOST_STRICT_CONFIG` and `BOOST_DETECT_OUTDATED_WORKAROUNDS`.
|
||||
@@ -69,7 +76,8 @@ is undefined this expand to either:
|
||||
* A compile error when the expansion of
|
||||
`BOOST_PREDEF_WORKAROUND(symbol, >, major, minor, patch)` is true and
|
||||
`BOOST_DETECT_OUTDATED_WORKAROUNDS` is defined.
|
||||
*/
|
||||
|
||||
*/ // end::reference[]
|
||||
#ifdef BOOST_STRICT_CONFIG
|
||||
# define BOOST_PREDEF_TESTED_AT(symbol, major, minor, patch) (0)
|
||||
#else
|
||||
|
||||
Reference in New Issue
Block a user