mirror of
https://github.com/thunderbrewhq/squall.git
synced 2025-12-12 10:32:29 +00:00
feat(big): add SetOne
This commit is contained in:
parent
8413214ae0
commit
b2cbc02189
3 changed files with 25 additions and 0 deletions
|
|
@ -82,6 +82,11 @@ void Mul(BigBuffer& a, const BigBuffer& b, const BigBuffer& c, BigStack& stack)
|
|||
stack.UnmakeDistinct(a, aa);
|
||||
}
|
||||
|
||||
void SetOne(BigBuffer& buffer) {
|
||||
buffer.SetCount(1);
|
||||
buffer[0] = 1;
|
||||
}
|
||||
|
||||
void SetZero(BigBuffer& buffer) {
|
||||
buffer.Clear();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue