Byte-indexed expansion LUT (#2526). Entry b = high-nibble expansion in symbols[0..3] + low-nibble expansion in symbols[4..7], matching wave8_convert_byte_to_wave8byte() exactly (so the byte path is bit-identical).
| 311 | // symbols[0..3] + low-nibble expansion in symbols[4..7], matching |
| 312 | // wave8_convert_byte_to_wave8byte() exactly (so the byte path is bit-identical). |
| 313 | Wave8ByteExpansionLut buildWave8ByteExpansionLUT(const Wave8BitExpansionLut &nibble) { |
| 314 | Wave8ByteExpansionLut out; |
| 315 | for (int b = 0; b < 256; ++b) { |
| 316 | const Wave8Bit *hi = nibble.lut[(b >> 4) & 0xF]; |
| 317 | const Wave8Bit *lo = nibble.lut[b & 0xF]; |
| 318 | for (int i = 0; i < 4; ++i) { |
| 319 | out.lut[b].symbols[i] = hi[i]; |
| 320 | out.lut[b].symbols[i + 4] = lo[i]; |
| 321 | } |
| 322 | } |
| 323 | return out; |
| 324 | } |
| 325 | |
| 326 | // ============================================================================ |
| 327 | // Untranspose Functions (Testing Only - Not Optimized) |
no outgoing calls
no test coverage detected