MCPcopy Create free account
hub / github.com/ComodoSecurity/openedr / is_aligned

Function is_aligned

edrav2/eprj/boost/libs/python/src/numpy/ndarray.cpp:70–78  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

68}
69
70bool is_aligned(std::vector<Py_intptr_t> const & strides,
71 int itemsize)
72{
73 for (std::vector<Py_intptr_t>::const_iterator i = strides.begin(); i != strides.end(); ++i)
74 {
75 if (*i % itemsize) return false;
76 }
77 return true;
78}
79
80inline PyArray_Descr * incref_dtype(dtype const & dt)
81{

Callers 15

from_data_implFunction · 0.70
do_check_any_chunkFunction · 0.50
do_check_top_chunkFunction · 0.50
do_check_mmapped_chunkFunction · 0.50
do_check_free_chunkFunction · 0.50
mmap_allocFunction · 0.50
add_segmentFunction · 0.50
mainFunction · 0.50
mainFunction · 0.50
mainFunction · 0.50
mainFunction · 0.50
mainFunction · 0.50

Calls 2

beginMethod · 0.45
endMethod · 0.45

Tested by 15

mainFunction · 0.40
mainFunction · 0.40
mainFunction · 0.40
mainFunction · 0.40
mainFunction · 0.40
mainFunction · 0.40
mainFunction · 0.40
mainFunction · 0.40
test_allocateFunction · 0.40
testFunction · 0.40
test_allocateFunction · 0.40
testFunction · 0.40