mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-07-14 09:01:47 +08:00
Disable FP16 arithmetic for arm32.
(cherry picked from commit 7465b7651edfb58322557179658853243eb96372)
This commit is contained in:
parent
6161ce5cde
commit
129e003cdf
@ -574,7 +574,7 @@
|
||||
|
||||
/// \internal EIGEN_HAS_ARM64_FP16_VECTOR_ARITHMETIC set to 1 if the architecture
|
||||
/// supports Neon vector intrinsics for fp16.
|
||||
#if EIGEN_ARCH_ARM_OR_ARM64
|
||||
#if EIGEN_ARCH_ARM64
|
||||
#ifndef EIGEN_HAS_ARM64_FP16_VECTOR_ARITHMETIC
|
||||
// Clang only supports FP16 on aarch64, and not all intrinsics are available
|
||||
// on A32 anyways even in GCC (e.g. vdiv_f16, vsqrt_f16).
|
||||
@ -588,7 +588,7 @@
|
||||
|
||||
/// \internal EIGEN_HAS_ARM64_FP16_SCALAR_ARITHMETIC set to 1 if the architecture
|
||||
/// supports Neon scalar intrinsics for fp16.
|
||||
#if EIGEN_ARCH_ARM_OR_ARM64
|
||||
#if EIGEN_ARCH_ARM64
|
||||
#ifndef EIGEN_HAS_ARM64_FP16_SCALAR_ARITHMETIC
|
||||
// Clang only supports FP16 on aarch64, and not all intrinsics are available
|
||||
// on A32 anyways, even in GCC (e.g. vceqh_f16).
|
||||
|
Loading…
x
Reference in New Issue
Block a user