mirror of
https://github.com/thunderbrewhq/squall.git
synced 2026-02-04 00:49:08 +00:00
feat(big): add SBigIsZero
This commit is contained in:
parent
4b9709e32d
commit
fb12ba7c65
5 changed files with 33 additions and 0 deletions
|
|
@ -81,6 +81,10 @@ int32_t SBigIsOne(BigData* a) {
|
|||
return IsOne(a->Primary());
|
||||
}
|
||||
|
||||
int32_t SBigIsZero(BigData* a) {
|
||||
return IsZero(a->Primary());
|
||||
}
|
||||
|
||||
void SBigMod(BigData* a, BigData* b, BigData* c) {
|
||||
uint32_t allocCount = 0;
|
||||
auto& scratch = a->Stack().Alloc(&allocCount);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue