Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Current predefs #108

Closed
wants to merge 6 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
59 changes: 59 additions & 0 deletions include/boost/predef/architecture.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,63 @@ Distributed under the Boost Software License, Version 1.0.
#include <boost/predef/architecture/z.h>
/*#include <boost/predef/architecture/.h>*/

#if defined(BOOST_ARCH_ALPHA_AVAILABLE) && defined(BOOST_ARCH_ALPHA_NAME)
# define BOOST_ARCH_CURRENT_NAME BOOST_ARCH_ALPHA_NAME
# define BOOST_ARCH_CURRENT_WORD_BITS BOOST_ARCH_ALPHA_WORD_BITS
#elif defined(BOOST_ARCH_ARM_AVAILABLE) && defined(BOOST_ARCH_ARM_NAME)
# define BOOST_ARCH_CURRENT_NAME BOOST_ARCH_ARM_NAME
# define BOOST_ARCH_CURRENT_WORD_BITS BOOST_ARCH_ARM_WORD_BITS
#elif defined(BOOST_ARCH_BLACKFIN_AVAILABLE) && defined(BOOST_ARCH_BLACKFIN_NAME)
# define BOOST_ARCH_CURRENT_NAME BOOST_ARCH_BLACKFIN_NAME
# define BOOST_ARCH_CURRENT_WORD_BITS BOOST_ARCH_BLACKFIN_WORD_BITS
#elif defined(BOOST_ARCH_CONVEX_AVAILABLE) && defined(BOOST_ARCH_CONVEX_NAME)
# define BOOST_ARCH_CURRENT_NAME BOOST_ARCH_CONVEX_NAME
# define BOOST_ARCH_CURRENT_WORD_BITS BOOST_ARCH_CONVEX_WORD_BITS
#elif defined(BOOST_ARCH_IA64_AVAILABLE) && defined(BOOST_ARCH_IA64_NAME)
# define BOOST_ARCH_CURRENT_NAME BOOST_ARCH_IA64_NAME
# define BOOST_ARCH_CURRENT_WORD_BITS BOOST_ARCH_IA64_WORD_BITS
#elif defined(BOOST_ARCH_M68K_AVAILABLE) && defined(BOOST_ARCH_M68K_NAME)
# define BOOST_ARCH_CURRENT_NAME BOOST_ARCH_M68K_NAME
# define BOOST_ARCH_CURRENT_WORD_BITS BOOST_ARCH_M68K_WORD_BITS
#elif defined(BOOST_ARCH_MIPS_AVAILABLE) && defined(BOOST_ARCH_MIPS_NAME)
# define BOOST_ARCH_CURRENT_NAME BOOST_ARCH_MIPS_NAME
# define BOOST_ARCH_CURRENT_WORD_BITS BOOST_ARCH_MIPS_WORD_BITS
#elif defined(BOOST_ARCH_PARISC_AVAILABLE) && defined(BOOST_ARCH_PARISC_NAME)
# define BOOST_ARCH_CURRENT_NAME BOOST_ARCH_PARISC_NAME
# define BOOST_ARCH_CURRENT_WORD_BITS BOOST_ARCH_PARISC_WORD_BITS
#elif defined(BOOST_ARCH_PPC_AVAILABLE) && defined(BOOST_ARCH_PPC_NAME)
# define BOOST_ARCH_CURRENT_NAME BOOST_ARCH_PPC_NAME
# define BOOST_ARCH_CURRENT_WORD_BITS BOOST_ARCH_PPC_WORD_BITS
#elif defined(BOOST_ARCH_PTX_AVAILABLE) && defined(BOOST_ARCH_PTX_NAME)
# define BOOST_ARCH_CURRENT_NAME BOOST_ARCH_PTX_NAME
# define BOOST_ARCH_CURRENT_WORD_BITS BOOST_ARCH_PTX_WORD_BITS
#elif defined(BOOST_ARCH_PYRAMID_AVAILABLE) && defined(BOOST_ARCH_PYRAMID_NAME)
# define BOOST_ARCH_CURRENT_NAME BOOST_ARCH_PYRAMID_NAME
# define BOOST_ARCH_CURRENT_WORD_BITS BOOST_ARCH_PYRAMID_WORD_BITS
#elif defined(BOOST_ARCH_RISCV_AVAILABLE) && defined(BOOST_ARCH_RISCV_NAME)
# define BOOST_ARCH_CURRENT_NAME BOOST_ARCH_RISCV_NAME
# define BOOST_ARCH_CURRENT_WORD_BITS BOOST_ARCH_RISCV_WORD_BITS
#elif defined(BOOST_ARCH_RS6K_AVAILABLE) && defined(BOOST_ARCH_RS6K_NAME)
# define BOOST_ARCH_CURRENT_NAME BOOST_ARCH_RS6K_NAME
# define BOOST_ARCH_CURRENT_WORD_BITS BOOST_ARCH_RS6K_WORD_BITS
#elif defined(BOOST_ARCH_SPARC_AVAILABLE) && defined(BOOST_ARCH_SPARC_NAME)
# define BOOST_ARCH_CURRENT_NAME BOOST_ARCH_SPARC_NAME
# define BOOST_ARCH_CURRENT_WORD_BITS BOOST_ARCH_SPARC_WORD_BITS
#elif defined(BOOST_ARCH_SUPERH_AVAILABLE) && defined(BOOST_ARCH_SUPERH_NAME)
# define BOOST_ARCH_CURRENT_NAME BOOST_ARCH_SUPERH_NAME
# define BOOST_ARCH_CURRENT_WORD_BITS BOOST_ARCH_SUPERH_WORD_BITS
#elif defined(BOOST_ARCH_SYS370_AVAILABLE) && defined(BOOST_ARCH_SYS370_NAME)
# define BOOST_ARCH_CURRENT_NAME BOOST_ARCH_SYS370_NAME
# define BOOST_ARCH_CURRENT_WORD_BITS BOOST_ARCH_SYS370_WORD_BITS
#elif defined(BOOST_ARCH_SYS390_AVAILABLE) && defined(BOOST_ARCH_SYS390_NAME)
# define BOOST_ARCH_CURRENT_NAME BOOST_ARCH_SYS390_NAME
# define BOOST_ARCH_CURRENT_WORD_BITS BOOST_ARCH_SYS390_WORD_BITS
#elif defined(BOOST_ARCH_X86_AVAILABLE) && defined(BOOST_ARCH_X86_NAME)
# define BOOST_ARCH_CURRENT_NAME BOOST_ARCH_X86_NAME
# define BOOST_ARCH_CURRENT_WORD_BITS BOOST_ARCH_X86_WORD_BITS
#elif defined(BOOST_ARCH_Z_AVAILABLE) && defined(BOOST_ARCH_Z_NAME)
# define BOOST_ARCH_CURRENT_NAME BOOST_ARCH_Z_NAME
# define BOOST_ARCH_CURRENT_WORD_BITS BOOST_ARCH_Z_WORD_BITS
#endif

#endif
1 change: 1 addition & 0 deletions include/boost/predef/architecture/alpha.h
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ Distributed under the Boost Software License, Version 1.0.
#endif

#define BOOST_ARCH_ALPHA_NAME "DEC Alpha"
#define BOOST_ARCH_ALPHA_WORD_BITS 64

#endif

Expand Down
5 changes: 5 additions & 0 deletions include/boost/predef/architecture/arm.h
Original file line number Diff line number Diff line change
Expand Up @@ -98,24 +98,29 @@ Distributed under the Boost Software License, Version 1.0.
defined(__arm64) || defined(_M_ARM64) || defined(__aarch64__) || \
defined(__AARCH64EL__) )
# define BOOST_ARCH_ARM BOOST_VERSION_NUMBER(8,0,0)
# define BOOST_ARCH_ARM_WORD_BITS 64
# endif
# if !defined(BOOST_ARCH_ARM) && ( \
defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) || \
defined(__ARM_ARCH_7R__) || defined(__ARM_ARCH_7M__) )
# define BOOST_ARCH_ARM BOOST_VERSION_NUMBER(7,0,0)
# define BOOST_ARCH_ARM_WORD_BITS 32
# endif
# if !defined(BOOST_ARCH_ARM) && ( \
defined(__ARM_ARCH_6K__) || defined(__ARM_ARCH_6Z__) || \
defined(__ARM_ARCH_6KZ__) || defined(__ARM_ARCH_6T2__) )
# define BOOST_ARCH_ARM BOOST_VERSION_NUMBER(6,0,0)
# define BOOST_ARCH_ARM_WORD_BITS 32
# endif
# if !defined(BOOST_ARCH_ARM) && ( \
defined(__ARM_ARCH_5TE__) || defined(__ARM_ARCH_5TEJ__) )
# define BOOST_ARCH_ARM BOOST_VERSION_NUMBER(5,0,0)
# define BOOST_ARCH_ARM_WORD_BITS 32
# endif
# if !defined(BOOST_ARCH_ARM) && ( \
defined(__ARM_ARCH_4T__) || defined(__ARM_ARCH_4__) )
# define BOOST_ARCH_ARM BOOST_VERSION_NUMBER(4,0,0)
# define BOOST_ARCH_ARM_WORD_BITS 32
# endif
# if !defined(BOOST_ARCH_ARM)
# define BOOST_ARCH_ARM BOOST_VERSION_NUMBER_AVAILABLE
Expand Down
1 change: 1 addition & 0 deletions include/boost/predef/architecture/blackfin.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ Blackfin Processors from Analog Devices.
#endif

#define BOOST_ARCH_BLACKFIN_NAME "Blackfin"
#define BOOST_ARCH_BLACKFIN_WORD_BITS 16

#endif

Expand Down
2 changes: 2 additions & 0 deletions include/boost/predef/architecture/convex.h
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ Distributed under the Boost Software License, Version 1.0.

#define BOOST_ARCH_CONVEX_NAME "Convex Computer"

#define BOOST_ARCH_CONVEX_WORD_BITS 32

#endif

#include <boost/predef/detail/test.h>
Expand Down
1 change: 1 addition & 0 deletions include/boost/predef/architecture/ia64.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ Distributed under the Boost Software License, Version 1.0.
#endif

#define BOOST_ARCH_IA64_NAME "Intel Itanium 64"
#define BOOST_ARCH_IA64_WORD_BITS 64

#endif

Expand Down
1 change: 1 addition & 0 deletions include/boost/predef/architecture/m68k.h
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ Distributed under the Boost Software License, Version 1.0.
#endif

#define BOOST_ARCH_M68K_NAME "Motorola 68k"
#define BOOST_ARCH_M68K_WORD_BITS 32

#endif

Expand Down
4 changes: 4 additions & 0 deletions include/boost/predef/architecture/mips.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,15 +47,19 @@ Distributed under the Boost Software License, Version 1.0.
# endif
# if !defined(BOOST_ARCH_MIPS) && (defined(_MIPS_ISA_MIPS1) || defined(_R3000))
# define BOOST_ARCH_MIPS BOOST_VERSION_NUMBER(1,0,0)
# define BOOST_ARCH_MIPS_WORD_BITS 32
# endif
# if !defined(BOOST_ARCH_MIPS) && (defined(_MIPS_ISA_MIPS2) || defined(__MIPS_ISA2__) || defined(_R4000))
# define BOOST_ARCH_MIPS BOOST_VERSION_NUMBER(2,0,0)
# define BOOST_ARCH_MIPS_WORD_BITS 32
# endif
# if !defined(BOOST_ARCH_MIPS) && (defined(_MIPS_ISA_MIPS3) || defined(__MIPS_ISA3__))
# define BOOST_ARCH_MIPS BOOST_VERSION_NUMBER(3,0,0)
# define BOOST_ARCH_MIPS_WORD_BITS 64
# endif
# if !defined(BOOST_ARCH_MIPS) && (defined(_MIPS_ISA_MIPS4) || defined(__MIPS_ISA4__))
# define BOOST_ARCH_MIPS BOOST_VERSION_NUMBER(4,0,0)
# define BOOST_ARCH_MIPS_WORD_BITS 64
# endif
# if !defined(BOOST_ARCH_MIPS)
# define BOOST_ARCH_MIPS BOOST_VERSION_NUMBER_AVAILABLE
Expand Down
1 change: 1 addition & 0 deletions include/boost/predef/architecture/parisc.h
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ Distributed under the Boost Software License, Version 1.0.
#endif

#define BOOST_ARCH_PARISC_NAME "HP/PA RISC"
#define BOOST_ARCH_PARISC_WORD_BITS 32

#endif

Expand Down
3 changes: 3 additions & 0 deletions include/boost/predef/architecture/ppc.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,15 @@ Distributed under the Boost Software License, Version 1.0.
# undef BOOST_ARCH_PPC
# if !defined (BOOST_ARCH_PPC) && (defined(__ppc601__) || defined(_ARCH_601))
# define BOOST_ARCH_PPC BOOST_VERSION_NUMBER(6,1,0)
# define BOOST_ARCH_PPC_WORD_BITS 32
# endif
# if !defined (BOOST_ARCH_PPC) && (defined(__ppc603__) || defined(_ARCH_603))
# define BOOST_ARCH_PPC BOOST_VERSION_NUMBER(6,3,0)
# define BOOST_ARCH_PPC_WORD_BITS 32
# endif
# if !defined (BOOST_ARCH_PPC) && (defined(__ppc604__) || defined(__ppc604__))
# define BOOST_ARCH_PPC BOOST_VERSION_NUMBER(6,4,0)
# define BOOST_ARCH_PPC_WORD_BITS 32
# endif
# if !defined (BOOST_ARCH_PPC)
# define BOOST_ARCH_PPC BOOST_VERSION_NUMBER_AVAILABLE
Expand Down
1 change: 1 addition & 0 deletions include/boost/predef/architecture/ptx.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ Distributed under the Boost Software License, Version 1.0.
#endif

#define BOOST_ARCH_PTX_NAME "PTX"
#define BOOST_ARCH_PTX_WORD_BITS 64

#endif

Expand Down
1 change: 1 addition & 0 deletions include/boost/predef/architecture/pyramid.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ Pyramid 9810 architecture.
#endif

#define BOOST_ARCH_PYRAMID_NAME "Pyramid 9810"
#define BOOST_ARCH_PYRAMID_WORD_BITS 32

#endif

Expand Down
1 change: 1 addition & 0 deletions include/boost/predef/architecture/riscv.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ Distributed under the Boost Software License, Version 1.0.
#endif

#define BOOST_ARCH_RISCV_NAME "RISC-V"
#define BOOST_ARCH_RISCV_WORD_BITS 32

#endif

Expand Down
1 change: 1 addition & 0 deletions include/boost/predef/architecture/rs6k.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ Distributed under the Boost Software License, Version 1.0.
#endif

#define BOOST_ARCH_PWR_NAME BOOST_ARCH_RS6000_NAME
#define BOOST_ARCH_PWR_WORD_BITS 32

#endif

Expand Down
2 changes: 2 additions & 0 deletions include/boost/predef/architecture/sparc.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,11 @@ Distributed under the Boost Software License, Version 1.0.
# undef BOOST_ARCH_SPARC
# if !defined(BOOST_ARCH_SPARC) && defined(__sparcv9)
# define BOOST_ARCH_SPARC BOOST_VERSION_NUMBER(9,0,0)
# define BOOST_ARCH_SPARC_WORD_BITS 64
# endif
# if !defined(BOOST_ARCH_SPARC) && defined(__sparcv8)
# define BOOST_ARCH_SPARC BOOST_VERSION_NUMBER(8,0,0)
# define BOOST_ARCH_SPARC_WORD_BITS 32
# endif
# if !defined(BOOST_ARCH_SPARC)
# define BOOST_ARCH_SPARC BOOST_VERSION_NUMBER_AVAILABLE
Expand Down
5 changes: 5 additions & 0 deletions include/boost/predef/architecture/superh.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,18 +38,23 @@ If available versions [1-5] are specifically detected.
# undef BOOST_ARCH_SH
# if !defined(BOOST_ARCH_SH) && (defined(__SH5__))
# define BOOST_ARCH_SH BOOST_VERSION_NUMBER(5,0,0)
# define BOOST_ARCH_SH_WORD_BITS 64
# endif
# if !defined(BOOST_ARCH_SH) && (defined(__SH4__))
# define BOOST_ARCH_SH BOOST_VERSION_NUMBER(4,0,0)
# define BOOST_ARCH_SH_WORD_BITS 32
# endif
# if !defined(BOOST_ARCH_SH) && (defined(__sh3__) || defined(__SH3__))
# define BOOST_ARCH_SH BOOST_VERSION_NUMBER(3,0,0)
# define BOOST_ARCH_SH_WORD_BITS 32
# endif
# if !defined(BOOST_ARCH_SH) && (defined(__sh2__))
# define BOOST_ARCH_SH BOOST_VERSION_NUMBER(2,0,0)
# define BOOST_ARCH_SH_WORD_BITS 16
# endif
# if !defined(BOOST_ARCH_SH) && (defined(__sh1__))
# define BOOST_ARCH_SH BOOST_VERSION_NUMBER(1,0,0)
# define BOOST_ARCH_SH_WORD_BITS 16
# endif
# if !defined(BOOST_ARCH_SH)
# define BOOST_ARCH_SH BOOST_VERSION_NUMBER_AVAILABLE
Expand Down
1 change: 1 addition & 0 deletions include/boost/predef/architecture/sys370.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ Distributed under the Boost Software License, Version 1.0.
#endif

#define BOOST_ARCH_SYS370_NAME "System/370"
#define BOOST_ARCH_SYS370_WORD_BITS 32

#endif

Expand Down
1 change: 1 addition & 0 deletions include/boost/predef/architecture/sys390.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ Distributed under the Boost Software License, Version 1.0.
#endif

#define BOOST_ARCH_SYS390_NAME "System/390"
#define BOOST_ARCH_SYS390_WORD_BITS 32

#endif

Expand Down
6 changes: 6 additions & 0 deletions include/boost/predef/architecture/x86.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,12 @@ a category to indicate that either `BOOST_ARCH_X86_32` or
# define BOOST_ARCH_X86 BOOST_VERSION_NUMBER_AVAILABLE
#endif

#if defined(BOOST_ARCH_x86_32)
# define BOOST_ARCH_X86_WORD_BITS BOOST_ARCH_X86_32_WORD_BITS
#elif defined(BOOST_ARCH_X86_64)
# define BOOST_ARCH_X86_WORD_BITS BOOST_ARCH_X86_64_WORD_BITS
#endif

#if BOOST_ARCH_X86
# define BOOST_ARCH_X86_AVAILABLE
#endif
Expand Down
1 change: 1 addition & 0 deletions include/boost/predef/architecture/x86/32.h
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ If available versions [3-6] are specifically detected.
#endif

#define BOOST_ARCH_X86_32_NAME "Intel x86-32"
#define BOOST_ARCH_X86_32_WORD_BITS 32

#include <boost/predef/architecture/x86.h>

Expand Down
1 change: 1 addition & 0 deletions include/boost/predef/architecture/x86/64.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ Distributed under the Boost Software License, Version 1.0.
#endif

#define BOOST_ARCH_X86_64_NAME "Intel x86-64"
#define BOOST_ARCH_X86_64_WORD_BITS 64

#include <boost/predef/architecture/x86.h>

Expand Down
1 change: 1 addition & 0 deletions include/boost/predef/architecture/z.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ Distributed under the Boost Software License, Version 1.0.
#endif

#define BOOST_ARCH_Z_NAME "z/Architecture"
#define BOOST_ARCH_Z_WORD_BITS 64

#endif

Expand Down