Commit dc883fe4 authored by Cyrill Gorcunov's avatar Cyrill Gorcunov

util: Drop unused inline_memcpy

Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
parent 08faefd6
......@@ -201,18 +201,4 @@ int open_fmt(char *fmt, int mode, ...);
__ret; \
})
static void always_inline *inline_memcpy(void *dest, const void *src, size_t n)
{
long d0, d1, d2;
asm volatile(
"rep ; movsq\n\t"
"movq %4,%%rcx\n\t"
"rep ; movsb\n\t"
: "=&c" (d0), "=&D" (d1), "=&S" (d2)
: "0" (n >> 3), "g" (n & 7), "1" (dest), "2" (src)
: "memory");
return dest;
}
#endif /* UTIL_H_ */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment