Consistency
This commit is contained in:
parent
6eadac23b3
commit
a7ed32e206
@ -36,13 +36,12 @@ void memcpy(void *dest, const void *src, u32 size)
|
|||||||
destc[i] = srcc[i];
|
destc[i] = srcc[i];
|
||||||
}
|
}
|
||||||
|
|
||||||
void *memset(void *dest, u32 value, u32 size)
|
void memset(void *dest, u32 filler, u32 size)
|
||||||
{
|
{
|
||||||
u8 *destc = (u8 *)dest;
|
u8 *destc = (u8 *)dest;
|
||||||
|
|
||||||
for(u32 i = 0; i < size; i++) destc[i] = (u8)value;
|
for(u32 i = 0; i < size; i++)
|
||||||
|
destc[i] = (u8)filler;
|
||||||
return dest;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void memset32(void *dest, u32 filler, u32 size)
|
void memset32(void *dest, u32 filler, u32 size)
|
||||||
|
@ -30,7 +30,7 @@
|
|||||||
#include "types.h"
|
#include "types.h"
|
||||||
|
|
||||||
void memcpy(void *dest, const void *src, u32 size);
|
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);
|
void memset32(void *dest, u32 filler, u32 size);
|
||||||
int memcmp(const void *buf1, const void *buf2, u32 size);
|
int memcmp(const void *buf1, const void *buf2, u32 size);
|
||||||
u8 *memsearch(u8 *startPos, const void *pattern, u32 size, u32 patternSize);
|
u8 *memsearch(u8 *startPos, const void *pattern, u32 size, u32 patternSize);
|
||||||
|
Reference in New Issue
Block a user