![Logo](../../1_trinitycore.png) |
TrinityCore
|
Go to the documentation of this file.
3 #ifdef JEMALLOC_H_TYPES
5 #if (LG_TINY_MIN == 3 && LG_QUANTUM == 3 && LG_PAGE == 12)
6 #define SIZE_CLASSES_DEFINED
10 SIZE_CLASS(1, 8, 16) \
11 SIZE_CLASS(2, 8, 24) \
12 SIZE_CLASS(3, 8, 32) \
13 SIZE_CLASS(4, 8, 40) \
14 SIZE_CLASS(5, 8, 48) \
15 SIZE_CLASS(6, 8, 56) \
16 SIZE_CLASS(7, 8, 64) \
17 SIZE_CLASS(8, 16, 80) \
18 SIZE_CLASS(9, 16, 96) \
19 SIZE_CLASS(10, 16, 112) \
20 SIZE_CLASS(11, 16, 128) \
21 SIZE_CLASS(12, 32, 160) \
22 SIZE_CLASS(13, 32, 192) \
23 SIZE_CLASS(14, 32, 224) \
24 SIZE_CLASS(15, 32, 256) \
25 SIZE_CLASS(16, 64, 320) \
26 SIZE_CLASS(17, 64, 384) \
27 SIZE_CLASS(18, 64, 448) \
28 SIZE_CLASS(19, 64, 512) \
29 SIZE_CLASS(20, 128, 640) \
30 SIZE_CLASS(21, 128, 768) \
31 SIZE_CLASS(22, 128, 896) \
32 SIZE_CLASS(23, 128, 1024) \
33 SIZE_CLASS(24, 256, 1280) \
34 SIZE_CLASS(25, 256, 1536) \
35 SIZE_CLASS(26, 256, 1792) \
36 SIZE_CLASS(27, 256, 2048) \
37 SIZE_CLASS(28, 512, 2560) \
38 SIZE_CLASS(29, 512, 3072) \
39 SIZE_CLASS(30, 512, 3584) \
42 #define SMALL_MAXCLASS 3584
45 #if (LG_TINY_MIN == 3 && LG_QUANTUM == 3 && LG_PAGE == 13)
46 #define SIZE_CLASSES_DEFINED
48 #define SIZE_CLASSES \
50 SIZE_CLASS(1, 8, 16) \
51 SIZE_CLASS(2, 8, 24) \
52 SIZE_CLASS(3, 8, 32) \
53 SIZE_CLASS(4, 8, 40) \
54 SIZE_CLASS(5, 8, 48) \
55 SIZE_CLASS(6, 8, 56) \
56 SIZE_CLASS(7, 8, 64) \
57 SIZE_CLASS(8, 16, 80) \
58 SIZE_CLASS(9, 16, 96) \
59 SIZE_CLASS(10, 16, 112) \
60 SIZE_CLASS(11, 16, 128) \
61 SIZE_CLASS(12, 32, 160) \
62 SIZE_CLASS(13, 32, 192) \
63 SIZE_CLASS(14, 32, 224) \
64 SIZE_CLASS(15, 32, 256) \
65 SIZE_CLASS(16, 64, 320) \
66 SIZE_CLASS(17, 64, 384) \
67 SIZE_CLASS(18, 64, 448) \
68 SIZE_CLASS(19, 64, 512) \
69 SIZE_CLASS(20, 128, 640) \
70 SIZE_CLASS(21, 128, 768) \
71 SIZE_CLASS(22, 128, 896) \
72 SIZE_CLASS(23, 128, 1024) \
73 SIZE_CLASS(24, 256, 1280) \
74 SIZE_CLASS(25, 256, 1536) \
75 SIZE_CLASS(26, 256, 1792) \
76 SIZE_CLASS(27, 256, 2048) \
77 SIZE_CLASS(28, 512, 2560) \
78 SIZE_CLASS(29, 512, 3072) \
79 SIZE_CLASS(30, 512, 3584) \
80 SIZE_CLASS(31, 512, 4096) \
81 SIZE_CLASS(32, 1024, 5120) \
82 SIZE_CLASS(33, 1024, 6144) \
83 SIZE_CLASS(34, 1024, 7168) \
86 #define SMALL_MAXCLASS 7168
89 #if (LG_TINY_MIN == 3 && LG_QUANTUM == 3 && LG_PAGE == 14)
90 #define SIZE_CLASSES_DEFINED
92 #define SIZE_CLASSES \
94 SIZE_CLASS(1, 8, 16) \
95 SIZE_CLASS(2, 8, 24) \
96 SIZE_CLASS(3, 8, 32) \
97 SIZE_CLASS(4, 8, 40) \
98 SIZE_CLASS(5, 8, 48) \
99 SIZE_CLASS(6, 8, 56) \
100 SIZE_CLASS(7, 8, 64) \
101 SIZE_CLASS(8, 16, 80) \
102 SIZE_CLASS(9, 16, 96) \
103 SIZE_CLASS(10, 16, 112) \
104 SIZE_CLASS(11, 16, 128) \
105 SIZE_CLASS(12, 32, 160) \
106 SIZE_CLASS(13, 32, 192) \
107 SIZE_CLASS(14, 32, 224) \
108 SIZE_CLASS(15, 32, 256) \
109 SIZE_CLASS(16, 64, 320) \
110 SIZE_CLASS(17, 64, 384) \
111 SIZE_CLASS(18, 64, 448) \
112 SIZE_CLASS(19, 64, 512) \
113 SIZE_CLASS(20, 128, 640) \
114 SIZE_CLASS(21, 128, 768) \
115 SIZE_CLASS(22, 128, 896) \
116 SIZE_CLASS(23, 128, 1024) \
117 SIZE_CLASS(24, 256, 1280) \
118 SIZE_CLASS(25, 256, 1536) \
119 SIZE_CLASS(26, 256, 1792) \
120 SIZE_CLASS(27, 256, 2048) \
121 SIZE_CLASS(28, 512, 2560) \
122 SIZE_CLASS(29, 512, 3072) \
123 SIZE_CLASS(30, 512, 3584) \
124 SIZE_CLASS(31, 512, 4096) \
125 SIZE_CLASS(32, 1024, 5120) \
126 SIZE_CLASS(33, 1024, 6144) \
127 SIZE_CLASS(34, 1024, 7168) \
128 SIZE_CLASS(35, 1024, 8192) \
129 SIZE_CLASS(36, 2048, 10240) \
130 SIZE_CLASS(37, 2048, 12288) \
131 SIZE_CLASS(38, 2048, 14336) \
134 #define SMALL_MAXCLASS 14336
137 #if (LG_TINY_MIN == 3 && LG_QUANTUM == 3 && LG_PAGE == 15)
138 #define SIZE_CLASSES_DEFINED
140 #define SIZE_CLASSES \
141 SIZE_CLASS(0, 8, 8) \
142 SIZE_CLASS(1, 8, 16) \
143 SIZE_CLASS(2, 8, 24) \
144 SIZE_CLASS(3, 8, 32) \
145 SIZE_CLASS(4, 8, 40) \
146 SIZE_CLASS(5, 8, 48) \
147 SIZE_CLASS(6, 8, 56) \
148 SIZE_CLASS(7, 8, 64) \
149 SIZE_CLASS(8, 16, 80) \
150 SIZE_CLASS(9, 16, 96) \
151 SIZE_CLASS(10, 16, 112) \
152 SIZE_CLASS(11, 16, 128) \
153 SIZE_CLASS(12, 32, 160) \
154 SIZE_CLASS(13, 32, 192) \
155 SIZE_CLASS(14, 32, 224) \
156 SIZE_CLASS(15, 32, 256) \
157 SIZE_CLASS(16, 64, 320) \
158 SIZE_CLASS(17, 64, 384) \
159 SIZE_CLASS(18, 64, 448) \
160 SIZE_CLASS(19, 64, 512) \
161 SIZE_CLASS(20, 128, 640) \
162 SIZE_CLASS(21, 128, 768) \
163 SIZE_CLASS(22, 128, 896) \
164 SIZE_CLASS(23, 128, 1024) \
165 SIZE_CLASS(24, 256, 1280) \
166 SIZE_CLASS(25, 256, 1536) \
167 SIZE_CLASS(26, 256, 1792) \
168 SIZE_CLASS(27, 256, 2048) \
169 SIZE_CLASS(28, 512, 2560) \
170 SIZE_CLASS(29, 512, 3072) \
171 SIZE_CLASS(30, 512, 3584) \
172 SIZE_CLASS(31, 512, 4096) \
173 SIZE_CLASS(32, 1024, 5120) \
174 SIZE_CLASS(33, 1024, 6144) \
175 SIZE_CLASS(34, 1024, 7168) \
176 SIZE_CLASS(35, 1024, 8192) \
177 SIZE_CLASS(36, 2048, 10240) \
178 SIZE_CLASS(37, 2048, 12288) \
179 SIZE_CLASS(38, 2048, 14336) \
180 SIZE_CLASS(39, 2048, 16384) \
181 SIZE_CLASS(40, 4096, 20480) \
182 SIZE_CLASS(41, 4096, 24576) \
183 SIZE_CLASS(42, 4096, 28672) \
186 #define SMALL_MAXCLASS 28672
189 #if (LG_TINY_MIN == 3 && LG_QUANTUM == 3 && LG_PAGE == 16)
190 #define SIZE_CLASSES_DEFINED
192 #define SIZE_CLASSES \
193 SIZE_CLASS(0, 8, 8) \
194 SIZE_CLASS(1, 8, 16) \
195 SIZE_CLASS(2, 8, 24) \
196 SIZE_CLASS(3, 8, 32) \
197 SIZE_CLASS(4, 8, 40) \
198 SIZE_CLASS(5, 8, 48) \
199 SIZE_CLASS(6, 8, 56) \
200 SIZE_CLASS(7, 8, 64) \
201 SIZE_CLASS(8, 16, 80) \
202 SIZE_CLASS(9, 16, 96) \
203 SIZE_CLASS(10, 16, 112) \
204 SIZE_CLASS(11, 16, 128) \
205 SIZE_CLASS(12, 32, 160) \
206 SIZE_CLASS(13, 32, 192) \
207 SIZE_CLASS(14, 32, 224) \
208 SIZE_CLASS(15, 32, 256) \
209 SIZE_CLASS(16, 64, 320) \
210 SIZE_CLASS(17, 64, 384) \
211 SIZE_CLASS(18, 64, 448) \
212 SIZE_CLASS(19, 64, 512) \
213 SIZE_CLASS(20, 128, 640) \
214 SIZE_CLASS(21, 128, 768) \
215 SIZE_CLASS(22, 128, 896) \
216 SIZE_CLASS(23, 128, 1024) \
217 SIZE_CLASS(24, 256, 1280) \
218 SIZE_CLASS(25, 256, 1536) \
219 SIZE_CLASS(26, 256, 1792) \
220 SIZE_CLASS(27, 256, 2048) \
221 SIZE_CLASS(28, 512, 2560) \
222 SIZE_CLASS(29, 512, 3072) \
223 SIZE_CLASS(30, 512, 3584) \
224 SIZE_CLASS(31, 512, 4096) \
225 SIZE_CLASS(32, 1024, 5120) \
226 SIZE_CLASS(33, 1024, 6144) \
227 SIZE_CLASS(34, 1024, 7168) \
228 SIZE_CLASS(35, 1024, 8192) \
229 SIZE_CLASS(36, 2048, 10240) \
230 SIZE_CLASS(37, 2048, 12288) \
231 SIZE_CLASS(38, 2048, 14336) \
232 SIZE_CLASS(39, 2048, 16384) \
233 SIZE_CLASS(40, 4096, 20480) \
234 SIZE_CLASS(41, 4096, 24576) \
235 SIZE_CLASS(42, 4096, 28672) \
236 SIZE_CLASS(43, 4096, 32768) \
237 SIZE_CLASS(44, 8192, 40960) \
238 SIZE_CLASS(45, 8192, 49152) \
239 SIZE_CLASS(46, 8192, 57344) \
242 #define SMALL_MAXCLASS 57344
245 #if (LG_TINY_MIN == 3 && LG_QUANTUM == 4 && LG_PAGE == 12)
246 #define SIZE_CLASSES_DEFINED
248 #define SIZE_CLASSES \
249 SIZE_CLASS(0, 8, 8) \
250 SIZE_CLASS(1, 8, 16) \
251 SIZE_CLASS(2, 16, 32) \
252 SIZE_CLASS(3, 16, 48) \
253 SIZE_CLASS(4, 16, 64) \
254 SIZE_CLASS(5, 16, 80) \
255 SIZE_CLASS(6, 16, 96) \
256 SIZE_CLASS(7, 16, 112) \
257 SIZE_CLASS(8, 16, 128) \
258 SIZE_CLASS(9, 32, 160) \
259 SIZE_CLASS(10, 32, 192) \
260 SIZE_CLASS(11, 32, 224) \
261 SIZE_CLASS(12, 32, 256) \
262 SIZE_CLASS(13, 64, 320) \
263 SIZE_CLASS(14, 64, 384) \
264 SIZE_CLASS(15, 64, 448) \
265 SIZE_CLASS(16, 64, 512) \
266 SIZE_CLASS(17, 128, 640) \
267 SIZE_CLASS(18, 128, 768) \
268 SIZE_CLASS(19, 128, 896) \
269 SIZE_CLASS(20, 128, 1024) \
270 SIZE_CLASS(21, 256, 1280) \
271 SIZE_CLASS(22, 256, 1536) \
272 SIZE_CLASS(23, 256, 1792) \
273 SIZE_CLASS(24, 256, 2048) \
274 SIZE_CLASS(25, 512, 2560) \
275 SIZE_CLASS(26, 512, 3072) \
276 SIZE_CLASS(27, 512, 3584) \
279 #define SMALL_MAXCLASS 3584
282 #if (LG_TINY_MIN == 3 && LG_QUANTUM == 4 && LG_PAGE == 13)
283 #define SIZE_CLASSES_DEFINED
285 #define SIZE_CLASSES \
286 SIZE_CLASS(0, 8, 8) \
287 SIZE_CLASS(1, 8, 16) \
288 SIZE_CLASS(2, 16, 32) \
289 SIZE_CLASS(3, 16, 48) \
290 SIZE_CLASS(4, 16, 64) \
291 SIZE_CLASS(5, 16, 80) \
292 SIZE_CLASS(6, 16, 96) \
293 SIZE_CLASS(7, 16, 112) \
294 SIZE_CLASS(8, 16, 128) \
295 SIZE_CLASS(9, 32, 160) \
296 SIZE_CLASS(10, 32, 192) \
297 SIZE_CLASS(11, 32, 224) \
298 SIZE_CLASS(12, 32, 256) \
299 SIZE_CLASS(13, 64, 320) \
300 SIZE_CLASS(14, 64, 384) \
301 SIZE_CLASS(15, 64, 448) \
302 SIZE_CLASS(16, 64, 512) \
303 SIZE_CLASS(17, 128, 640) \
304 SIZE_CLASS(18, 128, 768) \
305 SIZE_CLASS(19, 128, 896) \
306 SIZE_CLASS(20, 128, 1024) \
307 SIZE_CLASS(21, 256, 1280) \
308 SIZE_CLASS(22, 256, 1536) \
309 SIZE_CLASS(23, 256, 1792) \
310 SIZE_CLASS(24, 256, 2048) \
311 SIZE_CLASS(25, 512, 2560) \
312 SIZE_CLASS(26, 512, 3072) \
313 SIZE_CLASS(27, 512, 3584) \
314 SIZE_CLASS(28, 512, 4096) \
315 SIZE_CLASS(29, 1024, 5120) \
316 SIZE_CLASS(30, 1024, 6144) \
317 SIZE_CLASS(31, 1024, 7168) \
320 #define SMALL_MAXCLASS 7168
323 #if (LG_TINY_MIN == 3 && LG_QUANTUM == 4 && LG_PAGE == 14)
324 #define SIZE_CLASSES_DEFINED
326 #define SIZE_CLASSES \
327 SIZE_CLASS(0, 8, 8) \
328 SIZE_CLASS(1, 8, 16) \
329 SIZE_CLASS(2, 16, 32) \
330 SIZE_CLASS(3, 16, 48) \
331 SIZE_CLASS(4, 16, 64) \
332 SIZE_CLASS(5, 16, 80) \
333 SIZE_CLASS(6, 16, 96) \
334 SIZE_CLASS(7, 16, 112) \
335 SIZE_CLASS(8, 16, 128) \
336 SIZE_CLASS(9, 32, 160) \
337 SIZE_CLASS(10, 32, 192) \
338 SIZE_CLASS(11, 32, 224) \
339 SIZE_CLASS(12, 32, 256) \
340 SIZE_CLASS(13, 64, 320) \
341 SIZE_CLASS(14, 64, 384) \
342 SIZE_CLASS(15, 64, 448) \
343 SIZE_CLASS(16, 64, 512) \
344 SIZE_CLASS(17, 128, 640) \
345 SIZE_CLASS(18, 128, 768) \
346 SIZE_CLASS(19, 128, 896) \
347 SIZE_CLASS(20, 128, 1024) \
348 SIZE_CLASS(21, 256, 1280) \
349 SIZE_CLASS(22, 256, 1536) \
350 SIZE_CLASS(23, 256, 1792) \
351 SIZE_CLASS(24, 256, 2048) \
352 SIZE_CLASS(25, 512, 2560) \
353 SIZE_CLASS(26, 512, 3072) \
354 SIZE_CLASS(27, 512, 3584) \
355 SIZE_CLASS(28, 512, 4096) \
356 SIZE_CLASS(29, 1024, 5120) \
357 SIZE_CLASS(30, 1024, 6144) \
358 SIZE_CLASS(31, 1024, 7168) \
359 SIZE_CLASS(32, 1024, 8192) \
360 SIZE_CLASS(33, 2048, 10240) \
361 SIZE_CLASS(34, 2048, 12288) \
362 SIZE_CLASS(35, 2048, 14336) \
365 #define SMALL_MAXCLASS 14336
368 #if (LG_TINY_MIN == 3 && LG_QUANTUM == 4 && LG_PAGE == 15)
369 #define SIZE_CLASSES_DEFINED
371 #define SIZE_CLASSES \
372 SIZE_CLASS(0, 8, 8) \
373 SIZE_CLASS(1, 8, 16) \
374 SIZE_CLASS(2, 16, 32) \
375 SIZE_CLASS(3, 16, 48) \
376 SIZE_CLASS(4, 16, 64) \
377 SIZE_CLASS(5, 16, 80) \
378 SIZE_CLASS(6, 16, 96) \
379 SIZE_CLASS(7, 16, 112) \
380 SIZE_CLASS(8, 16, 128) \
381 SIZE_CLASS(9, 32, 160) \
382 SIZE_CLASS(10, 32, 192) \
383 SIZE_CLASS(11, 32, 224) \
384 SIZE_CLASS(12, 32, 256) \
385 SIZE_CLASS(13, 64, 320) \
386 SIZE_CLASS(14, 64, 384) \
387 SIZE_CLASS(15, 64, 448) \
388 SIZE_CLASS(16, 64, 512) \
389 SIZE_CLASS(17, 128, 640) \
390 SIZE_CLASS(18, 128, 768) \
391 SIZE_CLASS(19, 128, 896) \
392 SIZE_CLASS(20, 128, 1024) \
393 SIZE_CLASS(21, 256, 1280) \
394 SIZE_CLASS(22, 256, 1536) \
395 SIZE_CLASS(23, 256, 1792) \
396 SIZE_CLASS(24, 256, 2048) \
397 SIZE_CLASS(25, 512, 2560) \
398 SIZE_CLASS(26, 512, 3072) \
399 SIZE_CLASS(27, 512, 3584) \
400 SIZE_CLASS(28, 512, 4096) \
401 SIZE_CLASS(29, 1024, 5120) \
402 SIZE_CLASS(30, 1024, 6144) \
403 SIZE_CLASS(31, 1024, 7168) \
404 SIZE_CLASS(32, 1024, 8192) \
405 SIZE_CLASS(33, 2048, 10240) \
406 SIZE_CLASS(34, 2048, 12288) \
407 SIZE_CLASS(35, 2048, 14336) \
408 SIZE_CLASS(36, 2048, 16384) \
409 SIZE_CLASS(37, 4096, 20480) \
410 SIZE_CLASS(38, 4096, 24576) \
411 SIZE_CLASS(39, 4096, 28672) \
414 #define SMALL_MAXCLASS 28672
417 #if (LG_TINY_MIN == 3 && LG_QUANTUM == 4 && LG_PAGE == 16)
418 #define SIZE_CLASSES_DEFINED
420 #define SIZE_CLASSES \
421 SIZE_CLASS(0, 8, 8) \
422 SIZE_CLASS(1, 8, 16) \
423 SIZE_CLASS(2, 16, 32) \
424 SIZE_CLASS(3, 16, 48) \
425 SIZE_CLASS(4, 16, 64) \
426 SIZE_CLASS(5, 16, 80) \
427 SIZE_CLASS(6, 16, 96) \
428 SIZE_CLASS(7, 16, 112) \
429 SIZE_CLASS(8, 16, 128) \
430 SIZE_CLASS(9, 32, 160) \
431 SIZE_CLASS(10, 32, 192) \
432 SIZE_CLASS(11, 32, 224) \
433 SIZE_CLASS(12, 32, 256) \
434 SIZE_CLASS(13, 64, 320) \
435 SIZE_CLASS(14, 64, 384) \
436 SIZE_CLASS(15, 64, 448) \
437 SIZE_CLASS(16, 64, 512) \
438 SIZE_CLASS(17, 128, 640) \
439 SIZE_CLASS(18, 128, 768) \
440 SIZE_CLASS(19, 128, 896) \
441 SIZE_CLASS(20, 128, 1024) \
442 SIZE_CLASS(21, 256, 1280) \
443 SIZE_CLASS(22, 256, 1536) \
444 SIZE_CLASS(23, 256, 1792) \
445 SIZE_CLASS(24, 256, 2048) \
446 SIZE_CLASS(25, 512, 2560) \
447 SIZE_CLASS(26, 512, 3072) \
448 SIZE_CLASS(27, 512, 3584) \
449 SIZE_CLASS(28, 512, 4096) \
450 SIZE_CLASS(29, 1024, 5120) \
451 SIZE_CLASS(30, 1024, 6144) \
452 SIZE_CLASS(31, 1024, 7168) \
453 SIZE_CLASS(32, 1024, 8192) \
454 SIZE_CLASS(33, 2048, 10240) \
455 SIZE_CLASS(34, 2048, 12288) \
456 SIZE_CLASS(35, 2048, 14336) \
457 SIZE_CLASS(36, 2048, 16384) \
458 SIZE_CLASS(37, 4096, 20480) \
459 SIZE_CLASS(38, 4096, 24576) \
460 SIZE_CLASS(39, 4096, 28672) \
461 SIZE_CLASS(40, 4096, 32768) \
462 SIZE_CLASS(41, 8192, 40960) \
463 SIZE_CLASS(42, 8192, 49152) \
464 SIZE_CLASS(43, 8192, 57344) \
467 #define SMALL_MAXCLASS 57344
470 #if (LG_TINY_MIN == 4 && LG_QUANTUM == 4 && LG_PAGE == 12)
471 #define SIZE_CLASSES_DEFINED
473 #define SIZE_CLASSES \
474 SIZE_CLASS(0, 16, 16) \
475 SIZE_CLASS(1, 16, 32) \
476 SIZE_CLASS(2, 16, 48) \
477 SIZE_CLASS(3, 16, 64) \
478 SIZE_CLASS(4, 16, 80) \
479 SIZE_CLASS(5, 16, 96) \
480 SIZE_CLASS(6, 16, 112) \
481 SIZE_CLASS(7, 16, 128) \
482 SIZE_CLASS(8, 32, 160) \
483 SIZE_CLASS(9, 32, 192) \
484 SIZE_CLASS(10, 32, 224) \
485 SIZE_CLASS(11, 32, 256) \
486 SIZE_CLASS(12, 64, 320) \
487 SIZE_CLASS(13, 64, 384) \
488 SIZE_CLASS(14, 64, 448) \
489 SIZE_CLASS(15, 64, 512) \
490 SIZE_CLASS(16, 128, 640) \
491 SIZE_CLASS(17, 128, 768) \
492 SIZE_CLASS(18, 128, 896) \
493 SIZE_CLASS(19, 128, 1024) \
494 SIZE_CLASS(20, 256, 1280) \
495 SIZE_CLASS(21, 256, 1536) \
496 SIZE_CLASS(22, 256, 1792) \
497 SIZE_CLASS(23, 256, 2048) \
498 SIZE_CLASS(24, 512, 2560) \
499 SIZE_CLASS(25, 512, 3072) \
500 SIZE_CLASS(26, 512, 3584) \
503 #define SMALL_MAXCLASS 3584
506 #if (LG_TINY_MIN == 4 && LG_QUANTUM == 4 && LG_PAGE == 13)
507 #define SIZE_CLASSES_DEFINED
509 #define SIZE_CLASSES \
510 SIZE_CLASS(0, 16, 16) \
511 SIZE_CLASS(1, 16, 32) \
512 SIZE_CLASS(2, 16, 48) \
513 SIZE_CLASS(3, 16, 64) \
514 SIZE_CLASS(4, 16, 80) \
515 SIZE_CLASS(5, 16, 96) \
516 SIZE_CLASS(6, 16, 112) \
517 SIZE_CLASS(7, 16, 128) \
518 SIZE_CLASS(8, 32, 160) \
519 SIZE_CLASS(9, 32, 192) \
520 SIZE_CLASS(10, 32, 224) \
521 SIZE_CLASS(11, 32, 256) \
522 SIZE_CLASS(12, 64, 320) \
523 SIZE_CLASS(13, 64, 384) \
524 SIZE_CLASS(14, 64, 448) \
525 SIZE_CLASS(15, 64, 512) \
526 SIZE_CLASS(16, 128, 640) \
527 SIZE_CLASS(17, 128, 768) \
528 SIZE_CLASS(18, 128, 896) \
529 SIZE_CLASS(19, 128, 1024) \
530 SIZE_CLASS(20, 256, 1280) \
531 SIZE_CLASS(21, 256, 1536) \
532 SIZE_CLASS(22, 256, 1792) \
533 SIZE_CLASS(23, 256, 2048) \
534 SIZE_CLASS(24, 512, 2560) \
535 SIZE_CLASS(25, 512, 3072) \
536 SIZE_CLASS(26, 512, 3584) \
537 SIZE_CLASS(27, 512, 4096) \
538 SIZE_CLASS(28, 1024, 5120) \
539 SIZE_CLASS(29, 1024, 6144) \
540 SIZE_CLASS(30, 1024, 7168) \
543 #define SMALL_MAXCLASS 7168
546 #if (LG_TINY_MIN == 4 && LG_QUANTUM == 4 && LG_PAGE == 14)
547 #define SIZE_CLASSES_DEFINED
549 #define SIZE_CLASSES \
550 SIZE_CLASS(0, 16, 16) \
551 SIZE_CLASS(1, 16, 32) \
552 SIZE_CLASS(2, 16, 48) \
553 SIZE_CLASS(3, 16, 64) \
554 SIZE_CLASS(4, 16, 80) \
555 SIZE_CLASS(5, 16, 96) \
556 SIZE_CLASS(6, 16, 112) \
557 SIZE_CLASS(7, 16, 128) \
558 SIZE_CLASS(8, 32, 160) \
559 SIZE_CLASS(9, 32, 192) \
560 SIZE_CLASS(10, 32, 224) \
561 SIZE_CLASS(11, 32, 256) \
562 SIZE_CLASS(12, 64, 320) \
563 SIZE_CLASS(13, 64, 384) \
564 SIZE_CLASS(14, 64, 448) \
565 SIZE_CLASS(15, 64, 512) \
566 SIZE_CLASS(16, 128, 640) \
567 SIZE_CLASS(17, 128, 768) \
568 SIZE_CLASS(18, 128, 896) \
569 SIZE_CLASS(19, 128, 1024) \
570 SIZE_CLASS(20, 256, 1280) \
571 SIZE_CLASS(21, 256, 1536) \
572 SIZE_CLASS(22, 256, 1792) \
573 SIZE_CLASS(23, 256, 2048) \
574 SIZE_CLASS(24, 512, 2560) \
575 SIZE_CLASS(25, 512, 3072) \
576 SIZE_CLASS(26, 512, 3584) \
577 SIZE_CLASS(27, 512, 4096) \
578 SIZE_CLASS(28, 1024, 5120) \
579 SIZE_CLASS(29, 1024, 6144) \
580 SIZE_CLASS(30, 1024, 7168) \
581 SIZE_CLASS(31, 1024, 8192) \
582 SIZE_CLASS(32, 2048, 10240) \
583 SIZE_CLASS(33, 2048, 12288) \
584 SIZE_CLASS(34, 2048, 14336) \
587 #define SMALL_MAXCLASS 14336
590 #if (LG_TINY_MIN == 4 && LG_QUANTUM == 4 && LG_PAGE == 15)
591 #define SIZE_CLASSES_DEFINED
593 #define SIZE_CLASSES \
594 SIZE_CLASS(0, 16, 16) \
595 SIZE_CLASS(1, 16, 32) \
596 SIZE_CLASS(2, 16, 48) \
597 SIZE_CLASS(3, 16, 64) \
598 SIZE_CLASS(4, 16, 80) \
599 SIZE_CLASS(5, 16, 96) \
600 SIZE_CLASS(6, 16, 112) \
601 SIZE_CLASS(7, 16, 128) \
602 SIZE_CLASS(8, 32, 160) \
603 SIZE_CLASS(9, 32, 192) \
604 SIZE_CLASS(10, 32, 224) \
605 SIZE_CLASS(11, 32, 256) \
606 SIZE_CLASS(12, 64, 320) \
607 SIZE_CLASS(13, 64, 384) \
608 SIZE_CLASS(14, 64, 448) \
609 SIZE_CLASS(15, 64, 512) \
610 SIZE_CLASS(16, 128, 640) \
611 SIZE_CLASS(17, 128, 768) \
612 SIZE_CLASS(18, 128, 896) \
613 SIZE_CLASS(19, 128, 1024) \
614 SIZE_CLASS(20, 256, 1280) \
615 SIZE_CLASS(21, 256, 1536) \
616 SIZE_CLASS(22, 256, 1792) \
617 SIZE_CLASS(23, 256, 2048) \
618 SIZE_CLASS(24, 512, 2560) \
619 SIZE_CLASS(25, 512, 3072) \
620 SIZE_CLASS(26, 512, 3584) \
621 SIZE_CLASS(27, 512, 4096) \
622 SIZE_CLASS(28, 1024, 5120) \
623 SIZE_CLASS(29, 1024, 6144) \
624 SIZE_CLASS(30, 1024, 7168) \
625 SIZE_CLASS(31, 1024, 8192) \
626 SIZE_CLASS(32, 2048, 10240) \
627 SIZE_CLASS(33, 2048, 12288) \
628 SIZE_CLASS(34, 2048, 14336) \
629 SIZE_CLASS(35, 2048, 16384) \
630 SIZE_CLASS(36, 4096, 20480) \
631 SIZE_CLASS(37, 4096, 24576) \
632 SIZE_CLASS(38, 4096, 28672) \
635 #define SMALL_MAXCLASS 28672
638 #if (LG_TINY_MIN == 4 && LG_QUANTUM == 4 && LG_PAGE == 16)
639 #define SIZE_CLASSES_DEFINED
641 #define SIZE_CLASSES \
642 SIZE_CLASS(0, 16, 16) \
643 SIZE_CLASS(1, 16, 32) \
644 SIZE_CLASS(2, 16, 48) \
645 SIZE_CLASS(3, 16, 64) \
646 SIZE_CLASS(4, 16, 80) \
647 SIZE_CLASS(5, 16, 96) \
648 SIZE_CLASS(6, 16, 112) \
649 SIZE_CLASS(7, 16, 128) \
650 SIZE_CLASS(8, 32, 160) \
651 SIZE_CLASS(9, 32, 192) \
652 SIZE_CLASS(10, 32, 224) \
653 SIZE_CLASS(11, 32, 256) \
654 SIZE_CLASS(12, 64, 320) \
655 SIZE_CLASS(13, 64, 384) \
656 SIZE_CLASS(14, 64, 448) \
657 SIZE_CLASS(15, 64, 512) \
658 SIZE_CLASS(16, 128, 640) \
659 SIZE_CLASS(17, 128, 768) \
660 SIZE_CLASS(18, 128, 896) \
661 SIZE_CLASS(19, 128, 1024) \
662 SIZE_CLASS(20, 256, 1280) \
663 SIZE_CLASS(21, 256, 1536) \
664 SIZE_CLASS(22, 256, 1792) \
665 SIZE_CLASS(23, 256, 2048) \
666 SIZE_CLASS(24, 512, 2560) \
667 SIZE_CLASS(25, 512, 3072) \
668 SIZE_CLASS(26, 512, 3584) \
669 SIZE_CLASS(27, 512, 4096) \
670 SIZE_CLASS(28, 1024, 5120) \
671 SIZE_CLASS(29, 1024, 6144) \
672 SIZE_CLASS(30, 1024, 7168) \
673 SIZE_CLASS(31, 1024, 8192) \
674 SIZE_CLASS(32, 2048, 10240) \
675 SIZE_CLASS(33, 2048, 12288) \
676 SIZE_CLASS(34, 2048, 14336) \
677 SIZE_CLASS(35, 2048, 16384) \
678 SIZE_CLASS(36, 4096, 20480) \
679 SIZE_CLASS(37, 4096, 24576) \
680 SIZE_CLASS(38, 4096, 28672) \
681 SIZE_CLASS(39, 4096, 32768) \
682 SIZE_CLASS(40, 8192, 40960) \
683 SIZE_CLASS(41, 8192, 49152) \
684 SIZE_CLASS(42, 8192, 57344) \
687 #define SMALL_MAXCLASS 57344
690 #ifndef SIZE_CLASSES_DEFINED
691 # error "No size class definitions match configuration"
693 #undef SIZE_CLASSES_DEFINED
702 # error "Too many small size classes"
707 #ifdef JEMALLOC_H_STRUCTS
712 #ifdef JEMALLOC_H_EXTERNS
717 #ifdef JEMALLOC_H_INLINES