(x: ArgIndex, vm: &VirtualMachine)
| 770 | |
| 771 | #[pyfunction] |
| 772 | fn isqrt(x: ArgIndex, vm: &VirtualMachine) -> PyResult<BigInt> { |
| 773 | let value = x.into_int_ref(); |
| 774 | pymath::math::integer::isqrt(value.as_bigint()) |
| 775 | .map_err(|_| vm.new_value_error("isqrt() argument must be nonnegative")) |
| 776 | } |
| 777 | |
| 778 | #[pyfunction] |
| 779 | fn gcd(args: PosArgs<ArgIndex>) -> BigInt { |
nothing calls this directly
no test coverage detected