Skip to content

Commit

Permalink
pool default switcharoo
Browse files Browse the repository at this point in the history
  • Loading branch information
dipinhora authored Jan 21, 2025
1 parent 5578913 commit f19ab8e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/libponyrt/mem/pool.h
Original file line number Diff line number Diff line change
Expand Up @@ -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, \
Expand All @@ -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, \
Expand All @@ -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) \
Expand Down

0 comments on commit f19ab8e

Please sign in to comment.