From b94ac4ee027f2500ff2716ee4c9ce76d90e9378c Mon Sep 17 00:00:00 2001 From: antichris <881420+antichris@users.noreply.github.com> Date: Tue, 20 Apr 2021 22:02:53 +0300 Subject: [PATCH 1/2] sha512256: patch portability.h to compile on ARM Intel's x86 intrinsics do not apply to ARM architectures (obviously!). This patch only enables compilation: for optimum performance architecture-specific bytecode should be implemented instead. This should probably also be backported to other branches, such as 3.5.x on which the current stable `npm` package (and, through that, Live) depends. --- core/lib/sha512256/portability.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/lib/sha512256/portability.h b/core/lib/sha512256/portability.h index 67ea67211c..3ffab5ad7b 100644 --- a/core/lib/sha512256/portability.h +++ b/core/lib/sha512256/portability.h @@ -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)); From 961b69bfc6456374109f55c0f965eda64ccc4560 Mon Sep 17 00:00:00 2001 From: antichris <881420+antichris@users.noreply.github.com> Date: Tue, 20 Apr 2021 22:08:01 +0300 Subject: [PATCH 2/2] Update CHANGELOG.md --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index ec8a469f97..0762eee0c7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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