M7350/kernel/arch/x86/boot/compressed/string.c
2024-09-09 08:52:07 +00:00

12 lines
211 B
C

#include "misc.h"
int memcmp(const void *s1, const void *s2, size_t len)
{
u8 diff;
asm("repe; cmpsb; setnz %0"
: "=qm" (diff), "+D" (s1), "+S" (s2), "+c" (len));
return diff;
}
#include "../string.c"