Consistency

This commit is contained in:
Aurora Wright 2017-05-21 19:59:02 +02:00
parent 6eadac23b3
commit a7ed32e206
2 changed files with 4 additions and 5 deletions

View File

@ -36,13 +36,12 @@ void memcpy(void *dest, const void *src, u32 size)
destc[i] = srcc[i];
}
void *memset(void *dest, u32 value, u32 size)
void memset(void *dest, u32 filler, u32 size)
{
u8 *destc = (u8 *)dest;
for(u32 i = 0; i < size; i++) destc[i] = (u8)value;
return dest;
for(u32 i = 0; i < size; i++)
destc[i] = (u8)filler;
}
void memset32(void *dest, u32 filler, u32 size)

View File

@ -30,7 +30,7 @@
#include "types.h"
void memcpy(void *dest, const void *src, u32 size);
void *memset(void *dest, u32 value, u32 size) __attribute__((used));
void memset(void *dest, u32 value, u32 size) __attribute__((used));
void memset32(void *dest, u32 filler, u32 size);
int memcmp(const void *buf1, const void *buf2, u32 size);
u8 *memsearch(u8 *startPos, const void *pattern, u32 size, u32 patternSize);