diff --git a/CLAUDE.md b/CLAUDE.md index 6aada88..0681075 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -166,11 +166,12 @@ Routing is deliberate and hardwired, not runtime-probed: in `hkdf.lua`. - **bignum** → per operation, behind `Feature.BN` and that operation's own multi-limb known-answer check; `bignum.is_accelerated(op)` reports each. - `mod_exp` routes at every size; `mul`, `divmod`, `mod` and `mod_mul` once - estimated pure-Lua work reaches `ROUTE_MIN_RATIO` limb products per limb - converted, so linear-cost calls stay pure Lua. The measurements and the one - known loss (narrow `mul` under LuaJIT's JIT) are in `bignum.lua`'s OpenSSL - section; measure whether Control4's LuaJIT runs its JIT before changing it. + `mod_exp` routes at every size; `divmod`, `mod` and `mod_mul` once estimated + pure-Lua work reaches `ROUTE_MIN_RATIO` (4) limb products per limb converted, + `mul` at `MUL_ROUTE_MIN_RATIO` (12), so linear-cost calls stay pure Lua. Both + ratios were measured on a Control4 controller with LuaJIT's JIT on (a driver + enables it with `jit="1"` on its `