2023-01-23 22:10:24 -06:00
|
|
|
#ifndef STORM_BIG_OPS_HPP
|
|
|
|
|
#define STORM_BIG_OPS_HPP
|
|
|
|
|
|
2023-01-29 11:48:18 -06:00
|
|
|
#include "storm/big/BigBuffer.hpp"
|
2023-01-23 22:10:24 -06:00
|
|
|
#include <cstdint>
|
|
|
|
|
|
2023-01-29 22:12:59 -06:00
|
|
|
void Add(BigBuffer& a, const BigBuffer& b, const BigBuffer& c);
|
|
|
|
|
|
2023-01-23 22:10:24 -06:00
|
|
|
uint32_t ExtractLowPart(uint64_t& value);
|
|
|
|
|
|
|
|
|
|
uint32_t ExtractLowPartSx(uint64_t& value);
|
|
|
|
|
|
2023-01-29 20:37:09 -06:00
|
|
|
void FromBinary(BigBuffer& buffer, const void* value, uint32_t bytes);
|
|
|
|
|
|
2023-01-29 11:48:18 -06:00
|
|
|
void FromUnsigned(BigBuffer& buffer, uint32_t value);
|
|
|
|
|
|
2023-01-23 22:10:24 -06:00
|
|
|
uint64_t MakeLarge(uint32_t low, uint32_t high);
|
|
|
|
|
|
2023-01-29 11:48:18 -06:00
|
|
|
void ToBinary(TSGrowableArray<uint8_t>& output, const BigBuffer& buffer);
|
|
|
|
|
|
2023-01-23 22:10:24 -06:00
|
|
|
#endif
|