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

Function npyv__loadl

numpy/core/src/common/simd/vec/memory.h:53–65  ·  view source on GitHub ↗

load lower part

Source from the content-addressed store, hash-verified

51
52// load lower part
53NPY_FINLINE npyv_u64 npyv__loadl(const void *ptr)
54{
55#ifdef NPY_HAVE_VSX
56 #if defined(__clang__) && !defined(__IBMC__)
57 // vec_promote doesn't support doubleword on clang
58 return npyv_setall_u64(*npyv__ptr2u64(ptr));
59 #else
60 return vec_promote(*npyv__ptr2u64(ptr), 0);
61 #endif
62#else // VX
63 return vec_load_len((const unsigned long long*)ptr, 7);
64#endif
65}
66// store lower part
67#define npyv__storel(PTR, VEC) \
68 *npyv__ptr2u64(PTR) = vec_extract(((npyv_u64)VEC), 0)

Callers

nothing calls this directly

Calls 2

npyv__ptr2u64Function · 0.85
npyv_setall_u64Function · 0.50

Tested by

no test coverage detected