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

Function npyv_setall_u64

numpy/core/src/common/simd/avx2/misc.h:31–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29
30NPY_FINLINE __m256i npyv__setr_epi64(npy_int64, npy_int64, npy_int64, npy_int64);
31NPY_FINLINE npyv_u64 npyv_setall_u64(npy_uint64 a)
32{
33 npy_int64 ai = (npy_int64)a;
34#if defined(_MSC_VER) && defined(_M_IX86)
35 return npyv__setr_epi64(ai, ai, ai, ai);
36#else
37 return _mm256_set1_epi64x(ai);
38#endif
39}
40NPY_FINLINE npyv_s64 npyv_setall_s64(npy_int64 a)
41{
42#if defined(_MSC_VER) && defined(_M_IX86)

Callers

nothing calls this directly

Calls 1

npyv__setr_epi64Function · 0.70

Tested by

no test coverage detected