#include <stdint.h>
#include <string.h>
Go to the source code of this file.
◆ __attribute__()
void* __attribute__ |
( |
(weak) |
| ) |
|
Definition at line 7 of file memset.c.
9 unsigned char* s = dest;
20 s[0] = s[n - 1] = (
unsigned char)c;
25 s[1] = s[n - 2] = (
unsigned char)c;
26 s[2] = s[n - 3] = (
unsigned char)c;
31 s[3] = s[n - 4] = (
unsigned char)c;
42 k = -(uintptr_t)s & 3;
45 n &= (
unsigned long)-4;
49 uint32_t* ws = (uint32_t*)(
void*)s;
50 uint32_t wc = c & 0xFF;
51 wc |= ((wc << 8) | (wc << 16) | (wc << 24));