MCPcopy Create free account
hub / github.com/F-Stack/f-stack / _PCTRIE_VAL2PTR

Function _PCTRIE_VAL2PTR

freebsd/sys/pctrie.h:61–69  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

59CTASSERT((__offsetof(struct type, field) & (sizeof(uint32_t) - 1)) == 0); \
60 \
61static __inline struct type * \
62name##_PCTRIE_VAL2PTR(uint64_t *val) \
63{ \
64 \
65 if (val == NULL) \
66 return (NULL); \
67 return (struct type *) \
68 ((uintptr_t)val - __offsetof(struct type, field)); \
69} \
70 \
71static __inline uint64_t * \
72name##_PCTRIE_PTR2VAL(struct type *ptr) \

Callers 3

_PCTRIE_LOOKUPFunction · 0.85
_PCTRIE_LOOKUP_LEFunction · 0.85
_PCTRIE_LOOKUP_GEFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected