Gitiles
Code Review
Sign In
LeafOS
/
LeafOS-Devices
/
android_kernel_samsung_universal7904
/
79dbbc60493f357912d5f1da5a23147ba0c01c7a
/
.
/
arch
/
x86
/
boot
/
compressed
/
string.c
blob: ffb9c5c9d7486efb0a61fff5a73c5995aa9b32e0 [
file
] [
log
] [
blame
]
#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"