aboutsummaryrefslogtreecommitdiff
path: root/include/lib
diff options
context:
space:
mode:
authorChristian Cunningham <cc@localhost>2022-01-20 18:50:41 -0700
committerChristian Cunningham <cc@localhost>2022-01-20 18:50:41 -0700
commit4bb5f36b8c696361d5a283680ea7dadde4e364df (patch)
tree9a5c3f6766945227e3d7d714559d15b7b3fc1e32 /include/lib
parent9ca0f8a8bdbfe543a23ff2e75502744a7263a5b7 (diff)
Added rotating buffers
Diffstat (limited to 'include/lib')
-rw-r--r--include/lib/mem.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/lib/mem.h b/include/lib/mem.h
index eff6445..04056f7 100644
--- a/include/lib/mem.h
+++ b/include/lib/mem.h
@@ -12,9 +12,16 @@ struct MemTab {
void* data;
} __attribute__((packed));
+struct RotBuffer {
+ void* base;
+ unsigned int size;
+ unsigned int offset;
+};
+
void memset(unsigned char* dest, unsigned char value, unsigned int n);
void memcpy(unsigned char* src, unsigned char* dest, unsigned int n);
unsigned char memcmp(unsigned char* a, unsigned char* b, unsigned int n);
+void memcpyrot(unsigned char* src, struct RotBuffer* rb, unsigned int n);
void memshow32(unsigned long* addr, unsigned int n);
void memset32(unsigned long* dest, unsigned long value, unsigned int n);