Skip to content

Commit

Permalink
fix compilation err in non-intfilter cases
Browse files Browse the repository at this point in the history
  • Loading branch information
cathugger committed Mar 23, 2021
1 parent c9d018a commit fc62855
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions ifilter_bitsum.h
@@ -1,3 +1,6 @@

#ifdef EXPANDMASK

#ifdef __GNUC__

static IFT ifilter_bitsum(IFT x)
Expand All @@ -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)
{
Expand All @@ -24,4 +27,6 @@ static IFT ifilter_bitsum(IFT x)
return (((IFT) 1) << v) - 1;
}

#endif
#endif // __GNUC__

#endif // EXPANDMASK

0 comments on commit fc62855

Please sign in to comment.