mirror of
https://github.com/thunderbrewhq/squall.git
synced 2025-12-12 02:22:30 +00:00
feat(big) add SBigIsEven
This commit is contained in:
parent
328bbf61d8
commit
6759cb4d7c
5 changed files with 34 additions and 0 deletions
|
|
@ -69,6 +69,10 @@ void SBigInc(BigData* a, BigData* b) {
|
|||
Add(a->Primary(), b->Primary(), 1);
|
||||
}
|
||||
|
||||
int32_t SBigIsEven(BigData* a) {
|
||||
return IsEven(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