Ignore:
Timestamp:
Jan 25, 2012, 10:39:57 PM (7 years ago)
Author:
cameron
Message:

Use reinterpret_cast for IDISA_CASTING

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/idisa_cpp/idisa_sse4_2.cpp

    r1872 r1884  
    20412041template <> IDISA_ALWAYS_INLINE uint64_t hsimd128<64>::signmask(bitblock128_t arg1)
    20422042{
    2043         return _mm_movemask_pd(((__m128d)arg1));
     2043        return _mm_movemask_pd(reinterpret_cast<__m128d>(arg1));
    20442044}
    20452045
     
    26702670template <> template <uint64_t pos> IDISA_ALWAYS_INLINE uint64_t mvmd128<32>::extract(bitblock128_t arg1)
    26712671{
    2672         return (((uint64_t)((4294967296ULL)-1))&_mm_extract_epi32(arg1, (int32_t)(pos)));
     2672        return (reinterpret_cast<uint64_t>(((4294967296ULL)-1))&_mm_extract_epi32(arg1, (int32_t)(pos)));
    26732673}
    26742674
     
    26762676template <> template <uint64_t pos> IDISA_ALWAYS_INLINE uint64_t mvmd128<64>::extract(bitblock128_t arg1)
    26772677{
    2678         return ((((uint64_t)mvmd128<(32)>::extract<((2*pos)+1)>(arg1))<<(32))|mvmd128<(32)>::extract<(2*pos)>(arg1));
     2678        return ((mvmd128<(32)>::extract<((2*pos)+1)>(arg1)<<(32))|mvmd128<(32)>::extract<(2*pos)>(arg1));
    26792679}
    26802680
Note: See TracChangeset for help on using the changeset viewer.