29 __m128d t = _mm_set_sd(value);
30 return _mm_cvtsd_si32(t);
34 return static_cast<int>(lrint(value));
41 #if MRPT_HAS_SSE2 && MRPT_WORD_SIZE == 64 44 __m128d t = _mm_set_sd(value);
45 return _mm_cvtsd_si64(t);
60 long double F = ::pow((
long double)10.0, -(
long double)power10);
long round_long(const T value)
Returns the closer integer (long) to x.
bool supports(feature f) noexcept
Returns true if CPU (and OS) supports the given CPU feature, and that instruction set or feature was ...
T round_10power(T val, int power10)
Round a decimal number up to the given 10'th power (eg, to 1000,100,10, and also fractions) power10 m...
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
int round(const T value)
Returns the closer integer (int) to x.