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