diff options
author | lloyd <[email protected]> | 2010-04-23 12:51:44 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2010-04-23 12:51:44 +0000 |
commit | 5285c91f975c319078f6de7ad4568ce7f925bd6b (patch) | |
tree | b05374259d8fb3226ca8b5fabc6ff02273085af4 /src/utils | |
parent | 3bc6f213f911fb52fa9c412bb6af1a9ece60a086 (diff) |
Remove some C-style casts
Diffstat (limited to 'src/utils')
-rw-r--r-- | src/utils/bswap.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/utils/bswap.h b/src/utils/bswap.h index fcb0fa7ea..49962f076 100644 --- a/src/utils/bswap.h +++ b/src/utils/bswap.h @@ -83,14 +83,14 @@ inline void bswap_4(T x[4]) template<> inline void bswap_4(u32bit x[4]) { - __m128i T = _mm_loadu_si128((const __m128i*)x); + __m128i T = _mm_loadu_si128(reinterpret_cast<const __m128i*>(x)); T = _mm_shufflehi_epi16(T, _MM_SHUFFLE(2, 3, 0, 1)); T = _mm_shufflelo_epi16(T, _MM_SHUFFLE(2, 3, 0, 1)); T = _mm_or_si128(_mm_srli_epi16(T, 8), _mm_slli_epi16(T, 8)); - _mm_storeu_si128((__m128i*)x, T); + _mm_storeu_si128(reinterpret_cast<__m128i*>(x), T); } #endif |