From 088c695b175c23090e4a362e6fac4f9484952f60 Mon Sep 17 00:00:00 2001 From: Augustin Cavalier Date: Tue, 25 Jun 2024 17:14:45 -0400 Subject: [PATCH] freebsd_network: Remove fls/ffsl from generic/cpufunc.h --- .../compat/machine/generic/cpufunc.h | 27 ------------------- 1 file changed, 27 deletions(-) diff --git a/src/libs/compat/freebsd_network/compat/machine/generic/cpufunc.h b/src/libs/compat/freebsd_network/compat/machine/generic/cpufunc.h index b37e72b458..b9c51a48c4 100644 --- a/src/libs/compat/freebsd_network/compat/machine/generic/cpufunc.h +++ b/src/libs/compat/freebsd_network/compat/machine/generic/cpufunc.h @@ -6,31 +6,4 @@ #define _FBSD_MACHINE_GENERIC_CPUFUNC_H_ -#define HAVE_INLINE_FLS -static __inline int -fls(int mask) -{ - int bit; - if (mask == 0) - return 0; - for (bit = 1; mask != 1; bit++) - mask = (unsigned int) mask >> 1; - return bit; -} - - -#define HAVE_INLINE_FFSL -static __inline int -ffsl(long mask) -{ - int bit; - - if (mask == 0) - return (0); - for (bit = 1; !(mask & 1); bit++) - mask = (unsigned long)mask >> 1; - return (bit); -} - - #endif /* _FBSD_MACHINE_GENERIC_CPUFUNC_H_ */