Skip to content

Commit

Permalink
klibc: Remove unused memset32 and memcpy32
Browse files Browse the repository at this point in the history
  • Loading branch information
marv7000 committed Nov 26, 2024
1 parent ee538a0 commit 43fccc0
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions kernel/klibc/string.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,15 +47,6 @@ void* memcpy(void* restrict dst_ptr, const void* restrict src_ptr, usize size)
return dst_ptr;
}

void* memcpy32(void* restrict dst_ptr, const void* restrict src_ptr, usize size)
{
u32* dst = (u32*)dst_ptr;
const u32* src = (const u32*)src_ptr;
for (usize i = 0; i < size; i++)
dst[i] = src[i];
return dst_ptr;
}

void* memmove(void* dstptr, const void* srcptr, usize size)
{
u8* dst = (u8*)dstptr;
Expand All @@ -81,14 +72,6 @@ void* memset(void* dst, u8 value, usize size)
return dst;
}

void* memset32(void* dst, u32 value, usize size)
{
u32* buf = (u32*)dst;
for (usize i = 0; i < size; i++)
buf[i] = value;
return dst;
}

char* strdup(const char* src)
{
if (src == NULL)
Expand Down

0 comments on commit 43fccc0

Please sign in to comment.