From 43ecfce7d20360a5fdc53e5ced266eccc8723242 Mon Sep 17 00:00:00 2001 From: Nicholas Noll Date: Fri, 29 May 2020 14:41:05 -0700 Subject: blas code update --- sys/libn/memory.c | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'sys/libn/memory.c') 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 #include +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. -- cgit v1.2.1