MCPcopy Create free account
hub / github.com/dylan-sutton-chavez/edge-python / too_large

Function too_large

std/math/src/main/int.rs:8–15  ·  view source on GitHub ↗
(what: &str)

Source from the content-addressed store, hash-verified

6use wasm_pdk::*;
7
8fn too_large(what: &str) -> Error {
9 Error::Value(match what {
10 "factorial" => String::from("factorial() result exceeds the i128 range"),
11 "comb" => String::from("comb() result exceeds the i128 range"),
12 "perm" => String::from("perm() result exceeds the i128 range"),
13 _ => String::from("lcm() result exceeds the i128 range"),
14 })
15}
16
17// Euclidean gcd on non-negative inputs.
18fn gcd2(mut a: i128, mut b: i128) -> i128 {

Callers 4

factorialFunction · 0.85
lcmFunction · 0.85
combFunction · 0.85
permFunction · 0.85

Calls 1

ValueEnum · 0.50

Tested by

no test coverage detected