![]() | Fun 0.41.5 The programming language that makes You have fun |
Implements the OP_ABS opcode for absolute value in the VM. More...
Go to the source code of this file.
Functions | |
| if (x.type !=VAL_INT) | |
| if (v< 0) v | |
| push_value (vm, make_int(v)) | |
| free_value (x) | |
Variables | |
| case | OP_ABS |
| int64_t | v = x.i |
| break | |
Implements the OP_ABS opcode for absolute value in the VM.
This file handles the OP_ABS instruction, which computes the absolute value of an integer.
Behavior:
Error Handling:
Definition in file abs.c.
| free_value | ( | x | ) |