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

Method init_reverse_bits

engine/dlib/src/basis/encoder/cppspmd_math.h:569–575  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

567}
568
569CPPSPMD_FORCE_INLINE void spmd_kernel::init_reverse_bits(vint& tab1, vint& tab2)
570{
571 const uint8_t tab1_bytes[16] = { 0, 8, 4, 12, 2, 10, 6, 14, 1, 9, 5, 13, 3, 11, 7, 15 };
572 const uint8_t tab2_bytes[16] = { 0, 8 << 4, 4 << 4, 12 << 4, 2 << 4, 10 << 4, 6 << 4, 14 << 4, 1 << 4, 9 << 4, 5 << 4, 13 << 4, 3 << 4, 11 << 4, 7 << 4, 15 << 4 };
573 store_all(tab1, init_lookup4(tab1_bytes));
574 store_all(tab2, init_lookup4(tab2_bytes));
575}
576
577CPPSPMD_FORCE_INLINE vint spmd_kernel::reverse_bits(vint k, vint tab1, vint tab2)
578{

Callers

nothing calls this directly

Calls 1

init_lookup4Function · 0.85

Tested by

no test coverage detected