Skip to content

Commit 01f946c

Browse files
committed
Fix code style
Signed-off-by: Petr Shumilov <p.shumilov@vkteam.ru>
1 parent 2bc4751 commit 01f946c

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

runtime-common/core/allocator/script-malloc-interface.h

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,13 @@ constexpr uint64_t MALLOC_REPLACER_MAX_ALLOC = 0xFFFFFF00; // 4GiB
2323

2424
namespace details {
2525
struct control_block {
26-
static constexpr auto SIZE_FIELD_BITSIZE{48};
27-
static constexpr auto BASE_OFFSET_FIELD_BITSIZE{16};
28-
static constexpr uint64_t BLOCK_SIZE_MASK{(1UL << SIZE_FIELD_BITSIZE) - 1};
29-
static constexpr uint64_t BASE_OFFSET_MASK{(1UL << BASE_OFFSET_FIELD_BITSIZE) - 1};
26+
private:
27+
static inline constexpr auto SIZE_FIELD_BITSIZE{48};
28+
static inline constexpr auto BASE_OFFSET_FIELD_BITSIZE{16};
29+
static inline constexpr uint64_t BLOCK_SIZE_MASK{(1UL << SIZE_FIELD_BITSIZE) - 1};
30+
static inline constexpr uint64_t BASE_OFFSET_MASK{(1UL << BASE_OFFSET_FIELD_BITSIZE) - 1};
3031

32+
public:
3133
static constexpr uint64_t max_size() noexcept {
3234
return 1UL << SIZE_FIELD_BITSIZE;
3335
}

0 commit comments

Comments
 (0)