MCPcopy Create free account
hub / github.com/BinomialLLC/basis_universal / byteswap

Function byteswap

encoder/cppspmd_sse.h:1536–1536  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1534CPPSPMD_FORCE_INLINE vint abs(const vint& v) { return vint{ abs_epi32(v.m_value) }; }
1535
1536CPPSPMD_FORCE_INLINE vint byteswap(const vint& v) { return vint{ shuffle_epi8(v.m_value, _mm_set_epi8(12, 13, 14, 15, 8, 9, 10, 11, 4, 5, 6, 7, 0, 1, 2, 3)) }; }
1537
1538CPPSPMD_FORCE_INLINE vint cast_vfloat_to_vint(const vfloat& v) { return vint{ _mm_castps_si128(v.m_value) }; }
1539CPPSPMD_FORCE_INLINE vfloat cast_vint_to_vfloat(const vint& v) { return vfloat{ _mm_castsi128_ps(v.m_value) }; }

Callers 1

reverse_bitsMethod · 0.85

Calls 1

shuffle_epi8Function · 0.85

Tested by

no test coverage detected