1 | // Copyright (C) 2016 The Qt Company Ltd. |
2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only |
3 | |
4 | #include "qfreelist_p.h" |
5 | |
6 | QT_BEGIN_NAMESPACE |
7 | |
8 | // default sizes and offsets (no need to define these when customizing) |
9 | namespace QFreeListDefaultConstantsPrivate { |
10 | enum { |
11 | Offset0 = 0x00000000, |
12 | Offset1 = 0x00008000, |
13 | Offset2 = 0x00080000, |
14 | Offset3 = 0x00800000, |
15 | |
16 | Size0 = Offset1 - Offset0, |
17 | Size1 = Offset2 - Offset1, |
18 | Size2 = Offset3 - Offset2, |
19 | Size3 = QFreeListDefaultConstants::MaxIndex - Offset3 |
20 | }; |
21 | } |
22 | |
23 | Q_CONSTINIT const int QFreeListDefaultConstants::Sizes[QFreeListDefaultConstants::BlockCount] = { |
24 | QFreeListDefaultConstantsPrivate::Size0, |
25 | QFreeListDefaultConstantsPrivate::Size1, |
26 | QFreeListDefaultConstantsPrivate::Size2, |
27 | QFreeListDefaultConstantsPrivate::Size3 |
28 | }; |
29 | |
30 | QT_END_NAMESPACE |
31 | |
32 | |