Changeset 1233 for trunk/lib


Ignore:
Timestamp:
Jul 28, 2011, 4:03:01 PM (8 years ago)
Author:
cameron
Message:

Add sisd_to_int

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/avx_simd.h

    r973 r1233  
    358358#define sisd_from_int(n) _mm256_castsi256_ps(_mm256_castsi128_si256(_mm_cvtsi32_si128(n)))
    359359
     360#define sisd_to_int(x)  _mm_extract_epi32(_mm256_castsi256_si128((__m256i) x), 0)
    360361/*
    361362#define sisd_to_int(x) _mm_cvtsi128_si32(x)
Note: See TracChangeset for help on using the changeset viewer.