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

Function npy_fastputmask

numpy/core/src/multiarray/item_selection.c:601–626  ·  view source on GitHub ↗

* Helper function instantiating npy_fastput_impl in different branches * to allow the compiler to optimize each to the specific itemsize. */

Source from the content-addressed store, hash-verified

599 * to allow the compiler to optimize each to the specific itemsize.
600 */
601static NPY_GCC_OPT_3 void
602npy_fastputmask(
603 char *dest, char *src, npy_bool *mask_data,
604 npy_intp ni, npy_intp nv, npy_intp chunk)
605{
606 if (chunk == 1) {
607 return npy_fastputmask_impl(dest, src, mask_data, ni, nv, chunk);
608 }
609 if (chunk == 2) {
610 return npy_fastputmask_impl(dest, src, mask_data, ni, nv, chunk);
611 }
612 if (chunk == 4) {
613 return npy_fastputmask_impl(dest, src, mask_data, ni, nv, chunk);
614 }
615 if (chunk == 8) {
616 return npy_fastputmask_impl(dest, src, mask_data, ni, nv, chunk);
617 }
618 if (chunk == 16) {
619 return npy_fastputmask_impl(dest, src, mask_data, ni, nv, chunk);
620 }
621 if (chunk == 32) {
622 return npy_fastputmask_impl(dest, src, mask_data, ni, nv, chunk);
623 }
624
625 return npy_fastputmask_impl(dest, src, mask_data, ni, nv, chunk);
626}
627
628
629/*NUMPY_API

Callers 1

PyArray_PutMaskFunction · 0.85

Calls 1

npy_fastputmask_implFunction · 0.85

Tested by

no test coverage detected