Skip to content

Commit 9ec2de7

Browse files
Introduce __ARM_ACLE_VERSION macro. (#302)
1 parent 66b1970 commit 9ec2de7

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

main/acle.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -355,6 +355,7 @@ Armv8.4-A [[ARMARMv84]](#ARMARMv84). Support is added for the Dot Product intrin
355355

356356
* Changed the definition of the `__ARM_ACLE` macro to reflect the current
357357
versioning scheme.
358+
* Added `__ARM_ACLE_VERSION` to express a given ACLE version.
358359
* Combined the SME `slice_base` and `slice_offset` arguments into a
359360
single `slice` argument.
360361
* Added the [Keyword attributes](#keyword-attributes) section.
@@ -1350,6 +1351,15 @@ version of this specification implemented. For instance, an implementation
13501351
implementing version 2.1 of the ACLE specification defined `__ARM_ACLE`
13511352
as `201`.
13521353

1354+
`__ARM_ACLE_VERSION(year, quarter, patch)` is defined to express a given
1355+
ACLE version. Returns with the version number in the same format as the
1356+
`__ARM_ACLE` does. Checking the minimum required ACLE version could be
1357+
written as:
1358+
1359+
``` c
1360+
#if __ARM_ACLE >= __ARM_ACLE_VERSION(2024, 1, 0)
1361+
```
1362+
13531363
## Endianness
13541364

13551365
`__ARM_BIG_ENDIAN` is defined as 1 if data is stored by default in

0 commit comments

Comments
 (0)