mirror of
https://github.com/thunderbrewhq/squall.git
synced 2025-12-12 02:22:30 +00:00
feat(big): add SBigAnd
This commit is contained in:
parent
c42bad55a2
commit
6801b32a99
8 changed files with 111 additions and 0 deletions
|
|
@ -22,6 +22,15 @@ void Add(BigBuffer& a, const BigBuffer& b, const BigBuffer& c) {
|
|||
a.SetCount(i);
|
||||
}
|
||||
|
||||
void And(BigBuffer& a, const BigBuffer& b, const BigBuffer& c) {
|
||||
uint32_t i = 0;
|
||||
for (; b.IsUsed(i) || c.IsUsed(i); i++) {
|
||||
a[i] = c[i] & b[i];
|
||||
}
|
||||
|
||||
a.SetCount(i);
|
||||
}
|
||||
|
||||
int32_t Compare(const BigBuffer& a, const BigBuffer& b) {
|
||||
int32_t result = 0;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue