mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-05-05 02:04:07 +08:00
Avoid unnecessary float to double conversions
This commit is contained in:
parent
5ba0ebe7c9
commit
a5a3ba2b80
@ -827,7 +827,7 @@ template<>
|
|||||||
EIGEN_DEVICE_FUNC
|
EIGEN_DEVICE_FUNC
|
||||||
EIGEN_ALWAYS_INLINE float mini(const float& x, const float& y)
|
EIGEN_ALWAYS_INLINE float mini(const float& x, const float& y)
|
||||||
{
|
{
|
||||||
return fmin(x, y);
|
return fminf(x, y);
|
||||||
}
|
}
|
||||||
template<typename T>
|
template<typename T>
|
||||||
EIGEN_DEVICE_FUNC
|
EIGEN_DEVICE_FUNC
|
||||||
@ -839,7 +839,7 @@ template<>
|
|||||||
EIGEN_DEVICE_FUNC
|
EIGEN_DEVICE_FUNC
|
||||||
EIGEN_ALWAYS_INLINE float maxi(const float& x, const float& y)
|
EIGEN_ALWAYS_INLINE float maxi(const float& x, const float& y)
|
||||||
{
|
{
|
||||||
return fmax(x, y);
|
return fmaxf(x, y);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user