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

Function npyv_pack_b8_b32

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

pack four 32-bit boolean vectors into one 8-bit boolean vector

Source from the content-addressed store, hash-verified

69
70// pack four 32-bit boolean vectors into one 8-bit boolean vector
71NPY_FINLINE npyv_b8 npyv_pack_b8_b32(npyv_b32 a, npyv_b32 b, npyv_b32 c, npyv_b32 d) {
72 npyv_b16 ab = vec_pack(a, b);
73 npyv_b16 cd = vec_pack(c, d);
74 return npyv_pack_b8_b16(ab, cd);
75}
76
77// pack eight 64-bit boolean vectors into one 8-bit boolean vector
78NPY_FINLINE npyv_b8

Callers 1

npyv_pack_b8_b64Function · 0.70

Calls 1

npyv_pack_b8_b16Function · 0.70

Tested by

no test coverage detected