aboutsummaryrefslogtreecommitdiffhomepage
path: root/Eigen/Core
diff options
context:
space:
mode:
authorGravatar Benoit Steiner <benoit.steiner.goog@gmail.com>2016-04-20 12:10:27 -0700
committerGravatar Benoit Steiner <benoit.steiner.goog@gmail.com>2016-04-20 12:10:27 -0700
commit80200a182862bf7c19b51645ab8e7b9e15b65a90 (patch)
tree5b91cb3a7c9c07d75651461a98b1f5c59f0e1686 /Eigen/Core
parentc7c2054bb519ad01039560254f9dda8698cb0cd9 (diff)
Don't attempt to leverage the _cvtss_sh and _cvtsh_ss instructions when compiling with clang since it's unclear which versions of clang actually support these instruction.
Diffstat (limited to 'Eigen/Core')
-rw-r--r--Eigen/Core2
1 files changed, 1 insertions, 1 deletions
diff --git a/Eigen/Core b/Eigen/Core
index ac58f10c3..50040135f 100644
--- a/Eigen/Core
+++ b/Eigen/Core
@@ -204,7 +204,7 @@
#endif
#endif
-#if defined(__F16C__)
+#if defined(__F16C__) && !defined(EIGEN_COMP_CLANG)
// We can use the optimized fp16 to float and float to fp16 conversion routines
#define EIGEN_HAS_FP16_C
#endif