Module Name:    src
Committed By:   matt
Date:           Sun Jul  3 07:13:31 UTC 2011

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

Log Message:
Add a weak symbol definition for __ffssi2 so that __builtin_ffs will use
this if no strong defintion of __ffssi2 is available.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/common/lib/libc/arch/arm/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/arm/string/ffs.S
diff -u src/common/lib/libc/arch/arm/string/ffs.S:1.1 src/common/lib/libc/arch/arm/string/ffs.S:1.2
--- src/common/lib/libc/arch/arm/string/ffs.S:1.1	Tue Dec 20 19:28:49 2005
+++ src/common/lib/libc/arch/arm/string/ffs.S	Sun Jul  3 07:13:31 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: ffs.S,v 1.1 2005/12/20 19:28:49 christos Exp $	*/
+/*	$NetBSD: ffs.S,v 1.2 2011/07/03 07:13:31 matt Exp $	*/
 /*
  * Copyright (c) 2001 Christopher Gilbert
  * All rights reserved.
@@ -30,7 +30,7 @@
 
 #include <machine/asm.h>
 
-RCSID("$NetBSD: ffs.S,v 1.1 2005/12/20 19:28:49 christos Exp $")
+RCSID("$NetBSD: ffs.S,v 1.2 2011/07/03 07:13:31 matt Exp $")
 
 /*
  * ffs - find first set bit, this algorithm isolates the first set
@@ -44,7 +44,7 @@
  * This is the ffs algorithm devised by d.seal and posted to comp.sys.arm on
  * 16 Feb 1994.
  */
-
+WEAK_ALIAS(__ffssi2,ffs)
 ENTRY(ffs)
 #ifdef _ARM_ARCH_5
 	/* (X & -X) gives LSB or zero.  */

Reply via email to