Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Moddable-OpenSource/moddable
/ mulinv
Method
mulinv
modules/crypt/arith/modular.js:58–60 ·
view source on GitHub ↗
(a)
Source
from the content-addressed store, hash-verified
56
return
a * a % this.m;
// can be optimized
57
}
58
mulinv(a) {
59
return
this._mulinv_general(a, this.m);
60
}
61
_mulinv_general(a, m) @
"xs_mod2_mulinv_general"
;
62
_mulinv_euclid(a, m) @
"xs_mod2_mulinv_euclid"
;
63
exp(a, e) {
Callers
6
test
Function · 0.95
_sign
Method · 0.80
_verify
Method · 0.80
_sign
Method · 0.80
_verify
Method · 0.80
constructor
Method · 0.80
Calls
no outgoing calls
Tested by
1
test
Function · 0.76