From 3d96ad842f27b4bdff92783b9f4efc49f9f0c13d Mon Sep 17 00:00:00 2001 From: Charly Chevalier Date: Tue, 21 Jul 2015 10:07:53 +0200 Subject: [PATCH] Better formatting of tables + Improve brief SIMD family description --- include/boost/predef/hardware/simd.h | 3 ++- include/boost/predef/hardware/simd/arm.h | 9 +++++--- .../boost/predef/hardware/simd/arm/versions.h | 5 ++-- include/boost/predef/hardware/simd/ppc.h | 7 ++++-- .../boost/predef/hardware/simd/ppc/versions.h | 5 ++-- include/boost/predef/hardware/simd/x86.h | 6 +++-- .../boost/predef/hardware/simd/x86/versions.h | 5 ++-- include/boost/predef/hardware/simd/x86_amd.h | 23 ++++++++++++++----- .../predef/hardware/simd/x86_amd/versions.h | 6 ++--- 9 files changed, 43 insertions(+), 26 deletions(-) diff --git a/include/boost/predef/hardware/simd.h b/include/boost/predef/hardware/simd.h index bb91a7a..3a41b60 100644 --- a/include/boost/predef/hardware/simd.h +++ b/include/boost/predef/hardware/simd.h @@ -24,9 +24,10 @@ http://www.boost.org/LICENSE_1_0.txt) [table [[__predef_symbol__] [__predef_version__]] + [[`BOOST_HW_SIMD_X86_AVAILABLE`] [__predef_detection__]] + [[`BOOST_HW_SIMD_X86_AMD_AVAILABLE`] [__predef_detection__]] [[`BOOST_HW_SIMD_ARM_AVAILABLE`] [__predef_detection__]] [[`BOOST_HW_SIMD_PPC_AVAILABLE`] [__predef_detection__]] - [[`BOOST_HW_SIMD_X86_AVAILABLE`] [__predef_detection__]] ] */ diff --git a/include/boost/predef/hardware/simd/arm.h b/include/boost/predef/hardware/simd/arm.h index a2b802a..d067c93 100644 --- a/include/boost/predef/hardware/simd/arm.h +++ b/include/boost/predef/hardware/simd/arm.h @@ -15,22 +15,25 @@ http://www.boost.org/LICENSE_1_0.txt) /*` [heading `BOOST_HW_SIMD_ARM`] - The SIMD extension for ARM (if detected). + The SIMD extension for ARM (*if detected*). Version number depends on the most recent detected extension. [table [[__predef_symbol__] [__predef_version__]] - - [[__predef_detection__] [__predef_detection__]] + [[`__ARM_NEON__`] [__predef_detection__]] [[`__aarch64__`] [__predef_detection__]] [[`_M_ARM`] [__predef_detection__]] + ] + [table + [[__predef_symbol__] [__predef_version__]] [[`__ARM_NEON__`] [BOOST_HW_SIMD_ARM_NEON_VERSION]] [[`__aarch64__`] [BOOST_HW_SIMD_ARM_NEON_VERSION]] [[`_M_ARM`] [BOOST_HW_SIMD_ARM_NEON_VERSION]] ] + */ #define BOOST_HW_SIMD_ARM BOOST_VERSION_NUMBER_NOT_AVAILABLE diff --git a/include/boost/predef/hardware/simd/arm/versions.h b/include/boost/predef/hardware/simd/arm/versions.h index 962a174..8425b31 100644 --- a/include/boost/predef/hardware/simd/arm/versions.h +++ b/include/boost/predef/hardware/simd/arm/versions.h @@ -12,10 +12,9 @@ http://www.boost.org/LICENSE_1_0.txt) #include /*` - [heading `BOOST_HW_SIMD_ARM_*_VERSION`] + Those defines represent ARM SIMD extensions versions. - [note Those defines represent ARM SIMD extensions versions. You can - compare them with the predef BOOST_HW_SIMD_ARM.] + [note You *MUST* compare them with the predef `BOOST_HW_SIMD_ARM`.] */ // --------------------------------- diff --git a/include/boost/predef/hardware/simd/ppc.h b/include/boost/predef/hardware/simd/ppc.h index 4815d7a..f5d0564 100644 --- a/include/boost/predef/hardware/simd/ppc.h +++ b/include/boost/predef/hardware/simd/ppc.h @@ -14,20 +14,22 @@ http://www.boost.org/LICENSE_1_0.txt) /*` [heading `BOOST_HW_SIMD_PPC`] - The SIMD extension for PowerPC (if detected). + The SIMD extension for PowerPC (*if detected*). Version number depends on the most recent detected extension. [table [[__predef_symbol__] [__predef_version__]] - [[`__VECTOR4DOUBLE__`] [__predef_detection__]] [[`__ALTIVEC__`] [__predef_detection__]] [[`__VEC__`] [__predef_detection__]] [[`__VSX__`] [__predef_detection__]] + ] + [table + [[__predef_symbol__] [__predef_version__]] [[`__VECTOR4DOUBLE__`] [BOOST_HW_SIMD_PPC_QPX_VERSION]] @@ -36,6 +38,7 @@ http://www.boost.org/LICENSE_1_0.txt) [[`__VSX__`] [BOOST_HW_SIMD_PPC_VSX_VERSION]] ] + */ #define BOOST_HW_SIMD_PPC BOOST_VERSION_NUMBER_NOT_AVAILABLE diff --git a/include/boost/predef/hardware/simd/ppc/versions.h b/include/boost/predef/hardware/simd/ppc/versions.h index ad9c61d..ffe3f0b 100644 --- a/include/boost/predef/hardware/simd/ppc/versions.h +++ b/include/boost/predef/hardware/simd/ppc/versions.h @@ -12,10 +12,9 @@ http://www.boost.org/LICENSE_1_0.txt) #include /*` - [heading `BOOST_HW_SIMD_PPC_*_VERSION`] + Those defines represent Power PC SIMD extensions versions. - [note Those defines represent Power PC SIMD extensions versions. You can - compare them with the predef BOOST_HW_SIMD_PPC.] + [note You *MUST* compare them with the predef `BOOST_HW_SIMD_PPC`.] */ // --------------------------------- diff --git a/include/boost/predef/hardware/simd/x86.h b/include/boost/predef/hardware/simd/x86.h index 9856c63..bbb0b40 100644 --- a/include/boost/predef/hardware/simd/x86.h +++ b/include/boost/predef/hardware/simd/x86.h @@ -16,13 +16,12 @@ http://www.boost.org/LICENSE_1_0.txt) /*` [heading `BOOST_HW_SIMD_X86`] - The SIMD extension for x86 (if detected). + The SIMD extension for x86 (*if detected*). Version number depends on the most recent detected extension. [table [[__predef_symbol__] [__predef_version__]] - [[`__SSE__`] [__predef_detection__]] [[`_M_X64`] [__predef_detection__]] [[`_M_IX86_FP >= 1`] [__predef_detection__]] @@ -44,7 +43,10 @@ http://www.boost.org/LICENSE_1_0.txt) [[`__FMA__`] [__predef_detection__]] [[`__AVX2__`] [__predef_detection__]] + ] + [table + [[__predef_symbol__] [__predef_version__]] [[`__SSE__`] [BOOST_HW_SIMD_X86_SSE_VERSION]] [[`_M_X64`] [BOOST_HW_SIMD_X86_SSE_VERSION]] diff --git a/include/boost/predef/hardware/simd/x86/versions.h b/include/boost/predef/hardware/simd/x86/versions.h index 43c24f4..5a9ce31 100644 --- a/include/boost/predef/hardware/simd/x86/versions.h +++ b/include/boost/predef/hardware/simd/x86/versions.h @@ -12,10 +12,9 @@ http://www.boost.org/LICENSE_1_0.txt) #include /*` - [heading `BOOST_HW_SIMD_X86_*_VERSION`] + Those defines represent x86 SIMD extensions versions. - [note Those defines represent x86 SIMD extensions versions. You can - compare them with the predef BOOST_HW_SIMD_X86.] + [note You *MUST* compare them with the predef `BOOST_HW_SIMD_X86`.] */ // --------------------------------- diff --git a/include/boost/predef/hardware/simd/x86_amd.h b/include/boost/predef/hardware/simd/x86_amd.h index 7fea531..ff0dd3f 100644 --- a/include/boost/predef/hardware/simd/x86_amd.h +++ b/include/boost/predef/hardware/simd/x86_amd.h @@ -16,13 +16,20 @@ http://www.boost.org/LICENSE_1_0.txt) /*` [heading `BOOST_HW_SIMD_X86_AMD`] - The SIMD extension for x86 (AMD) (if detected). + The SIMD extension for x86 (AMD) (*if detected*). Version number depends on the most recent detected extension. - [note This predef includes every other x86 SIMD extensions and also has other - more specific extensions (FMA4, XOP, SSE4a). You should use this predef - instead of `BOOST_HW_SIMD_X86` to test if those specific extensions have - been detected.] + [table + [[__predef_symbol__] [__predef_version__]] + + [[`__SSE4A__`] [__predef_detection__]] + + [[`__FMA4__`] [__predef_detection__]] + + [[`__XOP__`] [__predef_detection__]] + + [[`BOOST_HW_SIMD_X86`] [__predef_detection__]] + ] [table [[__predef_symbol__] [__predef_version__]] @@ -36,7 +43,11 @@ http://www.boost.org/LICENSE_1_0.txt) [[`BOOST_HW_SIMD_X86`] [BOOST_HW_SIMD_x86]] ] - [include x86_amd/versions.h] + [note This predef includes every other x86 SIMD extensions and also has other + more specific extensions (FMA4, XOP, SSE4a). You should use this predef + instead of `BOOST_HW_SIMD_X86` to test if those specific extensions have + been detected.] + */ #define BOOST_HW_SIMD_X86_AMD BOOST_VERSION_NUMBER_NOT_AVAILABLE diff --git a/include/boost/predef/hardware/simd/x86_amd/versions.h b/include/boost/predef/hardware/simd/x86_amd/versions.h index 4e1a727..cb4c59e 100644 --- a/include/boost/predef/hardware/simd/x86_amd/versions.h +++ b/include/boost/predef/hardware/simd/x86_amd/versions.h @@ -12,12 +12,12 @@ http://www.boost.org/LICENSE_1_0.txt) #include /*` - [heading `BOOST_HW_SIMD_X86_AMD_*_VERSION`] + Those defines represent x86 (AMD specific) SIMD extensions versions. - [note Those defines represent x86 (AMD specific) SIMD extensions versions. You - can compare them with the predef BOOST_HW_SIMD_X86_AMD.] + [note You *MUST* compare them with the predef `BOOST_HW_SIMD_X86_AMD`.] */ + // --------------------------------- /*`