feat(big): add SBigIsOne

This commit is contained in:
Adam Heinermann 2024-11-15 08:35:42 -08:00 committed by superp00t
parent 9074869097
commit c9826d2336
5 changed files with 29 additions and 0 deletions

View file

@ -77,6 +77,10 @@ int32_t SBigIsOdd(BigData* a) {
return IsOdd(a->Primary());
}
int32_t SBigIsOne(BigData* a) {
return IsOne(a->Primary());
}
void SBigMod(BigData* a, BigData* b, BigData* c) {
uint32_t allocCount = 0;
auto& scratch = a->Stack().Alloc(&allocCount);