Ignore:
Timestamp:
Jan 28, 2012, 11:55:37 AM (8 years ago)
Author:
cameron
Message:

Using _mm_castsi128_pd and _mm_castsi128_ps for casting.

File:
1 edited

Legend:

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

    r1884 r1897  
    20452045template <> IDISA_ALWAYS_INLINE uint64_t hsimd128<32>::signmask(bitblock128_t arg1)
    20462046{
    2047         return _mm_movemask_ps(reinterpret_cast<__m128>(arg1));
     2047        return _mm_movemask_ps(_mm_castsi128_ps(arg1));
    20482048}
    20492049
     
    20512051template <> IDISA_ALWAYS_INLINE uint64_t hsimd128<64>::signmask(bitblock128_t arg1)
    20522052{
    2053         return _mm_movemask_pd(reinterpret_cast<__m128d>(arg1));
     2053        return _mm_movemask_pd(_mm_castsi128_pd(arg1));
    20542054}
    20552055
Note: See TracChangeset for help on using the changeset viewer.