Skip to content

Commit

Permalink
Use _Float16 in C++ on aarch64 with GCC 13+
Browse files Browse the repository at this point in the history
It seems GCC supports _Float16 in C++ on aarch64 since GCC 13, at least
according to my quick tests on godbolt.org.

(It was already supported in C since GCC 7.)
  • Loading branch information
mcatanzaro authored and mr-c committed May 23, 2024
1 parent 40f4d28 commit e30e6ec
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions simde/simde-f16.h
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ SIMDE_BEGIN_DECLS_
defined(SIMDE_X86_AVX512FP16_NATIVE) || \
(defined(SIMDE_ARCH_X86_SSE2) && HEDLEY_GCC_VERSION_CHECK(12,0,0)) || \
(defined(SIMDE_ARCH_AARCH64) && HEDLEY_GCC_VERSION_CHECK(7,0,0) && !defined(__cplusplus)) || \
(defined(SIMDE_ARCH_AARCH64) && HEDLEY_GCC_VERSION_CHECK(13,0,0)) || \
((defined(SIMDE_ARCH_X86_SSE2) || defined(SIMDE_ARCH_AMD64)) && SIMDE_DETECT_CLANG_VERSION_CHECK(15,0,0)) || \
(!(defined(SIMDE_ARCH_X86) || defined(SIMDE_ARCH_AMD64)) && SIMDE_DETECT_CLANG_VERSION_CHECK(6,0,0))) || \
defined(SIMDE_ARCH_RISCV_ZVFH)
Expand Down

0 comments on commit e30e6ec

Please sign in to comment.