Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/lib/libkern GCC 2.95 supports __builtin_ffs(); use it.
details: https://anonhg.NetBSD.org/src/rev/c79301437576
branches: trunk
changeset: 535525:c79301437576
user: thorpej <thorpej%NetBSD.org@localhost>
date: Wed Aug 21 01:27:58 2002 +0000
description:
GCC 2.95 supports __builtin_ffs(); use it.
diffstat:
sys/lib/libkern/libkern.h | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (21 lines):
diff -r 9eaed5580265 -r c79301437576 sys/lib/libkern/libkern.h
--- a/sys/lib/libkern/libkern.h Wed Aug 21 01:27:14 2002 +0000
+++ b/sys/lib/libkern/libkern.h Wed Aug 21 01:27:58 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: libkern.h,v 1.40 2002/05/28 10:09:24 itojun Exp $ */
+/* $NetBSD: libkern.h,v 1.41 2002/08/21 01:27:58 thorpej 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