| 567 | } |
| 568 | |
| 569 | CPPSPMD_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 | |
| 577 | CPPSPMD_FORCE_INLINE vint spmd_kernel::reverse_bits(vint k, vint tab1, vint tab2) |
| 578 | { |
nothing calls this directly
no test coverage detected