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

Function npyv_load_till_s64

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

/ 64

Source from the content-addressed store, hash-verified

250}
251//// 64
252NPY_FINLINE npyv_s64 npyv_load_till_s64(const npy_int64 *ptr, npy_uintp nlane, npy_int64 fill)
253{
254 assert(nlane > 0);
255 if (nlane == 1) {
256 npyv_s64 r = npyv_set_s64(ptr[0], fill);
257 #if NPY_SIMD_GUARD_PARTIAL_LOAD
258 volatile npyv_s64 workaround = r;
259 r = vec_or(workaround, r);
260 #endif
261 return r;
262 }
263 return npyv_load_s64(ptr);
264}
265// fill zero to rest lanes
266NPY_FINLINE npyv_s64 npyv_load_tillz_s64(const npy_int64 *ptr, npy_uintp nlane)
267{

Callers 2

npyv_load_tillz_s64Function · 0.70
npyv_loadn_till_s64Function · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected