mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-11-29 00:21:14 +00:00
[BOLT][Runtime] Fix memset definition
Differential Revision: https://reviews.llvm.org/D129321
This commit is contained in:
parent
77a38f6839
commit
e10e120cea
@ -103,9 +103,11 @@ void *memmove(void *Dest, const void *Src, size_t Len) {
|
||||
return Dest;
|
||||
}
|
||||
|
||||
void memset(char *Buf, char C, uint32_t Size) {
|
||||
for (int I = 0; I < Size; ++I)
|
||||
*Buf++ = C;
|
||||
void *memset(void *Buf, int C, size_t Size) {
|
||||
char *S = (char *)Buf;
|
||||
for (size_t I = 0; I < Size; ++I)
|
||||
*S++ = C;
|
||||
return Buf;
|
||||
}
|
||||
|
||||
int memcmp(const void *s1, const void *s2, size_t n) {
|
||||
|
Loading…
Reference in New Issue
Block a user