mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-07-24 09:37:22 +03:00
SC: Name the max lookup constant.
This commit is contained in:
parent
79dd0c04ed
commit
46471ea327
2 changed files with 4 additions and 5 deletions
|
|
@ -246,8 +246,9 @@
|
|||
# error "Too many small size classes"
|
||||
#endif
|
||||
|
||||
/* The largest size class in the lookup table. */
|
||||
#define SC_LOOKUP_MAXCLASS ((size_t)1 << 12)
|
||||
/* The largest size class in the lookup table, and its binary log. */
|
||||
#define SC_LG_MAX_LOOKUP 12
|
||||
#define SC_LOOKUP_MAXCLASS ((size_t)1 << SC_LG_MAX_LOOKUP)
|
||||
|
||||
/* Internal, only used for the definition of SC_SMALL_MAXCLASS. */
|
||||
#define SC_SMALL_MAX_BASE ((size_t)1 << (LG_PAGE + SC_LG_NGROUP - 1))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue