summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/LuaBigInt.cc19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/LuaBigInt.cc b/src/LuaBigInt.cc
index 91823b2..d70cc55 100644
--- a/src/LuaBigInt.cc
+++ b/src/LuaBigInt.cc
@@ -519,6 +519,25 @@ void LuaBigIntFactory::pushObjectAndMembers(Lua & L) {
PUSH_METHOD(BigInt, BIGINT_GCD);
PUSH_METHOD(BigInt, BIGINT_LCM);
+
+ PUSH_METHOD(BigInt, BIGINT_MODADD);
+ PUSH_METHOD(BigInt, BIGINT_MODSUB);
+ PUSH_METHOD(BigInt, BIGINT_MODMUL);
+ PUSH_METHOD(BigInt, BIGINT_MODSQR);
+ PUSH_METHOD(BigInt, BIGINT_MODINV);
+ PUSH_METHOD(BigInt, BIGINT_MODPOW);
+
+ PUSH_METHOD(BigInt, BIGINT_DO_MODADD);
+ PUSH_METHOD(BigInt, BIGINT_DO_MODSUB);
+ PUSH_METHOD(BigInt, BIGINT_DO_MODMUL);
+ PUSH_METHOD(BigInt, BIGINT_DO_MODSQR);
+ PUSH_METHOD(BigInt, BIGINT_DO_MODINV);
+ PUSH_METHOD(BigInt, BIGINT_DO_MODPOW);
+
+ PUSH_METHOD(BigInt, BIGINT_ISPRIME);
+ PUSH_METHOD(BigInt, BIGINT_ISNEG);
+ PUSH_METHOD(BigInt, BIGINT_ISZERO);
+ PUSH_METHOD(BigInt, BIGINT_ISPOS);
}
void Balau::registerLuaBigInt(Lua & L) {