From a91c3d3a6cb5e71c6376b1efe7d037f02b36f035 Mon Sep 17 00:00:00 2001 From: Nicolas Noble Date: Mon, 12 Aug 2013 11:21:09 -0700 Subject: Forgot to actually push these. --- src/LuaBigInt.cc | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) 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) { -- cgit v1.2.3