diff options
author | Jeff Garzik <jeff@garzik.org> | 2010-12-18 16:29:07 -0500 |
---|---|---|
committer | Jeff Garzik <jgarzik@redhat.com> | 2010-12-18 16:29:07 -0500 |
commit | 0ee24c00ceaea805c0c7222a13733e4030331ac5 (patch) | |
tree | d2611046119137af8ba8de29bfeafaf1b2eaf36f | |
parent | ce1c9a8aca8b5fa43a3bcf577b1897e5e6a5cf3d (diff) |
sha256_4way: work around gcc 4.5.x bug by always inlining ROTR and SHR
-rw-r--r-- | sha256_4way.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sha256_4way.c b/sha256_4way.c index 5ffe1c8..b196e8d 100644 --- a/sha256_4way.c +++ b/sha256_4way.c @@ -47,11 +47,11 @@ static inline __m128i Maj(const __m128i b, const __m128i c, const __m128i d) { return (b & c) ^ (b & d) ^ (c & d); } -static inline __m128i ROTR(__m128i x, const int n) { +static __attribute__((always_inline)) __m128i ROTR(__m128i x, const int n) { return _mm_srli_epi32(x, n) | _mm_slli_epi32(x, 32 - n); } -static inline __m128i SHR(__m128i x, const int n) { +static __attribute__((always_inline)) __m128i SHR(__m128i x, const int n) { return _mm_srli_epi32(x, n); } |