BOOST_PREDEF_WORKAROUND(symbol,comp,major,minor,patch)
@@ -6416,7 +6453,7 @@ is undefine this expand to test the given symbol
version value with
diff --git a/doc/history.adoc b/doc/history.adoc index 41c2e25..38b31e9 100644 --- a/doc/history.adoc +++ b/doc/history.adoc @@ -14,6 +14,8 @@ http://www.boost.org/LICENSE_1_0.txt) * Fix including sub-BSD OS headers directly causing redef warnings. * Add CI testing of direct inclusion of all headers. * Add CI testing on FreeBSD for clang and gcc. +* Add `WORD_BITS` set of predefs to detect the architecture word size. + Initial implementation inspired by submission from Mikhail Komarov. == 1.11 diff --git a/doc/index.html b/doc/index.html index 9884ed7..f8d328f 100644 --- a/doc/index.html +++ b/doc/index.html @@ -693,8 +693,9 @@ pre.pygments .tok-il { color: #666666 } /* Literal.Number.Integer.Long */
BOOST_PREDEF_WORKAROUND
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.
+
+ ℹ
+ |
+
+The word size is determined manually on each architecture. Hence use of
+the wordsize.h header will also include all the architecture headers.
+ |
+
BOOST_PREDEF_WORKAROUND
BOOST_PREDEF_WORKAROUND(symbol,comp,major,minor,patch)
@@ -6416,7 +6453,7 @@ is undefine this expand to test the given symbol
version value with
BOOST_PREDEF_TESTED_AT
BOOST_PREDEF_TESTED_AT
BOOST_PREDEF_TESTED_AT(symbol,major,minor,patch)
@@ -6820,6 +6857,10 @@ expressions. It defaults to "c++", but can be any of: "c", "cpp",
Add CI testing on FreeBSD for clang and gcc.
Add WORD_BITS
set of predefs to detect the architecture word size.
+Initial implementation inspired by submission from Mikhail Komarov.