feat(big): add InsertLowPart

This commit is contained in:
fallenoak 2023-02-01 22:12:20 -06:00
parent 5d875631a6
commit 2b8cc51ad8
No known key found for this signature in database
GPG key ID: 7628F8E61AEA070D
3 changed files with 32 additions and 0 deletions

View file

@ -95,6 +95,10 @@ uint32_t HighBitPos(const BigBuffer& buffer) {
return 0;
}
void InsertLowPart(uint64_t& value, uint32_t low) {
value = (value << 32) | low;
}
uint64_t MakeLarge(uint32_t low, uint32_t high) {
return low + (static_cast<uint64_t>(high) << 32);
}