LinuxKPI: add __ffs64()

Add __ffs64() to linux/bitops.h needed by a driver.

Reviewed by:	hselasky
MFC after:	3 days
Differential Revision: https://reviews.freebsd.org/D34225
This commit is contained in:
Bjoern A. Zeeb 2022-02-09 11:43:33 +00:00
parent 2e818fbcfc
commit d17b78aa14

View file

@ -86,6 +86,12 @@ __ffsl(long mask)
return (ffsl(mask) - 1);
}
static inline unsigned long
__ffs64(uint64_t mask)
{
return (ffsll(mask) - 1);
}
static inline int
__flsl(long mask)
{