mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
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:
parent
2e818fbcfc
commit
d17b78aa14
1 changed files with 6 additions and 0 deletions
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue