MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / add_ptr

Function add_ptr

tensorflow/compiler/tf2xla/cpu_function_runtime_test.cc:81–83  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

79}
80
81void* add_ptr(void* base, uintptr_t delta) {
82 return reinterpret_cast<void*>(reinterpret_cast<uintptr_t>(base) + delta);
83}
84
85// To test MallocContiguousBuffers and FreeContiguous, we just check for
86// expected nullptrs, and write to each byte of allocated memory. We rely on

Callers 1

TESTFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected