MCPcopy Create free account
hub / github.com/ARM-software/astc-encoder / vtable_lookup_32bit

Function vtable_lookup_32bit

Source/astcenc_vecmathlib_none_4.h:1138–1146  ·  view source on GitHub ↗

* @brief Perform a vtable lookup in a 16x 8-bit table with 32-bit indices. */

Source from the content-addressed store, hash-verified

1136 * @brief Perform a vtable lookup in a 16x 8-bit table with 32-bit indices.
1137 */
1138ASTCENC_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.

Callers

nothing calls this directly

Calls 1

vint4Class · 0.70

Tested by

no test coverage detected