mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
Disable FP16 arithmetic for arm32.
(cherry picked from commit 7465b7651e)
This commit is contained in:
committed by
C. Antonio Sanchez
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).
|
||||
|
||||
Reference in New Issue
Block a user