From fc6285523f615e31f9d313a667e6ca8a9d781872 Mon Sep 17 00:00:00 2001 From: cathugger Date: Tue, 23 Mar 2021 10:36:42 +0000 Subject: [PATCH] fix compilation err in non-intfilter cases --- ifilter_bitsum.h | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/ifilter_bitsum.h b/ifilter_bitsum.h index fdbe45e..2c0a5db 100644 --- a/ifilter_bitsum.h +++ b/ifilter_bitsum.h @@ -1,3 +1,6 @@ + +#ifdef EXPANDMASK + #ifdef __GNUC__ static IFT ifilter_bitsum(IFT x) @@ -12,7 +15,7 @@ static IFT ifilter_bitsum(IFT x) return (((IFT) 1) << __builtin_popcount((unsigned int) x)) - 1; } -#else +#else // __GNUC__ static IFT ifilter_bitsum(IFT x) { @@ -24,4 +27,6 @@ static IFT ifilter_bitsum(IFT x) return (((IFT) 1) << v) - 1; } -#endif +#endif // __GNUC__ + +#endif // EXPANDMASK