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

Function find_addr

numpy/core/src/multiarray/temp_elide.c:100–110  ·  view source on GitHub ↗

* linear search pointer in table * number of pointers is usually quite small but if a performance impact can be * measured this could be converted to a binary search */

Source from the content-addressed store, hash-verified

98 * measured this could be converted to a binary search
99 */
100static int
101find_addr(void * addresses[], npy_intp naddr, void * addr)
102{
103 npy_intp j;
104 for (j = 0; j < naddr; j++) {
105 if (addr == addresses[j]) {
106 return 1;
107 }
108 }
109 return 0;
110}
111
112static int
113check_callers(int * cannot)

Callers 1

check_callersFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected