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

Function npyv_pack_b8_b64

numpy/core/src/common/simd/vec/conversion.h:78–86  ·  view source on GitHub ↗

pack eight 64-bit boolean vectors into one 8-bit boolean vector

Source from the content-addressed store, hash-verified

76
77// pack eight 64-bit boolean vectors into one 8-bit boolean vector
78NPY_FINLINE npyv_b8
79npyv_pack_b8_b64(npyv_b64 a, npyv_b64 b, npyv_b64 c, npyv_b64 d,
80 npyv_b64 e, npyv_b64 f, npyv_b64 g, npyv_b64 h) {
81 npyv_b32 ab = vec_pack(a, b);
82 npyv_b32 cd = vec_pack(c, d);
83 npyv_b32 ef = vec_pack(e, f);
84 npyv_b32 gh = vec_pack(g, h);
85 return npyv_pack_b8_b32(ab, cd, ef, gh);
86}
87
88// convert boolean vector to integer bitfield
89#if defined(NPY_HAVE_VXE) || defined(NPY_HAVE_VSX2)

Callers

nothing calls this directly

Calls 1

npyv_pack_b8_b32Function · 0.70

Tested by

no test coverage detected