Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-1-6]: src/sys/lib/libkern Pull up revision 1.9 (requested by skrl...
details: https://anonhg.NetBSD.org/src/rev/089a3567b99b
branches: netbsd-1-6
changeset: 529473:089a3567b99b
user: tron <tron%NetBSD.org@localhost>
date: Sat Nov 23 15:44:29 2002 +0000
description:
Pull up revision 1.9 (requested by skrll in ticket #1009):
isn't rewrote to __builtin_ffs() on gcc 2.95+; this fixes compilation
on sun2
also change the comment for function
diffstat:
sys/lib/libkern/ffs.c | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
diffs (31 lines):
diff -r 9e44b13bf760 -r 089a3567b99b sys/lib/libkern/ffs.c
--- a/sys/lib/libkern/ffs.c Sat Nov 23 15:21:39 2002 +0000
+++ b/sys/lib/libkern/ffs.c Sat Nov 23 15:44:29 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ffs.c,v 1.8 1998/03/27 01:30:01 cgd Exp $ */
+/* $NetBSD: ffs.c,v 1.8.42.1 2002/11/23 15:44:29 tron Exp $ */
/*-
* Copyright (c) 1990, 1993
@@ -38,7 +38,7 @@
#if 0
static char sccsid[] = "@(#)ffs.c 8.1 (Berkeley) 6/4/93";
#else
-__RCSID("$NetBSD: ffs.c,v 1.8 1998/03/27 01:30:01 cgd Exp $");
+__RCSID("$NetBSD: ffs.c,v 1.8.42.1 2002/11/23 15:44:29 tron Exp $");
#endif
#endif /* LIBC_SCCS and not lint */
@@ -48,8 +48,11 @@
#include <lib/libkern/libkern.h>
#endif
+/* #undef ffs() - might be defined as macro to __builtin_ffs() */
+#undef ffs
+
/*
- * ffs -- vax ffs instruction
+ * ffs - find first bit set in a bit string (C version)
*/
int
ffs(mask)
Home |
Main Index |
Thread Index |
Old Index