aboutsummaryrefslogtreecommitdiff
path: root/src/crypto/sha256_avx2.cpp
diff options
context:
space:
mode:
authorHennadii Stepanov <32963518+hebasto@users.noreply.github.com>2023-05-04 20:58:01 +0100
committerHennadii Stepanov <32963518+hebasto@users.noreply.github.com>2023-05-04 20:58:01 +0100
commit3f19875d667522412408d06873e87ff8150e49c4 (patch)
tree5ad5fb928cc0812f3cac10c771b538a7adef97bf /src/crypto/sha256_avx2.cpp
parente16c22fe025f82166c7f3f15a37c96bf4a06e4cf (diff)
scripted-diff: Use platform-agnostic `ALWAYS_INLINE` macro
-BEGIN VERIFY SCRIPT- sed -i 's/ inline __attribute__((always_inline)) / ALWAYS_INLINE /g' $(git grep -l "inline __attribute__((always_inline))") sed -i 's/ inline __attribute__((always_inline)) / ALWAYS_INLINE /g' $(git grep -l "inline __attribute__((always_inline))") -END VERIFY SCRIPT-
Diffstat (limited to 'src/crypto/sha256_avx2.cpp')
-rw-r--r--src/crypto/sha256_avx2.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/crypto/sha256_avx2.cpp b/src/crypto/sha256_avx2.cpp
index fc8726e8e9..df8cb7a6c9 100644
--- a/src/crypto/sha256_avx2.cpp
+++ b/src/crypto/sha256_avx2.cpp
@@ -37,7 +37,7 @@ __m256i inline sigma0(__m256i x) { return Xor(Or(ShR(x, 7), ShL(x, 25)), Or(ShR(
__m256i inline sigma1(__m256i x) { return Xor(Or(ShR(x, 17), ShL(x, 15)), Or(ShR(x, 19), ShL(x, 13)), ShR(x, 10)); }
/** One round of SHA-256. */
-void inline __attribute__((always_inline)) Round(__m256i a, __m256i b, __m256i c, __m256i& d, __m256i e, __m256i f, __m256i g, __m256i& h, __m256i k)
+void ALWAYS_INLINE Round(__m256i a, __m256i b, __m256i c, __m256i& d, __m256i e, __m256i f, __m256i g, __m256i& h, __m256i k)
{
__m256i t1 = Add(h, Sigma1(e), Ch(e, f, g), k);
__m256i t2 = Add(Sigma0(a), Maj(a, b, c));