Nearest integer floating point operations¶
-
template<class
T
, classA
>
batch<T, A>xsimd
::
ceil
(batch<T, A> const &x) noexcept¶ Computes the batch of smallest integer values not less than scalars in
x
.- Return
the batch of smallest integer values not less than
x
.- Parameters
x
: batch of floating point values.
-
template<class
T
, classA
>
batch<T, A>xsimd
::
floor
(batch<T, A> const &x) noexcept¶ Computes the batch of largest integer values not greater than scalars in
x
.- Return
the batch of largest integer values not greater than
x
.- Parameters
x
: batch of floating point values.
-
template<class
T
, classA
>
batch<T, A>xsimd
::
trunc
(batch<T, A> const &x) noexcept¶ Computes the batch of nearest integer values not greater in magnitude than scalars in
x
.- Return
the batch of nearest integer values not greater in magnitude than
x
.- Parameters
x
: batch of floating point values.
-
template<class
T
, classA
>
batch<T, A>xsimd
::
round
(batch<T, A> const &x) noexcept¶ Computes the batch of nearest integer values to scalars in
x
(in floating point format), rounding halfway cases away from zero, regardless of the current rounding mode.- Return
the batch of nearest integer values.
- Parameters
x
: batch of flaoting point values.