summaryrefslogtreecommitdiff
path: root/sys/lib/libkern/arch/amd64/memchr.S
diff options
context:
space:
mode:
authorTed Unangst <tedu@cvs.openbsd.org>2014-11-29 18:51:24 +0000
committerTed Unangst <tedu@cvs.openbsd.org>2014-11-29 18:51:24 +0000
commit515bd3a026be14e64a5724080a5e256d99ddb254 (patch)
treea811163cdac897264aacdef90759cfaa4f0e26e2 /sys/lib/libkern/arch/amd64/memchr.S
parentc1c0b85bc93b6c8d536cff811022e09e0fae1be7 (diff)
it should not be necessary to clear the direction flag
ok deraadt
Diffstat (limited to 'sys/lib/libkern/arch/amd64/memchr.S')
-rw-r--r--sys/lib/libkern/arch/amd64/memchr.S1
1 files changed, 0 insertions, 1 deletions
diff --git a/sys/lib/libkern/arch/amd64/memchr.S b/sys/lib/libkern/arch/amd64/memchr.S
index 88fa37462d2..1738e17f8ee 100644
--- a/sys/lib/libkern/arch/amd64/memchr.S
+++ b/sys/lib/libkern/arch/amd64/memchr.S
@@ -11,7 +11,6 @@ ENTRY(memchr)
movq %rdx,%rcx /* set length of search */
testq %rcx,%rcx /* test for len == 0 */
jz L1
- cld /* set search forward */
repne /* search! */
scasb
jne L1 /* scan failed, return null */