From 8d15caec143e4e9574149e062889c358ea386ac8 Mon Sep 17 00:00:00 2001 From: "Yukihiro \"Matz\" Matsumoto" Date: Sat, 17 Jan 2026 11:07:14 +0900 Subject: [PATCH] bigint.c: add inline to mpn_add_n() and mpn_sub_n() Both functions are small helpers called only from mpn_add() and mpn_sub() respectively. Co-authored-by: Claude --- mrbgems/mruby-bigint/core/bigint.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mrbgems/mruby-bigint/core/bigint.c b/mrbgems/mruby-bigint/core/bigint.c index d18c711ba..d02ef99d5 100644 --- a/mrbgems/mruby-bigint/core/bigint.c +++ b/mrbgems/mruby-bigint/core/bigint.c @@ -2537,7 +2537,7 @@ mpn_lshift(mp_limb *rp, const mp_limb *ap, size_t n, unsigned int cnt) * Returns carry (0 or 1). * Supports in-place operation (rp == ap or rp == bp). */ -static mp_limb +static inline mp_limb mpn_add_n(mp_limb *rp, const mp_limb *ap, const mp_limb *bp, size_t n) { mp_dbl_limb carry = 0; @@ -2582,7 +2582,7 @@ mpn_add(mp_limb *rp, const mp_limb *ap, size_t an, const mp_limb *bp, size_t bn) * Returns borrow (0 or 1). * Supports in-place operation (rp == ap). */ -static mp_limb +static inline mp_limb mpn_sub_n(mp_limb *rp, const mp_limb *ap, const mp_limb *bp, size_t n) { mp_dbl_limb_signed borrow = 0;