0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-12-25 15:04:10 +01:00

ircd::ctx: Remove leaf attribute; use hot section attribute in unit.

This commit is contained in:
Jason Volk 2020-08-22 19:37:51 -07:00
parent 8e7c1c3eb2
commit 669c8d0d0f
2 changed files with 4 additions and 2 deletions

View file

@ -40,8 +40,8 @@ struct ircd::ctx::list
ctx *head {nullptr};
ctx *tail {nullptr};
[[gnu::leaf]] static const node &get(const ctx &) noexcept;
[[gnu::leaf]] static node &get(ctx &) noexcept;
static const node &get(const ctx &) noexcept;
static node &get(ctx &) noexcept;
// Get next or prev entry in ctx
static const ctx *next(const ctx *const &) noexcept;

View file

@ -3068,6 +3068,7 @@ const
return true;
}
[[gnu::hot]]
ircd::ctx::list::node &
ircd::ctx::list::get(ctx &c)
noexcept
@ -3075,6 +3076,7 @@ noexcept
return c.node;
}
[[gnu::hot]]
const ircd::ctx::list::node &
ircd::ctx::list::get(const ctx &c)
noexcept