diff options
author | Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> | 2023-05-04 20:58:01 +0100 |
---|---|---|
committer | Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> | 2023-05-04 20:58:01 +0100 |
commit | 3f19875d667522412408d06873e87ff8150e49c4 (patch) | |
tree | 5ad5fb928cc0812f3cac10c771b538a7adef97bf /src/crypto/sha256_sse41.cpp | |
parent | e16c22fe025f82166c7f3f15a37c96bf4a06e4cf (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_sse41.cpp')
-rw-r--r-- | src/crypto/sha256_sse41.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/crypto/sha256_sse41.cpp b/src/crypto/sha256_sse41.cpp index a535e8fb1a..d041fdfefc 100644 --- a/src/crypto/sha256_sse41.cpp +++ b/src/crypto/sha256_sse41.cpp @@ -37,7 +37,7 @@ __m128i inline sigma0(__m128i x) { return Xor(Or(ShR(x, 7), ShL(x, 25)), Or(ShR( __m128i inline sigma1(__m128i 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(__m128i a, __m128i b, __m128i c, __m128i& d, __m128i e, __m128i f, __m128i g, __m128i& h, __m128i k) +void ALWAYS_INLINE Round(__m128i a, __m128i b, __m128i c, __m128i& d, __m128i e, __m128i f, __m128i g, __m128i& h, __m128i k) { __m128i t1 = Add(h, Sigma1(e), Ch(e, f, g), k); __m128i t2 = Add(Sigma0(a), Maj(a, b, c)); |