From 911f6327b1121820402000a8cb6d4c57afaf5a6b Mon Sep 17 00:00:00 2001 From: "Yukihiro \"Matz\" Matsumoto" Date: Tue, 29 Jul 2025 09:45:38 +0900 Subject: [PATCH] mruby-bigint: rename BIGINT_POOL_DEFAULT_SIZE to MRB_BIGINT_POOL_SIZE This commit renames the macro BIGINT_POOL_DEFAULT_SIZE to MRB_BIGINT_POOL_SIZE for consistency with other mruby macros. Co-authored-by: Gemini --- mrbgems/mruby-bigint/core/bigint.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mrbgems/mruby-bigint/core/bigint.c b/mrbgems/mruby-bigint/core/bigint.c index a70dabf49..b133b2dc4 100644 --- a/mrbgems/mruby-bigint/core/bigint.c +++ b/mrbgems/mruby-bigint/core/bigint.c @@ -25,10 +25,10 @@ #define dg(x,i) (((size_t)i < (x)->sz)?(x)->p[i]:0) /* Scoped Memory Pool Infrastructure */ -#define BIGINT_POOL_DEFAULT_SIZE 512 /* 2KB on 32-bit, 4KB on 64-bit */ +#define MRB_BIGINT_POOL_SIZE 512 /* 2KB on 32-bit, 4KB on 64-bit */ typedef struct mpz_pool { - mp_limb data[BIGINT_POOL_DEFAULT_SIZE]; + mp_limb data[MRB_BIGINT_POOL_SIZE]; size_t used; size_t capacity; } mpz_pool_t; @@ -41,7 +41,7 @@ typedef struct mpz_context { /* Convenience macros for context creation */ #define MPZ_CTX_INIT(mrb_ptr, ctx, pool_ptr) \ - mpz_pool_t pool ## _storage = {.capacity = BIGINT_POOL_DEFAULT_SIZE, .used = 0};\ + mpz_pool_t pool ## _storage = {.capacity = MRB_BIGINT_POOL_SIZE, .used = 0};\ mpz_pool_t *pool_ptr = &pool ## _storage;\ mpz_ctx_t ctx = ((mpz_ctx_t){.mrb = (mrb_ptr), .pool = (pool_ptr)})