![]() | Fun 0.41.5 The programming language that makes You have fun |
Implements the OP_ISQRT opcode for integer square root (floor). More...
Go to the source code of this file.
Functions | |
| if (!((v.type==VAL_INT)||(v.type==VAL_FLOAT))) | |
| if (a<=0) | |
| while (bit, n) | |
| free_value (v) | |
| push_value (vm, make_int(r)) | |
Variables | |
| case | OP_ISQRT |
| int64_t | a = (v.type == VAL_INT) ? v.i : (int64_t)v.d |
| uint64_t | n = (uint64_t)a |
| uint64_t | x = 0 |
| uint64_t | bit = (uint64_t)1 << 62 |
| int64_t | r = (int64_t)x |
| break | |
Implements the OP_ISQRT opcode for integer square root (floor).
Behavior:
Stack effect:
Types:
Definition in file isqrt.c.
| free_value | ( | v | ) |
