Replace generated arrays with macro declarations, align cache lines to 64 bytes

This commit is contained in:
Nic Barker 2025-01-26 14:37:41 +13:00
parent 951d785deb
commit c7b8ff15ec
3 changed files with 281 additions and 901 deletions

1170
clay.h

File diff suppressed because it is too large Load Diff

View File

@ -1,6 +1,6 @@
CLAY__TYPEDEF($NAME$, struct
typedef struct
{
int32_t capacity;
int32_t length;
$TYPE$ *internalArray;
});
} $NAME$;

View File

@ -1,5 +1,5 @@
CLAY__TYPEDEF($NAME$Slice, struct
typedef struct
{
int32_t length;
$TYPE$ *internalArray;
});
} $NAME$Slice;