20 Commits

Author SHA1 Message Date
Zhang Na
4abc13fa55 Add support for LoongArch (#122) 2022-02-25 21:02:32 -06:00
Rene Rivera
c9ee4eb329 Update from upstream Hash Predef. 2021-02-13 10:21:16 -06:00
SSE4
d3460e05aa Add support for Elbrus 2000 (e2k) architecture (#116) 2021-02-09 22:52:29 -06:00
Rene Rivera
a7ac034985 Add WORD_BITS predef detection.
fixes https://github.com/boostorg/predef/pull/107
fixes https://github.com/boostorg/predef/pull/108
2021-01-05 09:40:19 -06:00
brad0
99cfb298de Switch to using the endian.h header on OpenBSD. (#110)
Switch to using the endian.h header on OpenBSD.
2021-01-02 20:49:42 -06:00
Rene Rivera
966707dc1f Remove deprecated HASH_PREDEF_OS_ANDROID.
Fixes #101 (merge from hash-predef)
2020-02-29 09:34:42 -06:00
Rene Rivera
fb59068deb Convert documentatio to Asciidoctor. 2019-12-31 16:14:17 -06:00
Thomas Petazzoni
4bc7cc02ed Add RISC-V endian detection (#100)
boost/predef/other/endian.h has two ways of detecting the endianess:

 (1) It includes <endian.h> if BOOST_LIB_C_GNU is defined, and then
     use __BYTE_ORDER to decide the endianness.

 (2) Otherwise, if (1) was not possible for some reason, it uses
     architecture defines to decide the endianness.

(1) works perfectly fine with glibc toolchains, because
BOOST_LIB_C_GNU is defined, but it doesn't work with musl. Due to
this, <endian.h> is not included, __BYTE_ORDER is not defined, and
method (1) does not work, causing build failures on musl toolchains
that don't have explicit handling by architecture name (method 2).

So this commit fixes RISC-V musl build by adding support for the
__riscv architecture define, to determine that the endianness is
little endian.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
2019-08-03 10:25:06 -05:00
Peter Kolbus
9e31c6455c Remove undefined BOOST_ARCH_AMD64 (#75)
Remove reference to BOOST_ARCH_AMD64 as it has not been defined since commit b10e3490e.
2018-05-13 10:19:21 -05:00
Rene Rivera
db499c07df Add WORKAROUND style definitions for public use. 2017-06-01 22:31:09 -05:00
Rene Rivera
a3dffe8f1a Update docs for check utility changes and for 1.3 release. Bump versions
for release of 1.3. Update copyrights that I forgot on the previous
commits.
2015-07-01 17:19:29 -05:00
Rene Rivera
0f113b0871 Fix non-standard test feature test collection. I.e. make the feature
collection no rely on implementioned defined behaviour. And fix check
program handling of no-expression invocations vs expression invocations.
2015-06-29 18:49:33 -05:00
Rene Rivera
d9d0ed3d88 Fix BOOST_ARCH_PARISC (was BOOST_ARCH_PARISK) reference for detecting
endianess. Thanks to Graham Hanson for finding this.
2015-05-18 11:12:56 -05:00
Rene Rivera
5912dd7e62 Add Android OS header for endian definition. And some platforms don't
define all of the *BYTE_ORDER *_ENDIAN macros so need to guard for that
case. (Thanks to mstahl@redhat.com for pointing those out).
2014-12-29 23:20:36 -06:00
Adam Wulkiewicz
a4bf99ec4a Added alternative checks for endianess detection
Currently used checks doesn't work on GCC+Solaris+SPARC.
2014-02-11 15:09:55 +01:00
Rene Rivera
3ccc33fa28 Update copyrights back to original author. 2014-01-10 08:46:03 -06:00
Rene Rivera
a3be72217a Remove some reduntant #if-s from endian detection. 2014-01-09 08:44:37 -06:00
Rene Rivera
b28bad14ea Address endian compile errors for OSX in the cases where sys/param.h was
include ahead of the predef headers. The solution was to: use the OSX
machine/endian.h header, and only allow a single OS to be detected at
once. Test cases added for both conditions on OSX.
2013-10-05 16:41:55 -05:00
grafikrobot
5fd44efb4a Move MINGW platform to formalized 2013-05-02 23:22:09 -05:00
Rene Rivera
b10e3490ec Completed all changes from review. 2013-04-02 21:40:46 -05:00