Changeset 1897 for trunk/lib/idisa_cpp


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

Using _mm_castsi128_pd and _mm_castsi128_ps for casting.

Location:
trunk/lib/idisa_cpp
Files:
5 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
  • trunk/lib/idisa_cpp/idisa_sse3.cpp

    r1884 r1897  
    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
  • trunk/lib/idisa_cpp/idisa_sse4_1.cpp

    r1884 r1897  
    20592059template <> IDISA_ALWAYS_INLINE uint64_t hsimd128<64>::signmask(bitblock128_t arg1)
    20602060{
    2061         return _mm_movemask_pd(reinterpret_cast<__m128d>(arg1));
     2061        return _mm_movemask_pd(_mm_castsi128_pd(arg1));
    20622062}
    20632063
  • trunk/lib/idisa_cpp/idisa_sse4_2.cpp

    r1884 r1897  
    20412041template <> IDISA_ALWAYS_INLINE uint64_t hsimd128<64>::signmask(bitblock128_t arg1)
    20422042{
    2043         return _mm_movemask_pd(reinterpret_cast<__m128d>(arg1));
     2043        return _mm_movemask_pd(_mm_castsi128_pd(arg1));
    20442044}
    20452045
  • trunk/lib/idisa_cpp/idisa_ssse3.cpp

    r1884 r1897  
    20532053template <> IDISA_ALWAYS_INLINE uint64_t hsimd128<64>::signmask(bitblock128_t arg1)
    20542054{
    2055         return _mm_movemask_pd(reinterpret_cast<__m128d>(arg1));
     2055        return _mm_movemask_pd(_mm_castsi128_pd(arg1));
    20562056}
    20572057
Note: See TracChangeset for help on using the changeset viewer.