diff options
author | Nicholas Noll <nbnoll@eml.cc> | 2020-04-26 17:34:43 -0700 |
---|---|---|
committer | Nicholas Noll <nbnoll@eml.cc> | 2020-04-26 17:34:43 -0700 |
commit | 238b944f5986e7deaa2aa2d5925c1fa2c683c1c9 (patch) | |
tree | 7eb4f2d21ab03888ccda436bf36a68c3f13b09e6 /include/libn.h | |
parent | 98375c9c5e4bf26f8d238666d7233177dba787eb (diff) |
feat: added sort macro to libn. moved macro based templates to more obvious directory
Diffstat (limited to 'include/libn.h')
-rw-r--r-- | include/libn.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/libn.h b/include/libn.h index bfeae3e..fee0b92 100644 --- a/include/libn.h +++ b/include/libn.h @@ -83,12 +83,16 @@ mem·Allocator mem·sys = { .free = ·free }; +/* simple memory arena */ typedef struct mem·Arena mem·Arena; mem·Arena *mem·newarena(mem·Allocator from, void*); void *mem·arenaalloc(mem·Arena *A, uint n, ulong size); void mem·freearena(mem·Arena *A); +/* generalized memxxx functions */ +void memset64(void *dst, uint64 val, uintptr size); + // ----------------------------------------------------------------------------- // coroutines |