mirror of
https://github.com/opnsense/src.git
synced 2026-04-15 14:29:58 -04:00
inline_fls: remove redundant INLINE_FLS test
HAS_INLINE_FLS and similar macros are defined always. Removes the redundant tests for these always-true conditions. Reviewed by: mhorne Differential Revision: https://reviews.freebsd.org/D40707
This commit is contained in:
parent
f4db342d44
commit
e087768130
1 changed files with 2 additions and 2 deletions
|
|
@ -392,7 +392,7 @@ extern unsigned char bcd_to_byte[256];
|
|||
static __inline int
|
||||
highbit(unsigned long i)
|
||||
{
|
||||
#if defined(__FreeBSD__) && defined(_KERNEL) && defined(HAVE_INLINE_FLSL)
|
||||
#if defined(__FreeBSD__) && defined(_KERNEL)
|
||||
return (flsl(i));
|
||||
#else
|
||||
int h = 1;
|
||||
|
|
@ -430,7 +430,7 @@ highbit(unsigned long i)
|
|||
static __inline int
|
||||
highbit64(uint64_t i)
|
||||
{
|
||||
#if defined(__FreeBSD__) && defined(_KERNEL) && defined(HAVE_INLINE_FLSLL)
|
||||
#if defined(__FreeBSD__) && defined(_KERNEL)
|
||||
return (flsll(i));
|
||||
#else
|
||||
int h = 1;
|
||||
|
|
|
|||
Loading…
Reference in a new issue