From f19ab8e7ac70496a79c92aa86854bb3c3be4330c Mon Sep 17 00:00:00 2001 From: Dipin Hora Date: Tue, 21 Jan 2025 17:41:20 -0500 Subject: [PATCH] pool default switcharoo --- src/libponyrt/mem/pool.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/libponyrt/mem/pool.h b/src/libponyrt/mem/pool.h index da8ea94fe1..d294d16062 100644 --- a/src/libponyrt/mem/pool.h +++ b/src/libponyrt/mem/pool.h @@ -49,7 +49,7 @@ size_t ponyint_pool_used_size(size_t index); size_t ponyint_pool_adjust_size(size_t size); -#ifndef POOL_USE_DEFAULT +#ifdef POOL_USE_DEFAULT #define POOL_INDEX(SIZE) \ __pony_choose_expr(SIZE <= (1 << (POOL_MIN_BITS + 0)), 0, \ __pony_choose_expr(SIZE <= (1 << (POOL_MIN_BITS + 1)), 1, \ @@ -67,9 +67,8 @@ size_t ponyint_pool_adjust_size(size_t size); __pony_choose_expr(SIZE <= (1 << (POOL_MIN_BITS + 13)), 13, \ __pony_choose_expr(SIZE <= (1 << (POOL_MIN_BITS + 14)), 14, \ __pony_choose_expr(SIZE <= (1 << (POOL_MIN_BITS + 15)), 15, \ - __pony_choose_expr(SIZE <= (1 << (POOL_MIN_BITS + 16)), 16, \ EXPR_NONE \ - ))))))))))))))))) + )))))))))))))))) #else #define POOL_INDEX(SIZE) \ __pony_choose_expr(SIZE <= (1 << (POOL_MIN_BITS + 0)), 0, \ @@ -88,8 +87,9 @@ size_t ponyint_pool_adjust_size(size_t size); __pony_choose_expr(SIZE <= (1 << (POOL_MIN_BITS + 13)), 13, \ __pony_choose_expr(SIZE <= (1 << (POOL_MIN_BITS + 14)), 14, \ __pony_choose_expr(SIZE <= (1 << (POOL_MIN_BITS + 15)), 15, \ + __pony_choose_expr(SIZE <= (1 << (POOL_MIN_BITS + 16)), 16, \ EXPR_NONE \ - )))))))))))))))) + ))))))))))))))))) #endif #define POOL_ALLOC(TYPE) \