From e1760bd4974b369caebd3ca9fa1e03ee1f697ec6 Mon Sep 17 00:00:00 2001 From: Ulya Trofimovich Date: Mon, 18 Feb 2019 12:46:38 +0000 Subject: [PATCH] libre2c: marked hot function as inline. --- re2c/lib/regexec_nfa_posix.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/re2c/lib/regexec_nfa_posix.cc b/re2c/lib/regexec_nfa_posix.cc index 3808d07c..89fd9f45 100644 --- a/re2c/lib/regexec_nfa_posix.cc +++ b/re2c/lib/regexec_nfa_posix.cc @@ -17,10 +17,12 @@ static void reach_on_symbol(simctx_t &, uint32_t); static void closure_posix(simctx_t &); static void update_offsets(simctx_t &ctx, const conf_t &c); static void update_offsets_and_prectbl(simctx_t &); -static void relax(simctx_t &, const conf_t &, worklist_t &); static int32_t precedence(simctx_t &ctx, const conf_t &x, const conf_t &y, int32_t &prec1, int32_t &prec2); static void unwind(history_t &hist, tag_path_t &path, uint32_t idx); +// we *do* want this to be inlined +static inline void relax(simctx_t &, const conf_t &, worklist_t &); + int regexec_nfa_posix(const regex_t *preg, const char *string , size_t nmatch, regmatch_t pmatch[], int) { -- 2.40.0