From 5285c91f975c319078f6de7ad4568ce7f925bd6b Mon Sep 17 00:00:00 2001 From: lloyd Date: Fri, 23 Apr 2010 12:51:44 +0000 Subject: Remove some C-style casts --- src/utils/bswap.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/utils') 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(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 -- cgit v1.2.3