MCPcopy Create free account
hub / github.com/KhronosGroup/KTX-Software / load_bytes_all

Method load_bytes_all

external/basisu/encoder/cppspmd_sse.h:1008–1019  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1006 }
1007
1008 CPPSPMD_FORCE_INLINE vint load_bytes_all(const cint_vref& src)
1009 {
1010 __m128i v0_l;
1011
1012 const uint8_t* pSrc = (const uint8_t*)src.m_pValue;
1013 v0_l = insert_x(_mm_undefined_si128(), ((int*)(pSrc + extract_x(src.m_vindex)))[0]);
1014 v0_l = insert_y(v0_l, ((int*)(pSrc + extract_y(src.m_vindex)))[0]);
1015 v0_l = insert_z(v0_l, ((int*)(pSrc + extract_z(src.m_vindex)))[0]);
1016 v0_l = insert_w(v0_l, ((int*)(pSrc + extract_w(src.m_vindex)))[0]);
1017
1018 return vint{ v0_l };
1019 }
1020
1021 CPPSPMD_FORCE_INLINE vint load_words_all(const cint_vref& src)
1022 {

Callers

nothing calls this directly

Calls 8

insert_xFunction · 0.85
extract_xFunction · 0.85
insert_yFunction · 0.85
extract_yFunction · 0.85
insert_zFunction · 0.85
extract_zFunction · 0.85
insert_wFunction · 0.85
extract_wFunction · 0.85

Tested by

no test coverage detected