|
inlineconstexpr |
Parameters
x
: value.c
: Conditional expression masking the operation.m
: Logical value masking the operation.Return value
x
if it is representable.x
. More specifically, for signed integral, abs[saturated](valmin(as<T>{}))
returns eve:valmax(as<T>{}))
x
is always representable except for The minimum value of integral signed values. In that case, contrarily to the standard, the result is not undefined behaviour, but just incorrect. In this case, eve::abs(valmin)
returns valmin
.abs
is also a standard library function name and there possibly exists a C macro version which may be called instead of the EVE version.eve::abs
notation.