Build a unary operation out of an input rvalue.
The parameter result_type
must be a numeric type.
The available unary operations are:
Unary Operation | C equivalent |
---|---|
GCC_JIT_UNARY_OP_MINUS | -(EXPR) |
GCC_JIT_UNARY_OP_BITWISE_NEGATE | ~(EXPR) |
GCC_JIT_UNARY_OP_LOGICAL_NEGATE | !(EXPR) |
GCC_JIT_UNARY_OP_ABS | abs (EXPR) |
Negate an arithmetic value; analogous to:
-(EXPR)
in C.
Bitwise negation of an integer value (one’s complement); analogous to:
~(EXPR)
in C.
Logical negation of an arithmetic or pointer value; analogous to:
!(EXPR)
in C.
Absolute value of an arithmetic expression; analogous to:
abs (EXPR)
in C.