mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-15 04:43:53 +00: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
|
@ -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