Ignore:
Timestamp:
Sep 9, 2013, 1:58:12 PM (6 years ago)
Author:
linmengl
Message:

opt on hsimd_signmask

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/bitblock256.hpp

    r3451 r3453  
    9797
    9898IDISA_ALWAYS_INLINE bitblock256_t convert(uint64_t s)
    99 {
    100   ubitblock b = {b._256 = simd256<128>::constant<0>()}; // = {0};
    101   b._64[0] = s;
    102   return b._256;
     99
     100  return _mm256_castsi128_si256(_mm_cvtsi64_si128(s));
     101  // ubitblock b = {b._256 = simd256<128>::constant<0>()}; // = {0};
     102  // b._64[0] = s;
     103  // return b._256;
    103104}
    104105
     
    112113IDISA_ALWAYS_INLINE uint64_t convert(bitblock256_t v)
    113114{
    114   return (uint64_t) mvmd256<64>::extract<0>(v);
     115  return (uint64_t) _mm_cvtsi128_si64(avx_select_lo128(v));
     116  // return (uint64_t) mvmd256<64>::extract<0>(v);
    115117}
    116118
Note: See TracChangeset for help on using the changeset viewer.