blob: 22be2a1a70d8dccabaa77dfe098bf4090f88dc13 [file] [log] [blame]
'use strict';
module.exports = function bigIntMod(BigIntRemainder, bigint, modulo) {
var remain = BigIntRemainder(bigint, modulo);
return remain >= 0 ? remain : remain + modulo;
};