mem: improve slabbing to include flags
This commit is contained in:
parent
1fe7b002cf
commit
e1108b3493
6 changed files with 30 additions and 14 deletions
|
|
@ -50,7 +50,7 @@ void *memset(void *str, int c, size_t n)
|
|||
ptr += 8;
|
||||
}
|
||||
|
||||
if(n & 7) {
|
||||
if (n & 7) {
|
||||
ptr = (uintptr_t)str + (n & (~7ull));
|
||||
for (size_t i = 0; i < (n & 7); i++) {
|
||||
*(char *)ptr = c;
|
||||
|
|
|
|||
Loading…
Reference in a new issue