mirror of
https://github.com/joel16/uofw.git
synced 2024-11-23 11:39:50 +00:00
usersystemlib: avoid conflicting prototypes for sceKernelMemcpy
This commit is contained in:
parent
41bd039ab6
commit
43ec507bd0
@ -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);
|
||||
|
||||
/** @} */
|
||||
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user