Skip to content

Commit

Permalink
[fix] fix #94: detection of __ARM_ARCH_8A__
Browse files Browse the repository at this point in the history
  • Loading branch information
biojppm committed Nov 18, 2022
1 parent 1973d49 commit af165bc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions changelog/current.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
- Add fully qualified ARM detection macros:
- `__ARM_ARCH_7EM__` ([PR#90](https://github.com/biojppm/c4core/pull/90)).
- `__ARM_ARCH_6KZ__` ([PR#93](https://github.com/biojppm/c4core/pull/93)).
- `__ARM_ARCH_8A__` ([#94](https://github.com/biojppm/c4core/issues/94)).
- Improve linux and unix platform detection: detect both `__linux` and `__linux__` ([PR#92](https://github.com/biojppm/c4core/pull/92)).


Expand Down
4 changes: 3 additions & 1 deletion src/c4/cpu.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,9 @@
#else
#define C4_CPU_ARM
#define C4_WORDSIZE 4
#if defined(__ARM_ARCH_8__) || (defined(__TARGET_ARCH_ARM) && __TARGET_ARCH_ARM >= 8)
#if defined(__ARM_ARCH_8__) || defined(__ARM_ARCH_8A__) \
|| (defined(__ARCH_ARM) && __ARCH_ARM >= 8)
|| (defined(__TARGET_ARCH_ARM) && __TARGET_ARCH_ARM >= 8) \
#define C4_CPU_ARMV8
#elif defined(__ARM_ARCH_7__) || defined(_ARM_ARCH_7) \
|| defined(__ARM_ARCH_7A__) || defined(__ARM_ARCH_7R__) \
Expand Down

0 comments on commit af165bc

Please sign in to comment.