Use gcc's superior ffs() builtin.
This commit is contained in:
parent
a80f5f272c
commit
419d43c635
@ -135,7 +135,6 @@ isa/syscons_isa.c optional sc
|
||||
isa/vga_isa.c optional vga
|
||||
kern/imgact_elf32.c optional ia32
|
||||
libkern/bcmp.c standard
|
||||
libkern/ffs.c standard
|
||||
libkern/ia64/__divdi3.S standard
|
||||
libkern/ia64/__divsi3.S standard
|
||||
libkern/ia64/__moddi3.S standard
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user