diff options
author | peter <peter@FreeBSD.org> | 2003-12-10 22:51:40 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 2003-12-10 22:51:40 +0000 |
commit | 6c7e20736e7f1d94c7141ce2b5f843bf7bace140 (patch) | |
tree | 9a45ba6d192c2fdca2d4a984696df6578346524d /sys/ia64/include | |
parent | f5f05f9b78d6d0ea52e30806d93346aa7244c229 (diff) | |
download | FreeBSD-src-6c7e20736e7f1d94c7141ce2b5f843bf7bace140.zip FreeBSD-src-6c7e20736e7f1d94c7141ce2b5f843bf7bace140.tar.gz |
Use gcc's superior ffs() builtin.
Diffstat (limited to 'sys/ia64/include')
-rw-r--r-- | sys/ia64/include/cpufunc.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/sys/ia64/include/cpufunc.h b/sys/ia64/include/cpufunc.h index 5de8341..ac7329a 100644 --- a/sys/ia64/include/cpufunc.h +++ b/sys/ia64/include/cpufunc.h @@ -45,6 +45,15 @@ breakpoint(void) __asm __volatile("break 0x80100"); /* XXX use linux value */ } + +#define HAVE_INLINE_FFS + +static __inline int +ffs(int mask) +{ + return (__builtin_ffs(mask)); +} + #endif extern uint64_t ia64_port_base; |