mir-core — Libmir Archive
← Libmir Archive
Dlang.org
negs
mir
checkedint
Negate an integer.
int
negs
(int x, bool overflow)
long
negs
(long x, bool overflow)
nothrow @
safe
@
nogc
pure pragma(
inline
, true)
long
negs
(
long
x
,
scope
ref
bool
overflow
)
cent
negs
(cent x, bool overflow)
Parameters
x
long
operand
overflow
bool
set if x cannot be negated, is not affected otherwise
Return Value
Type:
long
the negation of x
mir
checkedint
functions
adds
addu
muls
mulu
negs
subs
subu
Negate an integer.