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

Function npyv_loadn2_till_s32

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

/ 64-bit load over 32-bit stride

Source from the content-addressed store, hash-verified

344
345//// 64-bit load over 32-bit stride
346NPY_FINLINE npyv_s32 npyv_loadn2_till_s32(const npy_int32 *ptr, npy_intp stride, npy_uintp nlane,
347 npy_int32 fill_lo, npy_int32 fill_hi)
348{
349 assert(nlane > 0);
350 if (nlane == 1) {
351 npyv_s32 r = npyv_set_s32(ptr[0], ptr[1], fill_lo, fill_hi);
352 #if NPY_SIMD_GUARD_PARTIAL_LOAD
353 volatile npyv_s32 workaround = r;
354 r = vec_or(workaround, r);
355 #endif
356 return r;
357 }
358 return npyv_loadn2_s32(ptr, stride);
359}
360NPY_FINLINE npyv_s32 npyv_loadn2_tillz_s32(const npy_int32 *ptr, npy_intp stride, npy_uintp nlane)
361{
362 assert(nlane > 0);

Callers

nothing calls this directly

Calls 1

npyv_loadn2_s32Function · 0.70

Tested by

no test coverage detected