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.41 (requested by tho...



details:   https://anonhg.NetBSD.org/src/rev/d766f06b8c22
branches:  netbsd-1-6
changeset: 529422:d766f06b8c22
user:      he <he%NetBSD.org@localhost>
date:      Thu Nov 21 18:05:15 2002 +0000

description:
Pull up revision 1.41 (requested by thorpej in ticket #710):
  GCC 2.95 supports __builtin_ffs(), so use it.

diffstat:

 sys/lib/libkern/libkern.h |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (21 lines):

diff -r caa36f5d578f -r d766f06b8c22 sys/lib/libkern/libkern.h
--- a/sys/lib/libkern/libkern.h Thu Nov 21 17:54:18 2002 +0000
+++ b/sys/lib/libkern/libkern.h Thu Nov 21 18:05:15 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: libkern.h,v 1.39 2001/12/28 07:37:06 thorpej Exp $     */
+/*     $NetBSD: libkern.h,v 1.39.10.1 2002/11/21 18:05:15 he Exp $     */
 
 /*-
  * Copyright (c) 1992, 1993
@@ -286,8 +286,10 @@
 char   *strchr __P((const char *, int));
 char   *strrchr __P((const char *, int));
 
-/* This exists in GCC 3.x, but we don't bother (yet). */
 int     ffs __P((int));
+#if __GNUC_PREREQ__(2, 95)
+#define        ffs(x)                  __builtin_ffs(x)
+#endif
 
 void    __assert __P((const char *, const char *, int, const char *))
            __attribute__((__noreturn__));



Home | Main Index | Thread Index | Old Index