diff options
author | Benoit Steiner <benoit.steiner.goog@gmail.com> | 2016-05-23 17:16:09 -0700 |
---|---|---|
committer | Benoit Steiner <benoit.steiner.goog@gmail.com> | 2016-05-23 17:16:09 -0700 |
commit | a5a3ba2b8041f24a4808b735ae2189c1d12b663c (patch) | |
tree | 651fd82b1750d374d1a3db40e16f017a10c043ce | |
parent | 5ba0ebe7c93513d11d21bb80d0db0a0390bb6300 (diff) |
Avoid unnecessary float to double conversions
-rw-r--r-- | Eigen/src/Core/MathFunctions.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Eigen/src/Core/MathFunctions.h b/Eigen/src/Core/MathFunctions.h index b9e918537..e406840a3 100644 --- a/Eigen/src/Core/MathFunctions.h +++ b/Eigen/src/Core/MathFunctions.h @@ -827,7 +827,7 @@ template<> EIGEN_DEVICE_FUNC EIGEN_ALWAYS_INLINE float mini(const float& x, const float& y) { - return fmin(x, y); + return fminf(x, y); } template<typename T> EIGEN_DEVICE_FUNC @@ -839,7 +839,7 @@ template<> EIGEN_DEVICE_FUNC EIGEN_ALWAYS_INLINE float maxi(const float& x, const float& y) { - return fmax(x, y); + return fmaxf(x, y); } #endif |