mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-07-22 09:39:13 +00:00
Instead of belonging to the common C memcmp() function, belong on the optimized one stolen from the kernel. Signed-off-by: Laurent Dufour <ldufour@linux.vnet.ibm.com> Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
21 lines
482 B
C
21 lines
482 B
C
#ifndef __CR_ASM_STRING_H__
|
|
#define __CR_ASM_STRING_H__
|
|
|
|
#include "compiler.h"
|
|
|
|
#define HAS_BUILTIN_MEMCPY
|
|
#define HAS_BUILTIN_MEMCMP
|
|
|
|
#include "asm-generic/string.h"
|
|
|
|
extern void memcpy_power7(void *to, const void *from, unsigned long n);
|
|
static inline void *builtin_memcpy(void *to, const void *from, unsigned long n)
|
|
{
|
|
if (n)
|
|
memcpy_power7(to, from, n);
|
|
return to;
|
|
}
|
|
|
|
extern int builtin_memcmp(const void *cs, const void *ct, size_t count);
|
|
|
|
#endif /* __CR_ASM_STRING_H__ */
|