1 #include <linux/config.h>
2 #include <linux/string.h>
3 #include <linux/module.h>
8 void *memcpy(void *to
, const void *from
, size_t n
)
10 #ifdef CONFIG_X86_USE_3DNOW
11 return __memcpy3d(to
, from
, n
);
13 return __memcpy(to
, from
, n
);
16 EXPORT_SYMBOL(memcpy
);
18 void *memset(void *s
, int c
, size_t count
)
20 return __memset(s
, c
, count
);
22 EXPORT_SYMBOL(memset
);
24 void *memmove(void *dest
, const void *src
, size_t n
)
36 : "=&c" (d0
), "=&S" (d1
), "=&D" (d2
)
38 "1" (n
-1+(const char *)src
),
39 "2" (n
-1+(char *)dest
)
44 EXPORT_SYMBOL(memmove
);