feat(big): add SBigNot

This commit is contained in:
Adam Heinermann 2024-11-15 09:01:26 -08:00 committed by superp00t
parent 1cad63b7f2
commit 5688b7ec3e
5 changed files with 58 additions and 0 deletions

View file

@ -277,6 +277,15 @@ void MulMod(BigBuffer& a, const BigBuffer& b, const BigBuffer& c, const BigBuffe
stack.Free(allocCount);
}
void Not(BigBuffer& a, const BigBuffer& b) {
uint32_t i = 0;
for (; b.IsUsed(i); i++) {
a[i] = ~b[i];
}
a.SetCount(i);
}
void PowMod(BigBuffer& a, const BigBuffer& b, const BigBuffer& c, const BigBuffer& d, BigStack& stack) {
c.Trim();