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_ssse3.cpp

    r1872 r1884  
    20532053template <> IDISA_ALWAYS_INLINE uint64_t hsimd128<64>::signmask(bitblock128_t arg1)
    20542054{
    2055         return _mm_movemask_pd(((__m128d)arg1));
     2055        return _mm_movemask_pd(reinterpret_cast<__m128d>(arg1));
    20562056}
    20572057
     
    26832683template <> template <uint64_t pos> IDISA_ALWAYS_INLINE uint64_t mvmd128<32>::extract(bitblock128_t arg1)
    26842684{
    2685         return ((((uint64_t)mvmd128<(16)>::extract<((2*pos)+1)>(arg1))<<(16))|mvmd128<(16)>::extract<(2*pos)>(arg1));
     2685        return ((mvmd128<(16)>::extract<((2*pos)+1)>(arg1)<<(16))|mvmd128<(16)>::extract<(2*pos)>(arg1));
    26862686}
    26872687
     
    26892689template <> template <uint64_t pos> IDISA_ALWAYS_INLINE uint64_t mvmd128<64>::extract(bitblock128_t arg1)
    26902690{
    2691         return ((((uint64_t)mvmd128<(32)>::extract<((2*pos)+1)>(arg1))<<(32))|mvmd128<(32)>::extract<(2*pos)>(arg1));
     2691        return ((mvmd128<(32)>::extract<((2*pos)+1)>(arg1)<<(32))|mvmd128<(32)>::extract<(2*pos)>(arg1));
    26922692}
    26932693
Note: See TracChangeset for help on using the changeset viewer.