MCPcopy Create free account
hub / github.com/arrayfire/arrayfire / af_free_pinned

Function af_free_pinned

src/api/c/memory.cpp:309–315  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

307}
308
309af_err af_free_pinned(void *ptr) {
310 try {
311 pinnedFree(ptr);
312 }
313 CATCHALL;
314 return AF_SUCCESS;
315}
316
317af_err af_alloc_host(void **ptr, const dim_t bytes) {
318 if ((*ptr = malloc(bytes))) { // NOLINT(hicpp-no-malloc)

Callers 1

freePinnedFunction · 0.50

Calls 1

pinnedFreeFunction · 0.50

Tested by

no test coverage detected