From 809701d7c6b09e69831e8dfd0b247c4920030f17 Mon Sep 17 00:00:00 2001 From: Geza Lore Date: Tue, 8 Jun 2021 23:01:30 +0100 Subject: [PATCH] Add missing 'inline' to function in verilated.h Otherwise we get a separate copy of this function in every compilation unit including this header. --- include/verilated.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/verilated.h b/include/verilated.h index 1bd54bb25..fcd87fb8d 100644 --- a/include/verilated.h +++ b/include/verilated.h @@ -1795,7 +1795,7 @@ static inline WDataOutP VL_NEGATE_W(int words, WDataOutP owp, WDataInP lwp) VL_M } return owp; } -static void VL_NEGATE_INPLACE_W(int words, WDataOutP owp_lwp) VL_MT_SAFE { +static inline void VL_NEGATE_INPLACE_W(int words, WDataOutP owp_lwp) VL_MT_SAFE { EData carry = 1; for (int i = 0; i < words; ++i) { EData word = ~owp_lwp[i] + carry;