From fc50eb143befe21b947612e06a7c8e49848ffcb6 Mon Sep 17 00:00:00 2001 From: Caroline Concatto Date: Wed, 29 May 2024 09:20:28 +0000 Subject: [PATCH] Remove request for preprocessor guards from header files. --- main/acle.md | 46 ++++++---------------------------------------- 1 file changed, 6 insertions(+), 40 deletions(-) diff --git a/main/acle.md b/main/acle.md index 89166c57..e71be689 100644 --- a/main/acle.md +++ b/main/acle.md @@ -904,7 +904,6 @@ correctly: ``` c #include - // UINT64_C not defined here since we did not set __STDC_FORMAT_MACROS ... #include ``` @@ -914,9 +913,7 @@ and: ``` c #include ... - #define __STDC_FORMAT_MACROS #include - // ... UINT64_C is now defined ``` ### `` @@ -925,13 +922,10 @@ and: to the more specific header files below. These intrinsics are in the C implementation namespace and begin with double underscores. It is unspecified whether they are available without the header being -included. The `__ARM_ACLE` macro should be tested before including the -header: +included. ``` c - #ifdef __ARM_ACLE #include - #endif /* __ARM_ACLE */ ``` ### `` @@ -939,13 +933,10 @@ header: `` is provided to define the scalar 16-bit floating point arithmetic intrinsics. As these intrinsics are in the user namespace, an implementation would not normally define them until the header is -included. The `__ARM_FEATURE_FP16_SCALAR_ARITHMETIC` feature macro -should be tested before including the header: +included. ``` c - #ifdef __ARM_FEATURE_FP16_SCALAR_ARITHMETIC #include - #endif /* __ARM_FEATURE_FP16_SCALAR_ARITHMETIC */ ``` ### `` @@ -953,13 +944,10 @@ should be tested before including the header: `` is provided to define the 16-bit brain floating point arithmetic intrinsics. As these intrinsics are in the user namespace, an implementation would not normally define them until the header is -included. The `__ARM_FEATURE_BF16` feature macro -should be tested before including the header: +included. ``` c - #ifdef __ARM_FEATURE_BF16 #include - #endif /* __ARM_FEATURE_BF16 */ ``` When `__ARM_BF16_FORMAT_ALTERNATIVE` is defined to `1` the only scalar @@ -975,13 +963,10 @@ instructions available are conversion intrinsics between `bfloat16_t` and intrinsics](#advanced-simd-neon-intrinsics) and associated [data types](#vector-data-types). As these intrinsics and data types are in the user namespace, an implementation would not normally define them -until the header is included. The `__ARM_NEON` macro should be tested -before including the header: +until the header is included. ``` c - #ifdef __ARM_NEON #include - #endif /* __ARM_NEON */ ``` Including `` will also cause the following header files @@ -999,13 +984,9 @@ following it. --> `` defines data types and intrinsics for SVE and its extensions; see [SVE language extensions and intrinsics](#sve-language-extensions-and-intrinsics) for details. -You should test the `__ARM_FEATURE_SVE` macro before including the -header: ``` c - #ifdef __ARM_FEATURE_SVE #include - #endif /* __ARM_FEATURE_SVE */ ``` Including `` also includes the following header files: @@ -1019,13 +1000,10 @@ Including `` also includes the following header files: `` defines intrinsics for moving data between Neon and SVE vector types; see [NEON-SVE Bridge](#neon-sve-bridge) -for details. The `__ARM_NEON_SVE_BRIDGE` macro should be tested -before including the header: +for details. ``` c - #ifdef __ARM_NEON_SVE_BRIDGE #include - #endif /* __ARM_NEON_SVE_BRIDGE */ ``` Including `` will also include @@ -1040,17 +1018,8 @@ intrinsics occupy both the user namespace and the `__arm_` namespace; defining `__ARM_MVE_PRESERVE_USER_NAMESPACE` will hide the definition of the user namespace variants. -The `__ARM_FEATURE_MVE` macro should be tested before including the -header: - ``` c - #if (__ARM_FEATURE_MVE & 3) == 3 - #include - /* MVE integer and floating point intrinsics are now available to use. */ - #elif __ARM_FEATURE_MVE & 1 #include - /* MVE integer intrinsics are now available to use. */ - #endif ``` ### `` @@ -1061,13 +1030,10 @@ change or be extended in the future. `` declares functions and defines intrinsics for SME and its extensions; see [SME language extensions and intrinsics](#sme-language-extensions-and-intrinsics) -for details. The `__ARM_FEATURE_SME` macro should be tested before -including the header: +for details. ``` c - #ifdef __ARM_FEATURE_SME #include - #endif ``` Including `` also includes [``](#arm_sve.h).