Rounding functions¶
floor
function¶
template <typename T1, KFR_ENABLE_IF(is_numeric<T1>)>
T1 floor(const T1 &x)
Returns the largest integer value not greater than x
Source code
template <typename T1, KFR_ENABLE_IF(is_numeric<T1>)>
KFR_INTRINSIC T1 floor(const T1& x)
{
return intrinsics::floor(x);
}
https://github.com/kfrlib/kfr/blob//include/kfr/math/round.hpp#L37
template <typename E1,
KFR_ENABLE_IF(is_input_expression<E1>)>
internal::expression_function<fn::floor, E1> floor(E1 &&x)
Returns the largest integer value not greater than x. Accepts and returns expressions.
Source code
template <typename E1, KFR_ENABLE_IF(is_input_expression<E1>)>
KFR_INTRINSIC internal::expression_function<fn::floor, E1> floor(E1&& x)
{
return { fn::floor(), std::forward<E1>(x) };
}
https://github.com/kfrlib/kfr/blob//include/kfr/math/round.hpp#L44
Auto-generated from sources, Revision , https://github.com/kfrlib/kfr/blob//include/kfr/