use static const for local constants

pull/187/head
Daniel Micay 2022-01-16 21:02:17 -05:00
parent 8d61e63274
commit b3d78bd5f6
1 changed files with 2 additions and 2 deletions

View File

@ -198,8 +198,8 @@ static inline struct size_info get_size_info(size_t size) {
return (struct size_info){align(size, 16), ((size - 1) >> 4) + 1}; return (struct size_info){align(size, 16), ((size - 1) >> 4) + 1};
} }
const size_t initial_spacing_multiplier = 5; static const size_t initial_spacing_multiplier = 5;
const size_t special_small_sizes = 5; // 0, 16, 32, 48, 64 static const size_t special_small_sizes = 5; // 0, 16, 32, 48, 64
size_t spacing_class_shift = log2u64(size - 1) - 2; size_t spacing_class_shift = log2u64(size - 1) - 2;
size_t spacing_class = 1ULL << spacing_class_shift; size_t spacing_class = 1ULL << spacing_class_shift;