mirror of
https://github.com/ProgramSnail/Lama.git
synced 2025-12-05 22:38:44 +00:00
Added conditional debug output for GC related operations
This commit is contained in:
parent
bcc85384c3
commit
05e4c15fe2
3 changed files with 18 additions and 6 deletions
|
|
@ -38,9 +38,9 @@ auint; // adaptive unsigned int
|
|||
#define CLOSURE_TAG 0x00000007
|
||||
#define UNBOXED_TAG 0x00000009 // Not actually a data_header; used to return from LkindOf
|
||||
#ifdef X86_64
|
||||
#define LEN_MASK (UINT64_MAX-7)
|
||||
#define LEN_MASK (UINT64_MAX^7)
|
||||
#else
|
||||
#define LEN_MASK (UINT32_MAX-7)
|
||||
#define LEN_MASK (UINT32_MAX^7)
|
||||
#endif
|
||||
#define LEN(x) (ptrt)(((ptrt)x & LEN_MASK) >> 3)
|
||||
#define TAG(x) (x & 7)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue