mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 08:43:19 -04:00
MFia64:
Fix -O builds with gcc 3.4 by defining ffs as __builtin_ffs instead of creating an inline function that just calls __builtin_ffs.
This commit is contained in:
parent
5fbbfacea3
commit
bc35f5dc9e
1 changed files with 1 additions and 17 deletions
|
|
@ -118,23 +118,7 @@ enable_intr(void)
|
|||
#ifdef _KERNEL
|
||||
|
||||
#define HAVE_INLINE_FFS
|
||||
|
||||
static __inline int
|
||||
ffs(int mask)
|
||||
{
|
||||
#if 0
|
||||
/*
|
||||
* Note that gcc-2's builtin ffs would be used if we didn't declare
|
||||
* this inline or turn off the builtin. The builtin is faster but
|
||||
* broken in gcc-2.4.5 and slower but working in gcc-2.5 and later
|
||||
* versions.
|
||||
*/
|
||||
return (mask == 0 ? mask : (int)bsfl((u_int)mask) + 1);
|
||||
#else
|
||||
/* Actually, the above is way out of date. The builtins use cmov etc */
|
||||
return (__builtin_ffs(mask));
|
||||
#endif
|
||||
}
|
||||
#define ffs(x) __builtin_ffs(x)
|
||||
|
||||
#define HAVE_INLINE_FFSL
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue