MCPcopy Create free account
hub / github.com/ARM-software/astc-encoder / load

Method load

Source/astcenc_vecmathlib_sse_4.h:297–304  ·  view source on GitHub ↗

* @brief Factory that returns a vector loaded from unaligned memory. */

Source from the content-addressed store, hash-verified

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.

Callers

nothing calls this directly

Calls 1

vint4Class · 0.70

Tested by

no test coverage detected