28 __m128d
t = _mm_set_sd(
value);
29 return _mm_cvtsd_si32(
t);
31 return static_cast<int>(lrint(
value));
39 #if MRPT_HAS_SSE2 && MRPT_WORD_SIZE == 64 40 __m128d
t = _mm_set_sd(
value);
41 return _mm_cvtsd_si64(
t);
55 long double F = ::pow((
long double)10.0, -(
long double)power10);
long round_long(const T value)
Returns the closer integer (long) to x.
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
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...
int round(const T value)
Returns the closer integer (int) to x.
GLsizei const GLfloat * value