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

Method reverse_bits

encoder/cppspmd_math.h:577–583  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

575}
576
577CPPSPMD_FORCE_INLINE vint spmd_kernel::reverse_bits(vint k, vint tab1, vint tab2)
578{
579 vint r0 = table_lookup4_8(k & 0x7F7F7F7F, tab2);
580 vint r1 = table_lookup4_8(VUINT_SHIFT_RIGHT(k, 4) & 0x7F7F7F7F, tab1);
581 vint r3 = r0 | r1;
582 return byteswap(r3);
583}
584
585CPPSPMD_FORCE_INLINE vint spmd_kernel::count_leading_zeros(vint x)
586{

Callers

nothing calls this directly

Calls 2

table_lookup4_8Function · 0.85
byteswapFunction · 0.85

Tested by

no test coverage detected