MCPcopy Create free account
hub / github.com/defold/defold / table_lookup5_8

Function table_lookup5_8

engine/dlib/src/basis/encoder/cppspmd_sse.h:1963–1973  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1961}
1962
1963CPPSPMD_FORCE_INLINE vint table_lookup5_8(const vint& a, const vint& table_0, const vint& table_1)
1964{
1965 __m128i l_0 = shuffle_epi8(table_0.m_value, a.m_value);
1966 __m128i h_0 = shuffle_epi8(table_1.m_value, a.m_value);
1967
1968 __m128i m_0 = _mm_slli_epi32(a.m_value, 31 - 4);
1969
1970 __m128 v_0 = blendv_ps(_mm_castsi128_ps(l_0), _mm_castsi128_ps(h_0), _mm_castsi128_ps(m_0));
1971
1972 return vint{ _mm_castps_si128(v_0) };
1973}
1974
1975CPPSPMD_FORCE_INLINE void init_lookup6(const uint8_t pTab[64], vint& table_0, vint& table_1, vint& table_2, vint& table_3)
1976{

Callers

nothing calls this directly

Calls 2

shuffle_epi8Function · 0.85
blendv_psFunction · 0.85

Tested by

no test coverage detected