progress towards baremetal

This commit is contained in:
2025-07-09 17:19:30 +02:00
parent 6cfdd67cf0
commit fbae5a5a53
9 changed files with 68 additions and 46 deletions

View File

@@ -149,7 +149,11 @@ typedef struct nn_Context {
nn_Rng rng;
} nn_Context;
// TODO: write a bunch of utils so this *can* work on baremetal.
// libc-like utils
void nn_memset(void *buf, unsigned char byte, size_t len);
int nn_strcmp(const char *a, const char *b);
size_t nn_strlen(const char *a);
#ifndef NN_BAREMETAL
nn_Alloc nn_libcAllocator();