26 __m128d
t = _mm_set_sd(
value);
27 return _mm_cvtsd_si32(
t);
29 return static_cast<int>(lrint(
value));
37 #if MRPT_HAS_SSE2 && MRPT_WORD_SIZE == 64 38 __m128d
t = _mm_set_sd(
value);
39 return _mm_cvtsd_si64(
t);
53 long double F = ::pow((
long double)10.0, -(
long double)power10);
long round_long(const T value)
Returns the closer integer (long) to x.
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.
GLsizei const GLfloat * value
int round(const T value)
Returns the closer integer (int) to x.