MCPcopy Create free account
hub / github.com/numpy/numpy / npyv_lut32_f32

Function npyv_lut32_f32

numpy/core/src/common/simd/avx2/memory.h:745–746  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

743// uses vector as indexes into a table
744// that contains 32 elements of float32.
745NPY_FINLINE npyv_f32 npyv_lut32_f32(const float *table, npyv_u32 idx)
746{ return _mm256_i32gather_ps(table, idx, 4); }
747NPY_FINLINE npyv_u32 npyv_lut32_u32(const npy_uint32 *table, npyv_u32 idx)
748{ return npyv_reinterpret_u32_f32(npyv_lut32_f32((const float*)table, idx)); }
749NPY_FINLINE npyv_s32 npyv_lut32_s32(const npy_int32 *table, npyv_u32 idx)

Callers 2

npyv_lut32_u32Function · 0.70
npyv_lut32_s32Function · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected