Module Name:    src
Committed By:   dsl
Date:           Sat Jul 18 12:03:31 UTC 2009

Modified Files:
        src/common/lib/libc/arch/x86_64/string: ffs.S

Log Message:
Remove a pointless _ALIGN_TEXT.
XXX ffs() ought to be a gcc inline asm.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/common/lib/libc/arch/x86_64/string/ffs.S

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/common/lib/libc/arch/x86_64/string/ffs.S
diff -u src/common/lib/libc/arch/x86_64/string/ffs.S:1.1 src/common/lib/libc/arch/x86_64/string/ffs.S:1.2
--- src/common/lib/libc/arch/x86_64/string/ffs.S:1.1	Tue Dec 20 19:28:51 2005
+++ src/common/lib/libc/arch/x86_64/string/ffs.S	Sat Jul 18 12:03:31 2009
@@ -7,15 +7,14 @@
 #include <machine/asm.h>
 
 #if defined(LIBC_SCCS)
-	RCSID("$NetBSD: ffs.S,v 1.1 2005/12/20 19:28:51 christos Exp $")
+	RCSID("$NetBSD: ffs.S,v 1.2 2009/07/18 12:03:31 dsl Exp $")
 #endif
 
 ENTRY(ffs)
 	bsfl	%edi,%eax
-	jz	L1	 		/* ZF is set if all bits are 0 */
+	jz	1f	 		/* ZF is set if all bits are 0 */
 	incl	%eax			/* bits numbered from 1, not 0 */
 	ret
 
-	_ALIGN_TEXT
-L1:	xorl	%eax,%eax		/* clear result */
+1:	xorl	%eax,%eax		/* clear result */
 	ret

Reply via email to