1#define SYSCLIB_DISABLE_BUILTINS
6#define ALIGN (sizeof(size_t))
7#define ONES ((size_t)-1/UCHAR_MAX)
8#define HIGHS (ONES * (UCHAR_MAX/2+1))
9#define HASZERO(x) (((x)-ONES) & ~(x) & HIGHS)
11char *__stpcpy(
char *restrict d,
const char *restrict s)
19 if ((uintptr_t)s % ALIGN == (uintptr_t)d % ALIGN) {
20 for (; (uintptr_t)s % ALIGN; s++, d++)
21 if (!(*d=*s))
return d;
22 wd=(
void *)d; ws=(
const void *)s;
23 for (; !HASZERO(*ws); *wd++ = *ws++);
24 d=(
void *)wd; s=(
const void *)ws;
27 for (; (*d=*s); s++, d++);