Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/common/lib/libc/arch/arm/string Add a weak symbol definition...



details:   https://anonhg.NetBSD.org/src/rev/eb228912c352
branches:  trunk
changeset: 766841:eb228912c352
user:      matt <matt%NetBSD.org@localhost>
date:      Sun Jul 03 07:13:31 2011 +0000

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

diffstat:

 common/lib/libc/arch/arm/string/ffs.S |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 4fb74bdc3552 -r eb228912c352 common/lib/libc/arch/arm/string/ffs.S
--- a/common/lib/libc/arch/arm/string/ffs.S     Sun Jul 03 07:00:47 2011 +0000
+++ b/common/lib/libc/arch/arm/string/ffs.S     Sun Jul 03 07:13:31 2011 +0000
@@ -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.  */



Home | Main Index | Thread Index | Old Index