Skip to content

Commit 85fd36e

Browse files
committed
Addressing comments to __builtin_cpu_supports description.
1 parent d88d468 commit 85fd36e

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

clang/docs/LanguageExtensions.rst

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2817,13 +2817,13 @@ Query for this feature with ``__has_builtin(__builtin_readsteadycounter)``.
28172817
28182818
**Description**:
28192819
2820-
The ``__builtin_cpu_supports`` function detects at runtime if the target CPU
2821-
supports features specified in string argument. It returns a positive integer
2822-
if all features are supported and 0 otherwise. Names of features and format are
2823-
target specific. For example on AArch64 features are combined using ``+`` like
2824-
this ``__builtin_cpu_supports("flagm+sha3+lse+rcpc2+fcma+memtag+bti+sme2")``.
2825-
If a feature name is not supported or the format is wrong, the compiler will issue a
2826-
warning and replace builtin by the constant 0.
2820+
The ``__builtin_cpu_supports`` function detects if the run-time CPU supports
2821+
features specified in string argument. It returns a positive integer if all
2822+
features are supported and 0 otherwise. Feature names are target specific. On
2823+
AArch64 features are combined using ``+`` like this
2824+
``__builtin_cpu_supports("flagm+sha3+lse+rcpc2+fcma+memtag+bti+sme2")``.
2825+
If a feature name is not supported, Clang will issue a warning and replace
2826+
builtin by the constant 0.
28272827
28282828
Query for this feature with ``__has_builtin(__builtin_cpu_supports)``.
28292829

0 commit comments

Comments
 (0)