aboutsummaryrefslogtreecommitdiff
path: root/libc/inc/mem.h
diff options
context:
space:
mode:
authorMarvin Borner2021-02-07 00:51:32 +0100
committerMarvin Borner2021-02-07 00:51:32 +0100
commit6944f48d30a581d437bc2c8f873a499291412bb7 (patch)
treefe2f7b9db41d69fc0e57b56a118cf5b15b22f056 /libc/inc/mem.h
parent56cd63f1998821dae67ab0e13d57600ad3b5ba59 (diff)
Many small memory improvements
Diffstat (limited to 'libc/inc/mem.h')
-rw-r--r--libc/inc/mem.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/libc/inc/mem.h b/libc/inc/mem.h
index a01c9a2..e35ee62 100644
--- a/libc/inc/mem.h
+++ b/libc/inc/mem.h
@@ -5,6 +5,8 @@
#include <def.h>
+int malloc_allocated;
+
void *malloc_debug(u32 size, const char *file, int line, const char *func, const char *inp);
void free_debug(void *ptr, const char *file, int line, const char *func, const char *inp);
#define malloc(size) malloc_debug(size, __FILE__, __LINE__, __func__, #size)
@@ -26,5 +28,6 @@ void *memcpy(void *dest, const void *src, u32 n);
void *memset(void *dest, int val, u32 n);
void *memchr(void *src, int c, u32 n);
int memcmp(const void *s1, const void *s2, u32 n);
+int mememp(const u8 *buf, u32 n);
#endif