* @brief Perform a vtable lookup in a 16x 8-bit table with 32-bit indices. */
| 1136 | * @brief Perform a vtable lookup in a 16x 8-bit table with 32-bit indices. |
| 1137 | */ |
| 1138 | ASTCENC_SIMD_INLINE vint4 vtable_lookup_32bit( |
| 1139 | const vtable4_16x8& table, |
| 1140 | vint4 idx |
| 1141 | ) { |
| 1142 | return vint4(table.data[idx.lane<0>()], |
| 1143 | table.data[idx.lane<1>()], |
| 1144 | table.data[idx.lane<2>()], |
| 1145 | table.data[idx.lane<3>()]); |
| 1146 | } |
| 1147 | |
| 1148 | /** |
| 1149 | * @brief Perform a vtable lookup in a 32x 8-bit table with 32-bit indices. |