repo.or.cz
/
zen-stable.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
spi-topcliff-pch: Fix issue for transmitting over 4KByte
[zen-stable.git]
/
arch
/
x86
/
boot
/
compressed
/
string.c
blob
ffb9c5c9d7486efb0a61fff5a73c5995aa9b32e0
1
#include
"misc.h"
2
3
int
memcmp
(
const void
*
s1
,
const void
*
s2
,
size_t
len
)
4
{
5
u8 diff
;
6
asm
(
"repe; cmpsb; setnz %0"
7
:
"=qm"
(
diff
),
"+D"
(
s1
),
"+S"
(
s2
),
"+c"
(
len
));
8
return
diff
;
9
}
10
11
#include
"../string.c"