mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-07-25 10:07:36 +03:00
Get rid of most of the various inline macros.
This commit is contained in:
parent
7d86c92c61
commit
4d2e4bf5eb
31 changed files with 233 additions and 669 deletions
|
|
@ -21,19 +21,19 @@ static ctl_arenas_t *ctl_arenas;
|
|||
/******************************************************************************/
|
||||
/* Helpers for named and indexed nodes. */
|
||||
|
||||
JEMALLOC_INLINE_C const ctl_named_node_t *
|
||||
static const ctl_named_node_t *
|
||||
ctl_named_node(const ctl_node_t *node) {
|
||||
return ((node->named) ? (const ctl_named_node_t *)node : NULL);
|
||||
}
|
||||
|
||||
JEMALLOC_INLINE_C const ctl_named_node_t *
|
||||
static const ctl_named_node_t *
|
||||
ctl_named_children(const ctl_named_node_t *node, size_t index) {
|
||||
const ctl_named_node_t *children = ctl_named_node(node->children);
|
||||
|
||||
return (children ? &children[index] : NULL);
|
||||
}
|
||||
|
||||
JEMALLOC_INLINE_C const ctl_indexed_node_t *
|
||||
static const ctl_indexed_node_t *
|
||||
ctl_indexed_node(const ctl_node_t *node) {
|
||||
return (!node->named ? (const ctl_indexed_node_t *)node : NULL);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue