* @brief Factory that returns a vector loaded from unaligned memory. */
| 295 | * @brief Factory that returns a vector loaded from unaligned memory. |
| 296 | */ |
| 297 | static ASTCENC_SIMD_INLINE vint4 load(const uint8_t* p) |
| 298 | { |
| 299 | #if ASTCENC_SSE >= 41 |
| 300 | return vint4(_mm_lddqu_si128(reinterpret_cast<const __m128i*>(p))); |
| 301 | #else |
| 302 | return vint4(_mm_loadu_si128(reinterpret_cast<const __m128i*>(p))); |
| 303 | #endif |
| 304 | } |
| 305 | |
| 306 | /** |
| 307 | * @brief Factory that returns a vector loaded from 16B aligned memory. |