mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-19 13:27:35 +02:00
Merge 2530a24689 into merged_master (Bitcoin PR bitcoin/bitcoin#26105)
This commit is contained in:
commit
0cfc7e07a1
1 changed files with 2 additions and 9 deletions
|
|
@ -6,6 +6,7 @@
|
|||
#ifndef BITCOIN_UINT256_H
|
||||
#define BITCOIN_UINT256_H
|
||||
|
||||
#include <crypto/common.h>
|
||||
#include <span.h>
|
||||
|
||||
#include <assert.h>
|
||||
|
|
@ -85,15 +86,7 @@ public:
|
|||
|
||||
uint64_t GetUint64(int pos) const
|
||||
{
|
||||
const uint8_t* ptr = m_data + pos * 8;
|
||||
return ((uint64_t)ptr[0]) | \
|
||||
((uint64_t)ptr[1]) << 8 | \
|
||||
((uint64_t)ptr[2]) << 16 | \
|
||||
((uint64_t)ptr[3]) << 24 | \
|
||||
((uint64_t)ptr[4]) << 32 | \
|
||||
((uint64_t)ptr[5]) << 40 | \
|
||||
((uint64_t)ptr[6]) << 48 | \
|
||||
((uint64_t)ptr[7]) << 56;
|
||||
return ReadLE64(m_data + pos * 8);
|
||||
}
|
||||
|
||||
template<typename Stream>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue