Lines 2325-2331
OIIO_FORCEINLINE const bool8 bool8::True () {
Link Here
|
2325 |
# if OIIO_SIMD_AVX >= 2 && (OIIO_GNUC_VERSION > 50000) |
2325 |
# if OIIO_SIMD_AVX >= 2 && (OIIO_GNUC_VERSION > 50000) |
2326 |
// Fastest way to fill with all 1 bits is to cmp any value to itself. |
2326 |
// Fastest way to fill with all 1 bits is to cmp any value to itself. |
2327 |
__m256i anyval = _mm256_undefined_si256(); |
2327 |
__m256i anyval = _mm256_undefined_si256(); |
2328 |
return _mm256_cmpeq_epi8 (anyval, anyval); |
2328 |
return _mm256_castsi256_ps (_mm256_cmpeq_epi8 (anyval, anyval)); |
2329 |
# else |
2329 |
# else |
2330 |
return _mm256_castsi256_ps (_mm256_set1_epi32 (-1)); |
2330 |
return _mm256_castsi256_ps (_mm256_set1_epi32 (-1)); |
2331 |
# endif |
2331 |
# endif |