diff options
author | Nicholas Noll <nbnoll@eml.cc> | 2020-05-29 14:41:05 -0700 |
---|---|---|
committer | Nicholas Noll <nbnoll@eml.cc> | 2020-05-29 14:41:05 -0700 |
commit | 43ecfce7d20360a5fdc53e5ced266eccc8723242 (patch) | |
tree | c380ce6c3b2e9221a9510e9e829a4d772041ea78 /sys/libn/memory.c | |
parent | 680d60678b273f1ff20b013b24954773f76b4e1d (diff) |
blas code update
Diffstat (limited to 'sys/libn/memory.c')
-rw-r--r-- | sys/libn/memory.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/sys/libn/memory.c b/sys/libn/memory.c index dce0c36..7993ca2 100644 --- a/sys/libn/memory.c +++ b/sys/libn/memory.c @@ -1,6 +1,26 @@ #include <u.h> #include <libn.h> +void +·free(void* _, void* ptr) { + return free(ptr); +} + +void * +·alloc(void* _, uint n, ulong size) { + return malloc(n*size); +} + +void * +·calloc(void* _, uint n, ulong size) { + return calloc(n, size); +} + +void * +·realloc(void* _, void *ptr, uint n, ulong size) { + return realloc(ptr, n*size); +} + // ------------------------------------------------------------------------- // Dynamic buffer. |