usersystemlib: avoid conflicting prototypes for sceKernelMemcpy

This commit is contained in:
Clément G 2014-04-25 23:10:52 +01:00
parent 41bd039ab6
commit 43ec507bd0
2 changed files with 4 additions and 4 deletions

View File

@ -223,12 +223,12 @@ void *sceKernelMemcpy(void *dst, const void *src, SceSize size);
* See http://www.cplusplus.com/reference/cstring/memset/
*
* @param dst Pointer to the memory block to fill.
* @param val Value to be set, casted to the u8 type.
* @param val Value to be set.
* @param size Number of bytes to be set.
*
* @return Value of dst.
*/
void *sceKernelMemset(void *dst, s32 val, SceSize size);
void *sceKernelMemset(void *dst, s8 val, SceSize size);
/** @} */

View File

@ -18,12 +18,12 @@ void *sceKernelMemcpy(void *dst, const void *src, SceSize size)
}
// FIXME: naive, not reversed!
void *sceKernelMemset(void *dst, s32 val, SceSize size)
void *sceKernelMemset(void *dst, s8 val, SceSize size)
{
u8 *dst8 = (u8*)dst;
while (size--) {
*(dst8++) = (u8)val;
*(dst8++) = val;
}
return dst;