diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2013-02-02 13:29:15 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2013-02-02 13:29:15 +0000 |
commit | bfb23955a64b7aa0e072e92cbfc69f31228df265 (patch) | |
tree | 6c50e10532f57c6b648775473ddc5645317ada81 /lib/libc/arch/m68k/string/ffs.S | |
parent | eb379c50371cbe91cdca98004f1424ab57bc5e76 (diff) |
Userland bits for m68k/ELF. Mostly addition of register prefixes to the
assembler instructions, and cope with the few changes in return values
location.
Diffstat (limited to 'lib/libc/arch/m68k/string/ffs.S')
-rw-r--r-- | lib/libc/arch/m68k/string/ffs.S | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/lib/libc/arch/m68k/string/ffs.S b/lib/libc/arch/m68k/string/ffs.S index da7eb9e2d93..0cbd45426d0 100644 --- a/lib/libc/arch/m68k/string/ffs.S +++ b/lib/libc/arch/m68k/string/ffs.S @@ -1,4 +1,4 @@ -/* $OpenBSD: ffs.S,v 1.5 2005/08/07 16:40:14 espie Exp $ */ +/* $OpenBSD: ffs.S,v 1.6 2013/02/02 13:29:14 miod Exp $ */ /*- * Copyright (c) 1990 The Regents of the University of California. * All rights reserved. @@ -37,11 +37,11 @@ /* bit = ffs(value) */ ENTRY(ffs) - movl sp@(4),d0 - movl d0,d1 - negl d0 - andl d0,d1 - movql #32,d0 - bfffo d1{#0:#32},d1 - subl d1,d0 + movl %sp@(4),%d0 + movl %d0,%d1 + negl %d0 + andl %d0,%d1 + movql #32,%d0 + bfffo %d1{#0:#32},%d1 + subl %d1,%d0 rts |