aboutsummaryrefslogtreecommitdiff
path: root/src/lib/memory.c
diff options
context:
space:
mode:
authorMarvin Borner2019-09-19 19:56:59 +0200
committerMarvin Borner2019-09-19 20:05:38 +0200
commit05e1fedcc9cd30d1a34a65e640da45e980b4f859 (patch)
tree9cfb7620907ac126f26cdfe9363cb73ed74ea179 /src/lib/memory.c
parentffd82e18b5259fab477ad375a7af8550fac526d8 (diff)
Moved source to kernel directory
Diffstat (limited to 'src/lib/memory.c')
-rw-r--r--src/lib/memory.c26
1 files changed, 0 insertions, 26 deletions
diff --git a/src/lib/memory.c b/src/lib/memory.c
deleted file mode 100644
index e306ada..0000000
--- a/src/lib/memory.c
+++ /dev/null
@@ -1,26 +0,0 @@
-#include "../graphics/graphics.h"
-
-void *memory_copy(void *dest, const void *src, size_t count) {
- const char *sp = (const char *) src;
- char *dp = (char *) dest;
- for (; count != 0; count--) *dp++ = *sp++;
- return dest;
-}
-
-void *memory_set(void *dest, char val, size_t count) {
- char *temp = (char *) dest;
- for (; count != 0; count--) *temp++ = val;
- return dest;
-}
-
-int memory_compare(const void *a_ptr, const void *b_ptr, size_t size) {
- const unsigned char *a = (const unsigned char *) a_ptr;
- const unsigned char *b = (const unsigned char *) b_ptr;
- for (size_t i = 0; i < size; i++) {
- if (a[i] < b[i])
- return -1;
- else if (b[i] < a[i])
- return 1;
- }
- return 0;
-} \ No newline at end of file