MCPcopy Create free account
hub / github.com/TheRealMJP/SHforHLSL / shuffleBytes

Function shuffleBytes

SHTest/Externals/meshoptimizer/vertexcodec.cpp:632–641  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

630
631#ifdef SIMD_NEON
632static uint8x16_t shuffleBytes(unsigned char mask0, unsigned char mask1, uint8x8_t rest0, uint8x8_t rest1)
633{
634 uint8x8_t sm0 = vld1_u8(kDecodeBytesGroupShuffle[mask0]);
635 uint8x8_t sm1 = vld1_u8(kDecodeBytesGroupShuffle[mask1]);
636
637 uint8x8_t r0 = vtbl1_u8(rest0, sm0);
638 uint8x8_t r1 = vtbl1_u8(rest1, sm1);
639
640 return vcombine_u8(r0, r1);
641}
642
643static void neonMoveMask(uint8x16_t mask, unsigned char& mask0, unsigned char& mask1)
644{

Callers 1

decodeBytesGroupSimdFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected