25 lines
602 B
C
25 lines
602 B
C
|
|
// core/front/quick_slot.h - Tiny Front: QuickSlot (L0)
|
|||
|
|
#ifndef HAK_FRONT_QUICK_SLOT_H
|
|||
|
|
#define HAK_FRONT_QUICK_SLOT_H
|
|||
|
|
|
|||
|
|
#include "../hakmem_tiny.h"
|
|||
|
|
|
|||
|
|
#ifndef QUICK_CAP
|
|||
|
|
#define QUICK_CAP 6
|
|||
|
|
#endif
|
|||
|
|
|
|||
|
|
// QuickSlot: C0–C3 向けの最小配列キャッシュ(next不触)
|
|||
|
|
typedef struct __attribute__((aligned(64))) {
|
|||
|
|
void* items[QUICK_CAP];
|
|||
|
|
uint8_t top; // 0..QUICK_CAP
|
|||
|
|
uint8_t _pad1;
|
|||
|
|
uint16_t _pad2;
|
|||
|
|
uint32_t _pad3;
|
|||
|
|
} TinyQuickSlot;
|
|||
|
|
|
|||
|
|
// TLS QuickSlot(実体は TU 側で定義)
|
|||
|
|
extern __thread TinyQuickSlot g_tls_quick[TINY_NUM_CLASSES];
|
|||
|
|
|
|||
|
|
#endif // HAK_FRONT_QUICK_SLOT_H
|
|||
|
|
|