Skip to content
This repository was archived by the owner on Feb 12, 2025. It is now read-only.

sha512256: patch portability.h to compile on ARM #764

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
- Fix XRP incremental synchronization
- Improve runtime performances by splitting db connections between Write pool and Read pool
- use of tx "id" field (if present) instead of "hash" for btc explorers
- Fix compilation on ARM

## 3.5.0

Expand Down
4 changes: 3 additions & 1 deletion core/lib/sha512256/portability.h
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,9 @@ static inline uint64_t swap_uint64(uint64_t val)
#define FASTCALL
#define CPPCRYPTOAPI

#if defined(__clang__) || defined(__SUNPRO_CC)
#if defined(__clang__) || defined(__SUNPRO_CC)\
|| defined(__arm__) || defined(__aarch32__) \
|| defined(__arm64__) || defined(__aarch64__)
static inline uint32_t rotater32(uint32_t x, unsigned n)
{
return (x >> n) | (x << (32 - n));
Expand Down