| 315 | } |
| 316 | |
| 317 | af_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 | |
| 324 | af_err af_free_host(void *ptr) { |
| 325 | free(ptr); // NOLINT(hicpp-no-malloc) |
no outgoing calls
no test coverage detected