MCPcopy Create free account
hub / github.com/MegEngine/MegEngine / incr_refp

Function incr_refp

dnn/src/common/utils.h:361–363  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

359megcoreDeviceHandle_t get_device_handle(Handle* handle);
360
361static inline void incr_refp(RefPtr& ptr, ptrdiff_t delta) {
362 ptr += (size_t)delta;
363}
364
365static inline void incr_voidp(void*& ptr, ptrdiff_t delta) {
366 ptr = reinterpret_cast<void*>(reinterpret_cast<uintptr_t>(ptr) + delta);

Callers 9

execMethod · 0.85
execMethod · 0.85
execMethod · 0.85
execMethod · 0.85
execMethod · 0.85
execMethod · 0.85
execMethod · 0.85
execMethod · 0.85
execMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected