summaryrefslogtreecommitdiff
path: root/src/lib/mpmalloc.cc
diff options
context:
space:
mode:
authorDaniel Friesel <daniel.friesel@uos.de>2020-09-07 12:57:04 +0200
committerDaniel Friesel <daniel.friesel@uos.de>2020-09-07 12:57:04 +0200
commit0558244645611f314f47e0fa427f7323ce253eaf (patch)
tree824bcd55ec8577703345106d0a08e167407500a7 /src/lib/mpmalloc.cc
parent0248c6352f2117e50fac71dd632a79d8fa4f8737 (diff)
remove external libraries from main branch
Diffstat (limited to 'src/lib/mpmalloc.cc')
-rw-r--r--src/lib/mpmalloc.cc42
1 files changed, 0 insertions, 42 deletions
diff --git a/src/lib/mpmalloc.cc b/src/lib/mpmalloc.cc
deleted file mode 100644
index 2483a3a..0000000
--- a/src/lib/mpmalloc.cc
+++ /dev/null
@@ -1,42 +0,0 @@
-#include <stdlib.h>
-#include "driver/stdout.h"
-#include "lib/mpmalloc.h"
-
-void* mpcalloc(size_t nmemb, size_t size)
-{
- void* ret = calloc(nmemb, size);
-#ifdef ADDR_20BIT
- kout << "calloc:" << dec << (uint32_t)nmemb << "x" << (uint32_t)size << "@" << ret << endl;
-#else
- kout << "calloc:" << dec << nmemb << "x" << size << "@" << ret << endl;
-#endif
- return ret;
-}
-
-void* mpmalloc(size_t size)
-{
- void* ret = malloc(size);
-#ifdef ADDR_20BIT
- kout << "malloc:" << dec << (uint32_t)size << "@" << ret << endl;
-#else
- kout << "malloc:" << dec << size << "@" << ret << endl;
-#endif
- return ret;
-}
-
-void* mprealloc(void* addr, size_t size)
-{
- void* ret = realloc(addr, size);
-#ifdef ADDR_20BIT
- kout << "realloc:" << addr << ":" << dec << (uint32_t)size << "@" << ret << endl;
-#else
- kout << "realloc:" << addr << ":" << dec << size << "@" << ret << endl;
-#endif
- return ret;
-}
-
-void mpfree(void* addr)
-{
- kout << "free:" << addr << endl;
- free(addr);
-}