diff options
author | marcel <marcel@FreeBSD.org> | 2004-07-30 07:56:53 +0000 |
---|---|---|
committer | marcel <marcel@FreeBSD.org> | 2004-07-30 07:56:53 +0000 |
commit | 21af70e083b3b6ce64c4203e99570f608dd88e36 (patch) | |
tree | 9e28d279dd1e988b04b003a1f34f4c9cb203b109 /sys/ia64 | |
parent | 1386d0ec0217e7974df99f5d675ea3f7031c4cc7 (diff) | |
download | FreeBSD-src-21af70e083b3b6ce64c4203e99570f608dd88e36.zip FreeBSD-src-21af70e083b3b6ce64c4203e99570f608dd88e36.tar.gz |
Fix -O builds with gcc 3.4 by defining ffs as __builtin_ffs instead of
creating an inline function that just calls __builtin_ffs.
Diffstat (limited to 'sys/ia64')
-rw-r--r-- | sys/ia64/include/cpufunc.h | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/sys/ia64/include/cpufunc.h b/sys/ia64/include/cpufunc.h index ca48e0b..29563fe 100644 --- a/sys/ia64/include/cpufunc.h +++ b/sys/ia64/include/cpufunc.h @@ -48,12 +48,7 @@ breakpoint(void) } #define HAVE_INLINE_FFS - -static __inline int -ffs(int mask) -{ - return (__builtin_ffs(mask)); -} +#define ffs(x) __builtin_ffs(x) #endif |