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

Function af_alloc_host

src/api/c/memory.cpp:317–322  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

315}
316
317af_err af_alloc_host(void **ptr, const dim_t bytes) {
318 if ((*ptr = malloc(bytes))) { // NOLINT(hicpp-no-malloc)
319 return AF_SUCCESS;
320 }
321 return AF_ERR_NO_MEM;
322}
323
324af_err af_free_host(void *ptr) {
325 free(ptr); // NOLINT(hicpp-no-malloc)

Callers 4

af_info_stringFunction · 0.70
af_get_last_errorFunction · 0.70
af_array_to_stringFunction · 0.70
allocHostFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected